epel9
Petr Písař 2 years ago
parent b7085b0a98
commit d176c18f9a

1
.gitignore vendored

@ -1,2 +1,3 @@
/Crypt-URandom-0.34.tar.gz /Crypt-URandom-0.34.tar.gz
/Crypt-URandom-0.36.tar.gz /Crypt-URandom-0.36.tar.gz
/Crypt-URandom-0.38.tar.gz

@ -0,0 +1 @@
addFilter('-tests.noarch: W: no-documentation')

@ -2,14 +2,14 @@
%bcond_without perl_Crypt_URandom_enables_optional_test %bcond_without perl_Crypt_URandom_enables_optional_test
Name: perl-Crypt-URandom Name: perl-Crypt-URandom
Version: 0.36 Version: 0.38
Release: 21%{?dist} Release: 1%{?dist}
Summary: Non-blocking randomness for Perl 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 URL: https://metacpan.org/release/Crypt-URandom
Source0: https://cpan.metacpan.org/authors/id/D/DD/DDICK/Crypt-URandom-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/D/DD/DDICK/Crypt-URandom-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: findutils BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
@ -25,6 +25,8 @@ BuildRequires: perl(FileHandle)
# Win32::API not used # Win32::API not used
# Win32::API::Type not used # Win32::API::Type not used
# Tests: # Tests:
BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
%if %{with perl_Crypt_URandom_enables_optional_test} %if %{with perl_Crypt_URandom_enables_optional_test}
# Optional tests: # Optional tests:
@ -55,6 +57,11 @@ with "%{_libexecdir}/%{name}/test".
rm t/pod.t rm t/pod.t
perl -i -ne 'print $_ unless m{^t/pod.t}' MANIFEST perl -i -ne 'print $_ unless m{^t/pod.t}' MANIFEST
%endif %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 %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 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 # Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name} mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{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} %if %{with perl_Crypt_URandom_enables_optional_test}
rm %{buildroot}%{_libexecdir}/%{name}/t/pod.t rm %{buildroot}%{_libexecdir}/%{name}/t/pod.t
%endif %endif
@ -80,14 +89,19 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print
make test make test
%files %files
# README.md is identical to README.
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %dir %{perl_vendorlib}/Crypt
%{_mandir}/man3/* %{perl_vendorlib}/Crypt/URandom.pm
%{_mandir}/man3/Crypt::URandom.*
%files tests %files tests
%{_libexecdir}/%{name} %{_libexecdir}/%{name}
%changelog %changelog
* Thu May 11 2023 Petr Pisar <ppisar@redhat.com> - 0.38-1
- 0.38 bump
* Fri Dec 17 2021 Petr Pisar <ppisar@redhat.com> - 0.36-21 * Fri Dec 17 2021 Petr Pisar <ppisar@redhat.com> - 0.36-21
- Modernize a spec file - Modernize a spec file
- Package the tests - Package the tests

@ -1 +1 @@
SHA512 (Crypt-URandom-0.36.tar.gz) = 59e6773d808f34f242f2520ed236faeed804d623fbcf4f1b8e7b39ed215ff1cde9f76ce4a9f5f260dfac42b036229a56cdb49a7f6856d5e943ed4d50e3392adc SHA512 (Crypt-URandom-0.38.tar.gz) = 00e42e6a87102fc5042e9203177ca6dafbbe1fbc674efb2200446254cc48a1efc7fe290b15ed4e534c9f45e71d85a44a1d312179dd01dd10d64911e24ba76c05

Loading…
Cancel
Save