|
|
|
@ -1,32 +1,29 @@
|
|
|
|
|
Name: perl-Crypt-OpenSSL-Random
|
|
|
|
|
Version: 0.17
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.15
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Summary: OpenSSL/LibreSSL pseudo-random number generator access
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
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: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: openssl
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
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)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
# Optional tests:
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
@ -34,115 +31,45 @@ BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
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
|
|
|
|
|
unset AUTOMATED_TESTING
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
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 {} \;
|
|
|
|
|
%{_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 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}
|
|
|
|
|
%doc Changes
|
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
|
%{perl_vendorarch}/Crypt/
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.17-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 14 2024 Petr Pisar <ppisar@redhat.com> - 0.17-1
|
|
|
|
|
- 0.17 bump
|
|
|
|
|
|
|
|
|
|
* Mon Jun 10 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-2
|
|
|
|
|
- Perl 5.40 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 17 2024 Petr Pisar <ppisar@redhat.com> - 0.16-1
|
|
|
|
|
- 0.16 bump
|
|
|
|
|
- Package the tests
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-23
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-21
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-20
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 07 2023 Michal Josef Špaček <mspacek@redhat.com> - 0.15-19
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
- Modernize spec
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-16
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.15-14
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.15-14
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.15-13
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-12
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.15-12
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|