3 %bcond_with tests # perform "make test" (interactive)
7 Summary: Authen::PAM - Perl interface to PAM library
8 Summary(pl.UTF-8): Authen::PAM - interfejs perlowy do biblioteki PAM
13 License: GPL v1+ or Artistic
14 Vendor: Nikolay Pelov <pelov@cs.kuleuven.ac.be>
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 7278471dfa694d9ef312bc92d7099af2
18 Patch0: no-dot-in-INC.patch
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}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/Authen/*.pm
57 %dir %{perl_vendorarch}/auto/Authen/PAM
58 %attr(755,root,root) %{perl_vendorarch}/auto/Authen/PAM/PAM.so