3 %bcond_with tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Passwd::Linux - Perl module for manipulating the passwd and shadow files
9 Summary(pl.UTF-8): Passwd::Linux - Moduł Perla do manipulowania plikami passwd i shadow
10 Name: perl-Passwd-Linux
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/E/EE/EESTABROO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 28e46f1991d2a26e54c8593487a14c27
17 URL: http://search.cpan.org/dist/Passwd-Linux/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Passwd::Linux provides additional password routines. It augments the
24 getpw* functions with setpwinfo, modpwinfo, rmpwnam, mgetpwnam. You
25 need to run most of the functions as root or as someone who has
26 permission to modify the shadow file.
28 %description -l pl.UTF-8
29 Passwd::Linux dostarcza dodatkowych metod obsługi haseł. Powiększa
30 funkcje getpw* o setpwinfo, modpwinfo, rmpwnam, mgetpwnam. Większość
31 tych funkcji musi być uruchomiona z uprawnieniami roota lub osoby
32 mającej uprawnienia do modyfikacji pliku shadow.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
52 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Passwd/Linux/.packlist
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorarch}/Passwd
61 %{perl_vendorarch}/Passwd/*.pm
62 %dir %{perl_vendorarch}/auto/Passwd
63 %dir %{perl_vendorarch}/auto/Passwd/Linux
64 %attr(755,root,root) %{perl_vendorarch}/auto/Passwd/Linux/*.so