]> git.pld-linux.org Git - packages/perl-Net-SSLeay.git/blobdiff - perl-Net-SSLeay.spec
- should be ready for perl-5.8.0; release++
[packages/perl-Net-SSLeay.git] / perl-Net-SSLeay.spec
index a8e8a487f629dde173aa4e8ceb7f00229d639b22..1ea327834e627a466b17194c01253ad03110b2ae 100644 (file)
@@ -1,33 +1,47 @@
+#
+# Conditional build:
+# _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):   Net::SSLeay - rozszerzenie perla do u¿ywania OpenSSL lub SSLeay
 Name:          perl-Net-SSLeay
-Version:       1.16
-Release:       1
+Version:       1.22
+Release:       2
 License:       GPL
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Net/Net_SSLeay.pm-%{version}.tar.gz
+Source0:       http://www.cpan.org/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: openssl-devel >= 0.9.7
+BuildRequires: openssl-tools >= 0.9.7
 BuildRequires: perl >= 5.6.1
-BuildRequires: openssl-devel >= 0.9.6a
+BuildRequires: rpm-perlprov >= 4.1-13
 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.
+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
 
 %build
-perl Makefile.PL %{_prefix}
+%{__perl} Makefile.PL %{_prefix} \
+       INSTALLDIRS=vendor 
 %{__make} OPTIMIZE="%{rpmcflags}"
 
+%{?_with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -36,17 +50,19 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 install examples/*.{pl,conf} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-gzip -9nf Changes README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitearch}/Net/SSLeay.pm
-%{perl_sitearch}/Net/SSLeay
-%{perl_sitearch}/Net/ptrtstrun.pl
-%{perl_sitearch}/auto/Net/SSLeay
+%doc Changes Credits README
+%{perl_vendorarch}/Net/SSLeay.pm
+%{perl_vendorarch}/Net/SSLeay
+%{perl_vendorarch}/Net/ptrtstrun.pl
+%dir %{perl_vendorarch}/auto/Net/SSLeay
+%{perl_vendorarch}/auto/Net/SSLeay/autosplit.ix
+%{perl_vendorarch}/auto/Net/SSLeay/*.al
+%{perl_vendorarch}/auto/Net/SSLeay/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Net/SSLeay/*.so
 %{_mandir}/man3/*
 %{_examplesdir}/%{name}-%{version}
This page took 0.093844 seconds and 4 git commands to generate.