Compare commits
No commits in common. "c9-beta" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/Module-Signature-0.88.tar.gz
|
||||
/Module-Signature-[0-9.]*.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
4456c3dc901f89289456bbc98109c81cdad991de SOURCES/Module-Signature-0.88.tar.gz
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
# RHEL
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -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 <tdawson@redhat.com> - 0.88-12
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Wed Aug 07 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.88-11
|
||||
- Package tests
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.88-10
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Oct 13 2023 Michal Josef Špaček <mspacek@redhat.com> - 0.88-7
|
||||
- Drop redundant dependency of Digest::SHA1; implementation from Digest::SHA
|
||||
is used instead
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.88-3
|
||||
- Perl 5.36 rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Sat Dec 18 2021 Paul Howarth <paul@city-fan.org> - 0.88-1
|
||||
- Update to 0.88
|
||||
- Update PAUSE keys to 2022
|
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (Module-Signature-0.88.tar.gz) = 624d7508b7854e05c50915b9192552fddd17e22043f2b330c02c34ad44dd01cb0ffd657fcd4e5333324b2ce9a05e044772e80c3ae061608f91d8101d00b3666c
|
12
tests/upstream-tests.fmf
Normal file
12
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,12 @@
|
||||
summary: Upstream tests
|
||||
contact: Michal Josef Spacek <mspacek@redhat.com>
|
||||
component: perl-Module-Signature
|
||||
require: perl-Module-Signature-tests
|
||||
test: /usr/libexec/perl-Module-Signature/test
|
||||
enabled: true
|
||||
tag:
|
||||
- rhel-buildroot
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro < rhel-10 or distro < centos-stream-10
|
||||
continue: false
|
Loading…
Reference in New Issue
Block a user