]>
Commit | Line | Data |
---|---|---|
0e0c8c8a | 1 | # |
2 | # Conditional build: | |
e11cd597 | 3 | %bcond_with tests # perform "make test" (interactive) |
0e0c8c8a | 4 | # |
04b0ba09 | 5 | %define pdir Authen |
6 | %define pnam PAM | |
5c629aee | 7 | Summary: Authen::PAM - Perl interface to PAM library |
91f04abc | 8 | Summary(pl.UTF-8): Authen::PAM - interfejs perlowy do biblioteki PAM |
b6f2dba7 | 9 | Name: perl-Authen-PAM |
beb9a338 | 10 | Version: 0.16 |
698cfcfc | 11 | Release: 21 |
5207d740 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
fc02e3aa | 14 | Vendor: Nikolay Pelov <pelov@cs.kuleuven.ac.be> |
b6f2dba7 | 15 | Group: Development/Languages/Perl |
b723bf40 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
beb9a338 | 17 | # Source0-md5: 7278471dfa694d9ef312bc92d7099af2 |
90b8ef24 | 18 | Patch0: no-dot-in-INC.patch |
0e0c8c8a | 19 | URL: http://www.cs.kuleuven.ac.be/~pelov/pam/ |
7bcea886 | 20 | BuildRequires: pam-devel |
8baa1b93 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
7a74aeb2 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
c0927324 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b6f2dba7 | 24 | |
25 | %description | |
5c629aee | 26 | Authen::PAM module provides a Perl interface to the PAM library. |
b6f2dba7 | 27 | |
911c8a33 JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Authen::PAM umożliwia dostęp z Perla do biblioteki PAM. | |
b6f2dba7 | 30 | |
31 | %prep | |
ab87f5fe | 32 | %setup -q -n %{pdir}-%{pnam}-%{version} |
90b8ef24 | 33 | %patch0 -p1 |
b6f2dba7 | 34 | |
35 | %build | |
7a74aeb2 | 36 | %{__perl} Makefile.PL \ |
a8838fe6 | 37 | INSTALLDIRS=vendor |
82e56597 | 38 | %{__make} \ |
f3ed2e1a | 39 | CC="%{__cc}" \ |
82e56597 | 40 | OPTIMIZE="%{rpmcflags}" |
b6f2dba7 | 41 | |
cfd8aaeb | 42 | %{?with_tests:%{__make} test} |
0e0c8c8a | 43 | |
b6f2dba7 | 44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
b6f2dba7 | 46 | |
82e56597 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
b6f2dba7 | 49 | |
b6f2dba7 | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
9112d3aa | 55 | %doc Changes README |
7a74aeb2 | 56 | %{perl_vendorarch}/Authen/*.pm |
57 | %dir %{perl_vendorarch}/auto/Authen/PAM | |
7a74aeb2 | 58 | %attr(755,root,root) %{perl_vendorarch}/auto/Authen/PAM/PAM.so |
b6f2dba7 | 59 | %{_mandir}/man3/* |