1 %include /usr/lib/rpm/macros.perl
2 Summary: Crypt-SSLeay perl module
3 Summary(pl): Modu³ perla Crypt-SSLeay
4 Name: perl-Crypt-SSLeay
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-SSLeay-%{version}.tar.gz
11 BuildRequires: rpm-perlprov >= 3.0.3-16
12 BuildRequires: perl >= 5.005_03-14
13 BuildRequires: openssl-devel >= 0.9.4-2
15 Requires: %{perl_sitearch}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Crypt-SSLeay perl module.
22 Modul perla Crypt-SSLeay.
25 %setup -q -n Crypt-SSLeay-%{version}
28 yes "" | perl Makefile.PL
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/SSLeay/*.so
39 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Crypt/SSLeay
40 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41 mv .packlist.new .packlist
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc {CHANGES,README}.gz
54 %{perl_sitearch}/Crypt/SSLeay.pm
55 %{perl_sitearch}/Crypt/SSLeay
56 %{perl_sitearch}/Net/SSL.pm
58 %dir %{perl_sitearch}/auto/Crypt/SSLeay
59 %{perl_sitearch}/auto/Crypt/SSLeay/.packlist
60 %{perl_sitearch}/auto/Crypt/SSLeay/SSLeay.bs
61 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/SSLeay/SSLeay.so