1 %include /usr/lib/rpm/macros.perl
2 Summary: Net-SSLeay perl module
3 Summary(pl): Modu³ perla Net-SSLeay
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/Net_SSLeay.pm-%{version}.tar.gz
11 Patch0: perl-Net-SSLeay-paths.patch
12 Patch1: perl-Net-SSLeay-openssl_path.patch
13 BuildRequires: rpm-perlprov >= 3.0.3-18
14 BuildRequires: perl >= 5.005_03-14
15 BuildRequires: openssl-devel >= 0.9.4-2
17 Requires: %{perl_sitearch}
18 BuildRoot: /tmp/%{name}-%{version}-root
21 Net-SSLeay perl module
24 Modul perla Net-SSLeay
27 %setup -q -n Net_SSLeay.pm-%{version}
33 make OPTIMIZE="$RPM_OPT_FLAGS"
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT/usr/src/examples/%{name}
39 make install DESTDIR=$RPM_BUILD_ROOT
40 install examples/* $RPM_BUILD_ROOT/usr/src/examples/%{name}
42 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Net/SSLeay/*.so
45 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Net/SSLeay
46 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
47 mv .packlist.new .packlist
50 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc {Changes,README}.gz
60 %{perl_sitearch}/Net/SSLeay.pm
62 %dir %{perl_sitearch}/auto/Net/SSLeay
63 %{perl_sitearch}/auto/Net/SSLeay/.packlist
64 %{perl_sitearch}/auto/Net/SSLeay/autosplit.ix
65 %{perl_sitearch}/auto/Net/SSLeay/*.al
66 %{perl_sitearch}/auto/Net/SSLeay/SSLeay.bs
67 %attr(755,root,root) %{perl_sitearch}/auto/Net/SSLeay/SSLeay.so
71 /usr/src/examples/%{name}