diff --git a/.gitignore b/.gitignore index 2d48a12..1fb723e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /Crypt-URandom-0.34.tar.gz /Crypt-URandom-0.36.tar.gz +/Crypt-URandom-0.38.tar.gz diff --git a/perl-Crypt-URandom.rpmlintrc b/perl-Crypt-URandom.rpmlintrc new file mode 100644 index 0000000..5e41aba --- /dev/null +++ b/perl-Crypt-URandom.rpmlintrc @@ -0,0 +1 @@ +addFilter('-tests.noarch: W: no-documentation') diff --git a/perl-Crypt-URandom.spec b/perl-Crypt-URandom.spec index e87291d..47bb24f 100644 --- a/perl-Crypt-URandom.spec +++ b/perl-Crypt-URandom.spec @@ -2,14 +2,14 @@ %bcond_without perl_Crypt_URandom_enables_optional_test Name: perl-Crypt-URandom -Version: 0.36 -Release: 21%{?dist} +Version: 0.38 +Release: 1%{?dist} Summary: Non-blocking randomness for Perl -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Crypt-URandom Source0: https://cpan.metacpan.org/authors/id/D/DD/DDICK/Crypt-URandom-%{version}.tar.gz BuildArch: noarch -BuildRequires: findutils +BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter @@ -25,6 +25,8 @@ BuildRequires: perl(FileHandle) # Win32::API not used # Win32::API::Type not used # Tests: +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(POSIX) BuildRequires: perl(Test::More) %if %{with perl_Crypt_URandom_enables_optional_test} # Optional tests: @@ -55,6 +57,11 @@ with "%{_libexecdir}/%{name}/test". rm t/pod.t perl -i -ne 'print $_ unless m{^t/pod.t}' MANIFEST %endif +# Delete always skipped release tests +rm t/manifest.t +perl -i -ne 'print $_ unless m{^t/manifest.t}' MANIFEST +# Make scripts with shebangs executable +chmod a+x t/core_read.t t/core_sysopen.t %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 @@ -66,6 +73,8 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} +# t/boilerplate.t expects files in source archive localtions. +rm %{buildroot}%{_libexecdir}/%{name}/t/boilerplate.t %if %{with perl_Crypt_URandom_enables_optional_test} rm %{buildroot}%{_libexecdir}/%{name}/t/pod.t %endif @@ -80,14 +89,19 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print make test %files +# README.md is identical to README. %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%dir %{perl_vendorlib}/Crypt +%{perl_vendorlib}/Crypt/URandom.pm +%{_mandir}/man3/Crypt::URandom.* %files tests %{_libexecdir}/%{name} %changelog +* Thu May 11 2023 Petr Pisar - 0.38-1 +- 0.38 bump + * Fri Dec 17 2021 Petr Pisar - 0.36-21 - Modernize a spec file - Package the tests diff --git a/sources b/sources index 68a15fc..77269e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Crypt-URandom-0.36.tar.gz) = 59e6773d808f34f242f2520ed236faeed804d623fbcf4f1b8e7b39ed215ff1cde9f76ce4a9f5f260dfac42b036229a56cdb49a7f6856d5e943ed4d50e3392adc +SHA512 (Crypt-URandom-0.38.tar.gz) = 00e42e6a87102fc5042e9203177ca6dafbbe1fbc674efb2200446254cc48a1efc7fe290b15ed4e534c9f45e71d85a44a1d312179dd01dd10d64911e24ba76c05