9397
|
1 |
#
|
|
2 |
# spec file for package SUNWperl-authen-pam
|
|
3 |
#
|
|
4 |
# includes module(s):
|
|
5 |
#
|
12841
|
6 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
16434
|
10 |
%define owner padraig
|
9397
|
11 |
#
|
16431
|
12 |
|
|
13 |
%define OSR 8685:0.16
|
|
14 |
|
9397
|
15 |
%include Solaris.inc
|
|
16 |
Name: SUNWperl-authen-pam
|
16297
|
17 |
License: GPL
|
9397
|
18 |
Summary: Authen-PAM PERL module
|
|
19 |
Version: 5.8.4
|
12841
|
20 |
%define tarball_version 0.16
|
|
21 |
Source: http://www.cpan.org/modules/by-module/Authen/Authen-PAM-%{tarball_version}.tar.gz
|
9397
|
22 |
#owner:padraig date:2006-04-10 type:bug state:upstream
|
|
23 |
Patch1: authen-pam-01-solaris.diff
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
11975
|
26 |
SUNW_Copyright: %{name}.copyright
|
9397
|
27 |
|
|
28 |
%define perl_version 5.8.4
|
|
29 |
%ifarch sparc
|
|
30 |
%define perl_dir sun4-solaris-64int
|
|
31 |
%else
|
|
32 |
%define perl_dir i86pc-solaris-64int
|
|
33 |
%endif
|
|
34 |
%include default-depend.inc
|
|
35 |
|
|
36 |
%prep
|
|
37 |
%setup -q -c -n %name-%version
|
12841
|
38 |
cd Authen-PAM-%{tarball_version}
|
9397
|
39 |
%patch1 -p1
|
|
40 |
|
|
41 |
%build
|
12841
|
42 |
cd Authen-PAM-%{tarball_version}
|
9397
|
43 |
autoconf
|
|
44 |
perl Makefile.PL \
|
|
45 |
PREFIX=$RPM_BUILD_ROOT%{_prefix} \
|
|
46 |
INSTALLSITELIB=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version} \
|
|
47 |
INSTALLSITEARCH=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir} \
|
|
48 |
INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
|
|
49 |
INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
|
|
50 |
INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
|
|
51 |
INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
|
|
52 |
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
|
|
53 |
|
|
54 |
%install
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
12841
|
56 |
cd Authen-PAM-%{tarball_version}
|
9397
|
57 |
make install
|
|
58 |
|
|
59 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib
|
|
60 |
|
|
61 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
62 |
|
|
63 |
%clean
|
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
|
|
66 |
%files
|
13489
|
67 |
%doc -d Authen-PAM-%{tarball_version} README
|
9397
|
68 |
%defattr (-, root, bin)
|
|
69 |
%dir %attr(0755, root, bin) %{_prefix}/perl5
|
|
70 |
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl
|
|
71 |
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}
|
|
72 |
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/Authen
|
|
73 |
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/Authen/*
|
|
74 |
%if %is_s10
|
|
75 |
%dir %attr(0755, root, other) %{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto
|
|
76 |
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto/*
|
|
77 |
%else
|
|
78 |
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto
|
|
79 |
%endif
|
|
80 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
81 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
82 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
83 |
%{_mandir}/man3/*
|
13643
|
84 |
%dir %attr(0755, root, other) %{_datadir}/doc
|
9397
|
85 |
|
|
86 |
%changelog
|
13643
|
87 |
* Wed Sep 17 2008 - [email protected]
|
|
88 |
- Fix up pkg'ing section.
|
13581
|
89 |
* Mon Sep 15 2008 - [email protected]
|
|
90 |
- Remove /usr/share/doc from %files.
|
13489
|
91 |
* Wed Sep 10 2006 - [email protected]
|
|
92 |
- Add %doc to %files for copyright
|
12841
|
93 |
* Thu Jul 17 2008 - [email protected]
|
|
94 |
- s/authen_pam_version/tarball_version/ to be consistent with other spec files.
|
9397
|
95 |
* Tue Jan 30 2007 - [email protected]
|
|
96 |
- Fix typo s/Autoconf/autoconf/.
|
|
97 |
* Sun Jan 28 2007 - [email protected]
|
|
98 |
- update %file so that dir attributes work on both s10 and nevada
|
|
99 |
* Mon Apr 10 2006 - [email protected]
|
|
100 |
- Initial spec file
|