3 %bcond_with tests # perform "make test" (interactive)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Authen::PAM - Perl interface to PAM library
9 Summary(pl.UTF-8): Authen::PAM - interfejs perlowy do biblioteki PAM
14 License: GPL v1+ or Artistic
15 Vendor: Nikolay Pelov <pelov@cs.kuleuven.ac.be>
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 7278471dfa694d9ef312bc92d7099af2
19 URL: http://www.cs.kuleuven.ac.be/~pelov/pam/
20 BuildRequires: pam-devel
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Authen::PAM module provides a Perl interface to the PAM library.
28 %description -l pl.UTF-8
29 Moduł Authen::PAM umożliwia dostęp z Perla do biblioteki PAM.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 OPTIMIZE="%{rpmcflags}"
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorarch}/Authen/*.pm
56 %dir %{perl_vendorarch}/auto/Authen/PAM
57 %attr(755,root,root) %{perl_vendorarch}/auto/Authen/PAM/PAM.so