]> git.pld-linux.org Git - packages/perl-Authen-PAM.git/blob - perl-Authen-PAM.spec
ee06571e1f1a4a284dddb592cb7242c9fd2b9434
[packages/perl-Authen-PAM.git] / perl-Authen-PAM.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (interactive)
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Authen
7 %define         pnam    PAM
8 Summary:        Authen::PAM - Perl interface to PAM library
9 Summary(pl.UTF-8):      Authen::PAM - interfejs perlowy do biblioteki PAM
10 Name:           perl-Authen-PAM
11 Version:        0.16
12 Release:        13
13 # same as perl
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)
24
25 %description
26 Authen::PAM module provides a Perl interface to the PAM library.
27
28 %description -l pl.UTF-8
29 Moduł Authen::PAM umożliwia dostęp z Perla do biblioteki PAM.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make} \
38         CC="%{__cc}" \
39         OPTIMIZE="%{rpmcflags}"
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README
55 %{perl_vendorarch}/Authen/*.pm
56 %dir %{perl_vendorarch}/auto/Authen/PAM
57 %attr(755,root,root) %{perl_vendorarch}/auto/Authen/PAM/PAM.so
58 %{_mandir}/man3/*
This page took 0.054922 seconds and 2 git commands to generate.