diff --git a/.gitignore b/.gitignore index 4ce413c..41b7c88 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Crypt-OpenSSL-Random-0.15.tar.gz +SOURCES/Crypt-OpenSSL-Random-0.17.tar.gz diff --git a/.perl-Crypt-OpenSSL-Random.metadata b/.perl-Crypt-OpenSSL-Random.metadata index c1c537d..cb2213f 100644 --- a/.perl-Crypt-OpenSSL-Random.metadata +++ b/.perl-Crypt-OpenSSL-Random.metadata @@ -1 +1 @@ -e32a198269a1e26a9615ac1132bf1ec7268fb378 SOURCES/Crypt-OpenSSL-Random-0.15.tar.gz +20ded281e882d3d8f24e365bc751d096c139fd9f SOURCES/Crypt-OpenSSL-Random-0.17.tar.gz diff --git a/SPECS/perl-Crypt-OpenSSL-Random.spec b/SPECS/perl-Crypt-OpenSSL-Random.spec index 852e08d..88f7a95 100644 --- a/SPECS/perl-Crypt-OpenSSL-Random.spec +++ b/SPECS/perl-Crypt-OpenSSL-Random.spec @@ -1,29 +1,32 @@ Name: perl-Crypt-OpenSSL-Random -Version: 0.15 -Release: 14%{?dist} +Version: 0.17 +Release: 2%{?dist} Summary: OpenSSL/LibreSSL pseudo-random number generator access -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Crypt-OpenSSL-Random Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-%{version}.tar.gz -BuildRequires: gcc -BuildRequires: openssl -BuildRequires: openssl-devel BuildRequires: coreutils BuildRequires: findutils +BuildRequires: gcc +BuildRequires: openssl-devel BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter +# perl-podlators for pod2text not needed if Random.pm is older than README +BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(Config) BuildRequires: perl(Crypt::OpenSSL::Guess) >= 0.11 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) -BuildRequires: perl(Test::More) BuildRequires: perl(vars) BuildRequires: perl(XSLoader) - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Tests: +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Test::Pod) >= 1.00 %{?perl_default_filter} @@ -31,45 +34,115 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi Crypt::OpenSSL::Random provides the ability to seed and query the OpenSSL and LibreSSL library's pseudo-random number generators. +%package tests +Summary: Tests for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n Crypt-OpenSSL-Random-%{version} +# Remove author-only tests that are always skipped +for F in t/z_kwalitee.t t/z_manifest.t t/z_meta.t t/z_perl_minimum_version.t \ + t/z_pod-coverage.t; do + rm "$F" + perl -i -ne 'print $_ unless m{^\E'"$F"'\Q}' MANIFEST +done; %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%make_build +unset AUTOMATED_TESTING +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -rm -rf %{buildroot} - -make pure_install DESTDIR=%{buildroot} - -find %{buildroot} -type f \( -name .packlist -o \ - -name '*.bs' -empty \) -exec rm -f {} \; -find %{buildroot} -depth -type d -empty -exec rmdir {} \; +%{make_install} +find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +rm %{buildroot}%{_libexecdir}/%{name}/t/z_pod.t +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files -%{!?_licensedir:%global license %%doc} %license LICENSE -%doc Changes -%{perl_vendorarch}/auto/* -%{perl_vendorarch}/Crypt/ -%{_mandir}/man3/* +%doc Changes README +%dir %{perl_vendorarch}/auto/Crypt +%dir %{perl_vendorarch}/auto/Crypt/OpenSSL +%{perl_vendorarch}/auto/Crypt/OpenSSL/Random +%dir %{perl_vendorarch}/Crypt +%dir %{perl_vendorarch}/Crypt/OpenSSL +%{perl_vendorarch}/Crypt/OpenSSL/Random.pm +%{_mandir}/man3/Crypt::OpenSSL::Random.* + +%files tests +%{_libexecdir}/%{name} %changelog -* Mon Aug 09 2021 Mohan Boddu - 0.15-14 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Sat Jan 04 2025 Arkady L. Shane - 0.17-2 +- Rebuilt for MSVSphere 10 + +* Thu Jul 18 2024 Fedora Release Engineering - 0.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 14 2024 Petr Pisar - 0.17-1 +- 0.17 bump + +* Mon Jun 10 2024 Jitka Plesnikova - 0.16-2 +- Perl 5.40 rebuild + +* Fri May 17 2024 Petr Pisar - 0.16-1 +- 0.16 bump +- Package the tests + +* Thu Jan 25 2024 Fedora Release Engineering - 0.15-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.15-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.15-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 0.15-20 +- Perl 5.38 rebuild + +* Wed Jun 07 2023 Michal Josef Špaček - 0.15-19 +- Update license to SPDX format +- Modernize spec + +* Fri Jan 20 2023 Fedora Release Engineering - 0.15-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.15-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Jitka Plesnikova - 0.15-16 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.15-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Sep 14 2021 Sahana Prasad - 0.15-14 +- Rebuilt with OpenSSL 3.0.0 -* Wed Jun 16 2021 Mohan Boddu - 0.15-13 -- Rebuilt for RHEL 9 BETA for openssl 3.0 - Related: rhbz#1971065 +* Thu Jul 22 2021 Fedora Release Engineering - 0.15-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Fri Apr 16 2021 Mohan Boddu - 0.15-12 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Fri May 21 2021 Jitka Plesnikova - 0.15-12 +- Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.15-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild