1 %include /usr/lib/rpm/macros.perl
2 Summary: Crypt-DES perl module
3 Summary(pl): Modu³ perla Crypt-DES
7 Copyright: distributable
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Crypt/Crypt-DES-%{version}.tar.gz
11 Patch0: perl-Crypt-DES-paths.patch
12 BuildRequires: rpm-perlprov >= 3.0.3-16
13 BuildRequires: perl >= 5.005_03-14
15 Requires: %{perl_sitearch}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Crypt-DES - Perl interface to DES block cipher.
22 Crypt-DES - modu³ wspomagaj±cy algorytm DES.
25 %setup -q -n Crypt-DES-%{version}
30 %{__make} OPTIMIZE="$RPM_OPT_FLAGS"
33 rm -rf $RPM_BUILD_ROOT
34 %{__make} install DESTDIR=$RPM_BUILD_ROOT
36 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Crypt/DES/*.so
39 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Crypt/DES
40 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41 mv .packlist.new .packlist
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/*
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_sitearch}/Crypt/DES.pm
54 %dir %{perl_sitearch}/auto/Crypt/DES
55 %{perl_sitearch}/auto/Crypt/DES/.packlist
56 %{perl_sitearch}/auto/Crypt/DES/DES.bs
57 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/DES/DES.so