X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Crypt-RC6.spec;h=f9679c833aacd93be543489ecd67d5620622e3d8;hb=09a901d2bb5b13e19425c63e1e6887204528892e;hp=b6c242c0cfd99fba8011b0e2fe9a1ad4d69ec000;hpb=8ab1a3187d929ce8bb707382a6367b2cbf6871a1;p=packages%2Fperl-Crypt-RC6.git diff --git a/perl-Crypt-RC6.spec b/perl-Crypt-RC6.spec index b6c242c..f9679c8 100644 --- a/perl-Crypt-RC6.spec +++ b/perl-Crypt-RC6.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %include /usr/lib/rpm/macros.perl %define pdir Crypt %define pnam RC6 @@ -10,7 +14,7 @@ License: GPL v2 Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 6cd523b2ebfea33c66fc5f4252e88ce7 -BuildRequires: perl-devel >= 5.6 +BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -35,8 +39,10 @@ Wykonywane jest dwadzie %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor -%{__make} OPTIMIZE="%{rpmcflags}" -%{__make} test +%{__make} \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT