X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Crypt-RC6.spec;h=f9679c833aacd93be543489ecd67d5620622e3d8;hb=09a901d2bb5b13e19425c63e1e6887204528892e;hp=65b38d716ddada59052c9c1e3b948f5020aaf18a;hpb=b59153075471c7252e70abbc51ef125f7a06821a;p=packages%2Fperl-Crypt-RC6.git diff --git a/perl-Crypt-RC6.spec b/perl-Crypt-RC6.spec index 65b38d7..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 @@ -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: 1 -License: GPL +Release: 2 +License: GPL v2 Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -BuildRequires: perl-devel >= 5.6 -BuildRequires: rpm-perlprov >= 3.0.3-16 +# Source0-md5: 6cd523b2ebfea33c66fc5f4252e88ce7 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -32,9 +37,12 @@ Wykonywane jest dwadzie %setup -q -n %{pdir}-%{pnam}-%{version} %build -perl Makefile.PL -%{__make} OPTIMIZE="%{rpmcflags}" -%{__make} test +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT @@ -48,8 +56,8 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES README -%{perl_sitearch}/Crypt/RC6.pm -%dir %{perl_sitearch}/auto/Crypt/RC6 -%{perl_sitearch}/auto/Crypt/RC6/*.bs -%attr(755,root,root) %{perl_sitearch}/auto/Crypt/RC6/*.so +%{perl_vendorarch}/Crypt/RC6.pm +%dir %{perl_vendorarch}/auto/Crypt/RC6 +%{perl_vendorarch}/auto/Crypt/RC6/*.bs +%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/RC6/*.so %{_mandir}/man3/*