X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-Crypt-DES.git;a=blobdiff_plain;f=perl-Crypt-DES.spec;h=7fcb8979c44367fb7c3ca6c772f3b011c1b8302e;hp=b44fad3544b5b0d008b43a7f49eb8b880f0a90fd;hb=HEAD;hpb=c23e79cd844ce71f49b8692fb08c311d9f5d9f8f diff --git a/perl-Crypt-DES.spec b/perl-Crypt-DES.spec index b44fad3..7fcb897 100644 --- a/perl-Crypt-DES.spec +++ b/perl-Crypt-DES.spec @@ -1,24 +1,30 @@ -%include /usr/lib/rpm/macros.perl +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %define pdir Crypt %define pnam DES Summary: Crypt::DES - Perl DES encryption module -Summary(pl): Crypt::DES - modu³ Perla dla szyfrowania DES +Summary(pl.UTF-8): Crypt::DES - moduł Perla dla szyfrowania DES Name: perl-Crypt-DES -Version: 2.03 -Release: 6 +Version: 2.07 +Release: 14 License: BSD-like (see COPYRIGHT) Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -# Source0-md5: 1b9a84e14214e74e71dd80f906a3db96 -BuildRequires: perl-devel >= 5.6 +Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: e845d24cf383ca4a30a3380a2735feac +URL: https://metacpan.org/dist/Crypt-DES +%{?with_tests:BuildRequires: perl-Crypt-CBC} +BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Crypt::DES is Perl interface to DES block cipher. -%description -l pl -Modu³ Perla Crypt::DES zawiera obs³ugê algorytmu szyfrowania DES. +%description -l pl.UTF-8 +Moduł Perla Crypt::DES zawiera obsługę algorytmu szyfrowania DES. %prep %setup -q -n %{pdir}-%{pnam}-%{version} @@ -26,12 +32,17 @@ Modu %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor -%{__make} OPTIMIZE="%{rpmcflags}" +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT @@ -41,6 +52,5 @@ rm -rf $RPM_BUILD_ROOT %doc COPYRIGHT README %{perl_vendorarch}/Crypt/DES.pm %dir %{perl_vendorarch}/auto/Crypt/DES -%{perl_vendorarch}/auto/Crypt/DES/DES.bs %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/DES/DES.so -%{_mandir}/man3/* +%{_mandir}/man3/Crypt::DES.3pm*