diff --git a/.gitignore b/.gitignore index 31a1ad7..c50e154 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Crypt-DES-2.05.tar.gz +/Crypt-DES-2.05_002.tar.gz diff --git a/perl-Crypt-DES.spec b/perl-Crypt-DES.spec index 3080d09..612cfb1 100644 --- a/perl-Crypt-DES.spec +++ b/perl-Crypt-DES.spec @@ -1,21 +1,26 @@ +%global cpan_version 2.05_002 Name: perl-Crypt-DES -Version: 2.05 -Release: 20%{?dist} +Version: %(echo '%{cpan_version}' | tr _ .) +Release: 1%{?dist} Summary: Perl DES encryption module License: BSD Group: Development/Libraries URL: http://search.cpan.org/dist/Crypt-DES/ -Source0: http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/D/DA/DAVIDO/Crypt-DES-%{cpan_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) # Tests: -BuildRequires: perl(Crypt::CBC) > 1.22 BuildRequires: perl(Benchmark) BuildRequires: perl(Data::Dumper) +# Optional tests: +BuildRequires: perl(Crypt::CBC) > 1.22 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} @@ -24,7 +29,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi DES encryption module. %prep -%setup -q -n Crypt-DES-%{version} +%setup -q -n Crypt-DES-%{cpan_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -49,12 +54,15 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYRIGHT README +%doc Changes COPYRIGHT README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Crypt* %{_mandir}/man3/* %changelog +* Fri Jul 19 2013 Petr Pisar - 2.05.002-1 +- 2.05_002 bump + * Thu Jul 18 2013 Petr Pisar - 2.05-20 - Perl 5.18 rebuild diff --git a/sources b/sources index c9093f3..65e00d2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a8a0bea7064e11d2af434f3e468c17bb Crypt-DES-2.05.tar.gz +e9a55f450730593b7165c58ec3acdbc2 Crypt-DES-2.05_002.tar.gz