+#
+# Conditional build:
+# _without_tests - do not perform "make test"
%include /usr/lib/rpm/macros.perl
%define pdir Crypt
%define pnam RSA
Summary(pl): Modu³ Perla Crypt::RSA - system kryptograficzny klucza publicznego RSA
Name: perl-Crypt-RSA
Version: 1.48
-Release: 1
+Release: 2
License: Artistic or GPL
Group: Development/Languages/Perl
Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
BuildRequires: perl >= 5.6
BuildRequires: perl-Convert-ASCII-Armour
BuildRequires: perl-Class-Loader >= 2.00
-BuildRequires: perl-Crypt-Blowfish
+%{!?_without_tests:BuildRequires: perl-Crypt-Blowfish}
BuildRequires: perl-Crypt-CBC
BuildRequires: perl-Crypt-Primes >= 0.38
BuildRequires: perl-Crypt-Random >= 0.33
perl Makefile.PL
%{__make}
+%{!?_without_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT