From 9cabab76822a9b2bf69640759ba77cfe7aa49066 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:47:40 +0000 Subject: [PATCH] import UBI perl-Module-Signature-0.88-12.el10 --- .gitignore | 2 +- .perl-Module-Signature.metadata | 1 - ...gnature.spec => perl-Module-Signature.spec | 77 +++++++++++++------ sources | 1 + 4 files changed, 54 insertions(+), 27 deletions(-) delete mode 100644 .perl-Module-Signature.metadata rename SPECS/perl-Module-Signature.spec => perl-Module-Signature.spec (87%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 22c1b95..280eeca 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Module-Signature-0.88.tar.gz +Module-Signature-0.88.tar.gz diff --git a/.perl-Module-Signature.metadata b/.perl-Module-Signature.metadata deleted file mode 100644 index e160f6c..0000000 --- a/.perl-Module-Signature.metadata +++ /dev/null @@ -1 +0,0 @@ -4456c3dc901f89289456bbc98109c81cdad991de SOURCES/Module-Signature-0.88.tar.gz diff --git a/SPECS/perl-Module-Signature.spec b/perl-Module-Signature.spec similarity index 87% rename from SPECS/perl-Module-Signature.spec rename to perl-Module-Signature.spec index 85dc63a..f722331 100644 --- a/SPECS/perl-Module-Signature.spec +++ b/perl-Module-Signature.spec @@ -3,9 +3,9 @@ Name: perl-Module-Signature Version: 0.88 -Release: 1%{?dist} +Release: 12%{?dist} Summary: CPAN signature management utilities and modules -License: CC0 +License: CC0-1.0 URL: https://metacpan.org/release/Module-Signature Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Signature-%{version}.tar.gz BuildArch: noarch @@ -15,6 +15,7 @@ BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(inc::Module::Install) >= 0.92 BuildRequires: perl(lib) BuildRequires: perl(Module::Install::Can) @@ -28,7 +29,6 @@ BuildRequires: sed BuildRequires: gnupg2 BuildRequires: perl(constant) BuildRequires: perl(Digest::SHA) -BuildRequires: perl(Digest::SHA1) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::Manifest) BuildRequires: perl(File::Spec) @@ -43,11 +43,9 @@ BuildRequires: perl(Getopt::Long) BuildRequires: perl(IPC::Run) BuildRequires: perl(Pod::Usage) BuildRequires: perl(Test::More) -# Module runtime -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Dependencies Requires: gnupg2 Requires: perl(Digest::SHA) -Requires: perl(Digest::SHA1) Requires: perl(File::Temp) Requires: perl(IO::Socket::INET) Requires: perl(Text::Diff) @@ -75,7 +73,7 @@ rm -r ./inc/* sed -i -e '/^inc\//d' MANIFEST # Help generators to recognize Perl scripts -for F in t/*.t t/*.pl; do +for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done @@ -89,30 +87,24 @@ make %{?_smp_mflags} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} - -# Install tests - copy tests to tmp -mkdir -p %{buildroot}/%{_libexecdir}/%{name} -cp -a t %{buildroot}/%{_libexecdir}/%{name} -# Use module and script installed on system -perl -i -pe 's{"-I../../lib/", "../../script/cpansign", }{}' %{buildroot}%{_libexecdir}/%{name}/t/3-verify.t -cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' -#!/bin/bash -set -e -# Some tests write into temporary files/directories. The easiest solution -# is to copy the tests into a writable directory and execute them from there. -DIR=$(mktemp -d) -pushd "$DIR" -cp -a %{_libexecdir}/%{name}/* ./ -prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -popd -rm -rf "$DIR" +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cp -a script %{buildroot}%{_libexecdir}/%{name} +chmod +x %{buildroot}%{_libexecdir}/%{name}/script/cpansign +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 +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export GNUPGHOME=%{gnupghome} make test +%clean +rm -rf %{buildroot} %{gnupghome} + %files %doc AUTHORS Changes README *.pub %{_bindir}/cpansign @@ -124,6 +116,41 @@ make test %{_libexecdir}/%{name} %changelog +* Tue Oct 29 2024 Troy Dawson - 0.88-12 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Wed Aug 07 2024 Michal Josef Špaček - 0.88-11 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 0.88-10 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.88-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.88-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Oct 13 2023 Michal Josef Špaček - 0.88-7 +- Drop redundant dependency of Digest::SHA1; implementation from Digest::SHA + is used instead + +* Thu Jul 20 2023 Fedora Release Engineering - 0.88-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.88-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.88-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Jitka Plesnikova - 0.88-3 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.88-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Sat Dec 18 2021 Paul Howarth - 0.88-1 - Update to 0.88 - Update PAUSE keys to 2022 diff --git a/sources b/sources new file mode 100644 index 0000000..178c3ac --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Module-Signature-0.88.tar.gz) = 624d7508b7854e05c50915b9192552fddd17e22043f2b330c02c34ad44dd01cb0ffd657fcd4e5333324b2ce9a05e044772e80c3ae061608f91d8101d00b3666c