Skip to content

Commit

Permalink
Upgrade:perl-Crypt-OpenSSL-Random version to 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jykanase committed Dec 19, 2024
1 parent f26ed9c commit 92b4042
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"perl-Crypt-OpenSSL-Random-0.15.tar.gz": "f0876faa1ba3111e39b86aa730c603211eff2905e460c72a57b61e8cf475cef4"
"perl-Crypt-OpenSSL-Random-0.17.tar.gz": "a571b24181baaa76c96704e92acffc6934ff593e380dade274db4e43c140ad51"
}
}
}
151 changes: 123 additions & 28 deletions SPECS-EXTENDED/perl-Crypt-OpenSSL-Random/perl-Crypt-OpenSSL-Random.spec
Original file line number Diff line number Diff line change
@@ -1,69 +1,164 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
Name: perl-Crypt-OpenSSL-Random
Version: 0.15
Release: 8%{?dist}
Version: 0.17
Release: 3%{?dist}
Summary: OpenSSL/LibreSSL pseudo-random number generator access
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://metacpan.org/release/Crypt-OpenSSL-Random
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-%{version}.tar.gz#/perl-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}

%description
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 %{?_smp_mflags}
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
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 0.15-8
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
* Thu Dec 19 2024 Jyoti kanase <[email protected]> - 0.17-3
- Azure Linux import from Fedora 41 (license: MIT).
- License verified.

* Thu Jul 18 2024 Fedora Release Engineering <[email protected]> - 0.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Fri Jun 14 2024 Petr Pisar <[email protected]> - 0.17-1
- 0.17 bump

* Mon Jun 10 2024 Jitka Plesnikova <[email protected]> - 0.16-2
- Perl 5.40 rebuild

* Fri May 17 2024 Petr Pisar <[email protected]> - 0.16-1
- 0.16 bump
- Package the tests

* Thu Jan 25 2024 Fedora Release Engineering <[email protected]> - 0.15-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Sun Jan 21 2024 Fedora Release Engineering <[email protected]> - 0.15-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Thu Jul 20 2023 Fedora Release Engineering <[email protected]> - 0.15-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Tue Jul 11 2023 Jitka Plesnikova <[email protected]> - 0.15-20
- Perl 5.38 rebuild

* Wed Jun 07 2023 Michal Josef Špaček <[email protected]> - 0.15-19
- Update license to SPDX format
- Modernize spec

* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 0.15-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 0.15-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Tue May 31 2022 Jitka Plesnikova <[email protected]> - 0.15-16
- Perl 5.36 rebuild

* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 0.15-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Tue Sep 14 2021 Sahana Prasad <[email protected]> - 0.15-14
- Rebuilt with OpenSSL 3.0.0

* Thu Jul 22 2021 Fedora Release Engineering <[email protected]> - 0.15-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri May 21 2021 Jitka Plesnikova <[email protected]> - 0.15-12
- Perl 5.34 rebuild

* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 0.15-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <[email protected]> - 0.15-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jun 23 2020 Jitka Plesnikova <[email protected]> - 0.15-9
- Perl 5.32 rebuild

* Tue Feb 04 2020 Tom Stellard <[email protected]> - 0.15-8
- Use make_build macro
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make

* Wed Jan 29 2020 Fedora Release Engineering <[email protected]> - 0.15-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16543,8 +16543,8 @@
"type": "other",
"other": {
"name": "perl-Crypt-OpenSSL-Random",
"version": "0.15",
"downloadUrl": "https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz"
"version": "0.17",
"downloadUrl": "https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-0.17.tar.gz"
}
}
},
Expand Down

0 comments on commit 92b4042

Please sign in to comment.