]> git.pld-linux.org Git - packages/perl-Authen-PAM.git/blob - perl-Authen-PAM.spec
rebuild with perl 5.32
[packages/perl-Authen-PAM.git] / perl-Authen-PAM.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (interactive)
4 #
5 %define         pdir    Authen
6 %define         pnam    PAM
7 Summary:        Authen::PAM - Perl interface to PAM library
8 Summary(pl.UTF-8):      Authen::PAM - interfejs perlowy do biblioteki PAM
9 Name:           perl-Authen-PAM
10 Version:        0.16
11 Release:        21
12 # same as perl
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)
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 %patch0 -p1
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make} \
39         CC="%{__cc}" \
40         OPTIMIZE="%{rpmcflags}"
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes README
56 %{perl_vendorarch}/Authen/*.pm
57 %dir %{perl_vendorarch}/auto/Authen/PAM
58 %attr(755,root,root) %{perl_vendorarch}/auto/Authen/PAM/PAM.so
59 %{_mandir}/man3/*
This page took 0.106946 seconds and 3 git commands to generate.