X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=perl-Net-SSLeay.spec;h=b4e3e04090050d236072770d600c3d0560948b25;hb=4ce299811cbd52786589850f3fdee8ffb7e538d2;hp=ec18f3c571f78851b5a743d9404d7aa908dd57d5;hpb=0290e7807d1b0b9001995121751b5fc8b0505f46;p=packages%2Fperl-Net-SSLeay.git diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec index ec18f3c..b4e3e04 100644 --- a/perl-Net-SSLeay.spec +++ b/perl-Net-SSLeay.spec @@ -1,56 +1,77 @@ +# +# Conditional build: +%bcond_with tests # perform "make test" +# %include /usr/lib/rpm/macros.perl -Summary: Net-SSLeay perl module -Summary(pl): Modu³ perla Net-SSLeay +Summary: Net::SSLeay - Perl extension for using OpenSSL or SSLeay +Summary(pl.UTF-8): Net::SSLeay - rozszerzenie Perla do używania OpenSSL lub SSLeay Name: perl-Net-SSLeay -Version: 1.08 -Release: 1 -License: GPL +Version: 1.72 +Release: 2 +License: Artistic v2.0 Group: Development/Languages/Perl -Group(de): Entwicklung/Sprachen/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/Net_SSLeay.pm-%{version}.tar.gz -Patch0: %{name}-paths.patch -BuildRequires: rpm-perlprov >= 3.0.3-18 -BuildRequires: openssl-tools -BuildRequires: perl >= 5.6 -BuildRequires: openssl-devel >= 0.9.6a +Source0: http://www.cpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz +# Source0-md5: a740d7792dbac8ca8c4eb38d3b8fbd01 +Patch0: %{name}-no_zlib.patch +URL: http://search.cpan.org/dist/Net-SSLeay/ +BuildRequires: openssl-devel >= 0.9.7d +BuildRequires: openssl-tools >= 0.9.7d +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-MIME-Base64 +BuildRequires: perl-Test-Simple >= 0.60_01 +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Net-SSLeay perl module. +This module offers some high level convinience functions for accessing +web pages on SSL servers, a sslcat() function for writing your own +clients, and finally access to the SSL api of SSLeay/OpenSSL package +so you can write servers or clients for more complicated applications. -%description -l pl -Modul perla Net-SSLeay. +%description -l pl.UTF-8 +Ten moduł oferuje kilka wygodnych funkcji wysokiego poziomu służących +do dostępu do stron WWW na serwerach SSL, funkcję sslcat() do pisania +własnych klientów, oraz dostęp do API SSL pakietu SSLeay/OpenSSL, co +pozwala na pisanie serwerów lub klientów dla bardziej skomplikowanych +aplikacji. %prep -%setup -q -n Net_SSLeay.pm-%{version} -%patch0 -p0 +%setup -q -n Net-SSLeay-%{version} +%patch0 -p1 %build -perl Makefile.PL /usr -%{__make} OPTIMIZE="%{rpmcflags}" +echo "n" | %{__perl} Makefile.PL %{_prefix} \ + INSTALLDIRS=vendor +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:echo "n" | %{__make} test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT -install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -p examples/*.{pl,conf} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -gzip -9nf Changes README +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Net/SSLeay.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc *.gz -%{perl_sitearch}/Net/SSLeay.pm -%dir %{perl_sitearch}/auto/Net/SSLeay -%{perl_sitearch}/auto/Net/SSLeay/autosplit.ix -%{perl_sitearch}/auto/Net/SSLeay/*.al -%{perl_sitearch}/auto/Net/SSLeay/SSLeay.bs -%attr(755,root,root) %{perl_sitearch}/auto/Net/SSLeay/SSLeay.so -%{_mandir}/man3/* +%doc Changes Credits README +%{perl_vendorarch}/Net/SSLeay.pm +%{perl_vendorarch}/Net/SSLeay +%dir %{perl_vendorarch}/auto/Net/SSLeay +%{perl_vendorarch}/auto/Net/SSLeay/autosplit.ix +%{perl_vendorarch}/auto/Net/SSLeay/*.al +%attr(755,root,root) %{perl_vendorarch}/auto/Net/SSLeay/SSLeay.so +%{_mandir}/man3/Net::SSLeay*.3pm* %{_examplesdir}/%{name}-%{version}