]> git.pld-linux.org Git - packages/perl-Crypt-RC6.git/blobdiff - perl-Crypt-RC6.spec
- added endian patch, release 4
[packages/perl-Crypt-RC6.git] / perl-Crypt-RC6.spec
index b6c242c0cfd99fba8011b0e2fe9a1ad4d69ec000..f4d6148e1d9f0863a151d05f0aff5af359dd22b7 100644 (file)
@@ -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
@@ -5,12 +9,13 @@ Summary:      Crypt::RC6 Perl module - RC6 block cipher encryption
 Summary(pl):   Modu³ Perla Crypt::RC6 - szyfr blokowy RC6
 Name:          perl-Crypt-RC6
 Version:       1.0
-Release:       2
+Release:       4
 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
+Patch0:                %{name}-endian.patch
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,12 +36,15 @@ Wykonywane jest dwadzie
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
-%{__make} test
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.139574 seconds and 4 git commands to generate.