X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Crypt-RSA.spec;h=5391d4eb190a8c821f383a670dd191f2ca512ba1;hb=HEAD;hp=a1a45113d834e81aebcb72aa653b454fa5a9cf37;hpb=2f956ac394f9ab188dcecfc69b96ece714bccfad;p=packages%2Fperl-Crypt-RSA.git diff --git a/perl-Crypt-RSA.spec b/perl-Crypt-RSA.spec index a1a4511..5391d4e 100644 --- a/perl-Crypt-RSA.spec +++ b/perl-Crypt-RSA.spec @@ -1,36 +1,36 @@ # # Conditional build: -# _without_tests - do not perform "make test" -%include /usr/lib/rpm/macros.perl +%bcond_without tests # do not perform "make test" +# %define pdir Crypt %define pnam RSA Summary: Crypt::RSA Perl module - RSA public-key cryptosystem -Summary(pl): Modu³ Perla Crypt::RSA - system kryptograficzny klucza publicznego RSA +Summary(pl.UTF-8): Moduł Perla Crypt::RSA - system kryptograficzny klucza publicznego RSA Name: perl-Crypt-RSA -Version: 1.50 -Release: 1 -License: Artistic or GPL +Version: 1.99 +Release: 3 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -BuildRequires: perl >= 5.6 -BuildRequires: perl-Convert-ASCII-Armour +Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: f675a07810d735e99d7894338aba8e87 +URL: http://search.cpan.org/dist/Crypt-RSA/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} BuildRequires: perl-Class-Loader >= 2.00 -%{!?_without_tests:BuildRequires: perl-Crypt-Blowfish} +BuildRequires: perl-Convert-ASCII-Armour +BuildRequires: perl-Crypt-Blowfish BuildRequires: perl-Crypt-CBC BuildRequires: perl-Crypt-Primes >= 0.38 -BuildRequires: perl-Crypt-Random >= 0.33 +BuildRequires: perl-Crypt-Random >= 0.34 BuildRequires: perl-Data-Buffer BuildRequires: perl-Digest-MD2 -BuildRequires: perl-Digest-MD5 -BuildRequires: perl-Digest-SHA1 BuildRequires: perl-Math-Pari >= 2.001804 BuildRequires: perl-Sort-Versions BuildRequires: perl-Tie-EncryptedHash -BuildRequires: rpm-perlprov >= 3.0.3-16 -Requires: perl-Class-Loader >= 2.00 -Requires: perl-Crypt-Primes >= 0.38 -Requires: perl-Crypt-Random >= 0.33 -Requires: perl-Math-Pari >= 2.001804 +BuildRequires: perl-Digest-SHA1 +%endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -38,18 +38,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Crypt::RSA is a pure-perl, cleanroom implementation of the RSA public-key cryptosystem. -%description -l pl -Modu³ Crypt::RSA jest czysto perlow± implementacj± systemu +%description -l pl.UTF-8 +Moduł Crypt::RSA jest czysto perlową implementacją systemu kryptograficznego klucza publicznego RSA. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build -perl Makefile.PL +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor %{__make} -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT @@ -62,7 +63,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc Changes TODO extradocs/* -%{perl_sitelib}/Crypt/RSA.pm -%{perl_sitelib}/Crypt/RSA +%doc Changes README TODO +%{perl_vendorlib}/Crypt/*.pm +%{perl_vendorlib}/Crypt/RSA %{_mandir}/man3/*