Compare commits

...

No commits in common. "c8-stream-5.3" and "c10s" have entirely different histories.

8 changed files with 154 additions and 10 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/parent-0.237.tar.gz
/parent-[0-9.]*.tar.gz

View File

@ -1 +0,0 @@
db0060ebc8de345602b23f7dc70b6fd5c4803438 SOURCES/parent-0.237.tar.gz

7
gating.yaml Normal file
View 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}

View File

@ -1,9 +1,9 @@
Name: perl-parent
Epoch: 1
Version: 0.237
Release: 2%{?dist}
Version: 0.241
Release: 512%{?dist}
Summary: Establish an ISA relationship with base classes at compile time
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/parent
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORION/parent-%{version}.tar.gz
BuildArch: noarch
@ -13,14 +13,18 @@ BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(strict)
# Test Suite
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.4
BuildRequires: perl(Test::More) >= 0.40
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Remove private test modules
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Dummy\\)$
%description
Allows you to both load one or more modules, while setting up inheritance
@ -35,8 +39,22 @@ from those modules at the same time. Mostly similar in effect to:
push @ISA, qw(Foo Bar);
}
%package tests
Summary: Tests for %{name}
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 parent-%{version}
# Help generators to recognize Perl scripts
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
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -46,6 +64,14 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
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
make test
@ -55,13 +81,106 @@ make test
%{perl_vendorlib}/parent.pm
%{_mandir}/man3/parent.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.237-2
- Rebuild with enable hardening (bug #1636329)
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:0.241-512
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.241-511
- Fix filters of dependencies
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.241-510
- Increase release to favour standalone package
* Fri Jul 12 2024 Michal Josef Špaček <mspacek@redhat.com> - 1:0.241-504
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:0.241-503
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.241-502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.241-501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.241-500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.241-499
- Increase release to favour standalone package
* Wed Feb 15 2023 Paul Howarth <paul@city-fan.org> - 1:0.241-1
- Update to 0.241
- Actually include the changes documented for version 0.240
* Tue Feb 14 2023 Paul Howarth <paul@city-fan.org> - 1:0.240-1
- Update to 0.240
- Use Test::More::isnt() instead of Test::More::isn't in tests, which is
deprecated, as ' isn't allowed as package separator in an upcoming version
of Perl (GH#13)
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.239-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Dec 7 2022 Paul Howarth <paul@city-fan.org> - 1:0.239-1
- Update to 0.239
- Harden against changes to require error messages: the '@INC contains' may
change in a future release of perl; this hardens the test to be insensitive
to the exact words chosen (https://github.com/Perl/perl5/pull/20547)
- Use SPDX-format license tag
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.238-489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.238-488
- Increase release to favour standalone package
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.238-479
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.238-478
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.238-477
- Increase release to favour standalone package
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.238-458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.238-457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.238-456
- Increase release to favour standalone package
* Fri Feb 7 2020 Paul Howarth <paul@city-fan.org> - 1:0.238-1
- Update to 0.238
- Move the prerequisite Test::More from being a runtime prerequisite to a
test time / build time prerequisite (GH#11)
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.237-440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.237-439
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.237-438
- Increase release to favour standalone package
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.237-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.237-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jul 7 2018 Paul Howarth <paul@city-fan.org> - 1:0.237-1
- Update to 0.237
- Don't load vars.pm (CPAN RT#132077)
- Don't load vars.pm (Perl RT#132077)
- Drop legacy Group: tag
- Drop buildroot cleaning in %%install section

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (parent-0.241.tar.gz) = 33918aa4f6c7d988a5fd4abdda03aaf8734cfc3f0fbbaed45dd4f8a0c1913965da9d45257d0603ded4b2bdfb8cbcc409e02ac6097f5ab2b9b08fbf81eaaa4358

12
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,12 @@
summary: Upstream tests
contact: Michal Josef Spacek <mspacek@redhat.com>
component: perl-parent
require: perl-parent-tests
test: /usr/libexec/perl-parent/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false