Compare commits
No commits in common. "c8" 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/Sub-Exporter-Progressive-0.001013.tar.gz
|
||||
/Sub-Exporter-Progressive-[0-9.]*.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
4ee0cf333cfb482f71f052ccdd3a3bcefaa291f7 SOURCES/Sub-Exporter-Progressive-0.001013.tar.gz
|
||||
@ -1,137 +0,0 @@
|
||||
--- Makefile.PL
|
||||
+++ Makefile.PL
|
||||
@@ -17,7 +17,7 @@ my %WriteMakefileArgs = (
|
||||
"NAME" => "Sub::Exporter::Progressive",
|
||||
"PREREQ_PM" => {},
|
||||
"TEST_REQUIRES" => {
|
||||
- "Test::More" => "0.88"
|
||||
+ "Test::More" => "0.47"
|
||||
},
|
||||
"VERSION" => "0.001013",
|
||||
"test" => {
|
||||
@@ -27,7 +27,7 @@ my %WriteMakefileArgs = (
|
||||
|
||||
|
||||
my %FallbackPrereqs = (
|
||||
- "Test::More" => "0.88"
|
||||
+ "Test::More" => "0.47"
|
||||
);
|
||||
|
||||
|
||||
--- t/all.t
|
||||
+++ t/all.t
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 6;
|
||||
use lib 't/lib';
|
||||
use A::JunkAll;
|
||||
|
||||
@@ -17,5 +17,3 @@ use A::JunkAll ':all';
|
||||
ok(main->can('junk1'), 'sub exported');
|
||||
ok(main->can('junk2'), 'sub exported');
|
||||
ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
|
||||
-
|
||||
-done_testing;
|
||||
--- t/basic.t
|
||||
+++ t/basic.t
|
||||
@@ -2,11 +2,9 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 2;
|
||||
use lib 't/lib';
|
||||
use A::Junk 'junk1';
|
||||
|
||||
ok(main->can('junk1'), 'requested sub exported');
|
||||
ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
|
||||
-
|
||||
-done_testing;
|
||||
--- t/default.t
|
||||
+++ t/default.t
|
||||
@@ -2,11 +2,9 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 2;
|
||||
use lib 't/lib';
|
||||
use A::Junk;
|
||||
|
||||
ok(main->can('junk2'), 'sub exported');
|
||||
ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
|
||||
-
|
||||
-done_testing;
|
||||
--- t/release-changes_has_content.t
|
||||
+++ t/release-changes_has_content.t
|
||||
@@ -10,7 +10,6 @@ BEGIN {
|
||||
|
||||
use Test::More tests => 2;
|
||||
|
||||
-note 'Checking Changes';
|
||||
my $changes_file = 'Changes';
|
||||
my $newver = '0.001013';
|
||||
my $trial_token = '-TRIAL';
|
||||
@@ -22,8 +21,6 @@ SKIP: {
|
||||
ok(_get_changes($newver), "$changes_file has content for $newver");
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
|
||||
# by Jerome Quelin
|
||||
sub _get_changes
|
||||
--- t/sex.t
|
||||
+++ t/sex.t
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 2;
|
||||
BEGIN {
|
||||
plan skip_all => 'Sub::Exporter not installed'
|
||||
unless eval { require Sub::Exporter };
|
||||
@@ -13,5 +13,3 @@ use A::Junk 'junk1' => { -as => 'junk' }
|
||||
|
||||
ok(main->can('junk'), 'sub renamed with Sub::Exporter');
|
||||
ok($INC{'Sub/Exporter.pm'}, 'Sub::Exporter loaded');
|
||||
-
|
||||
-done_testing;
|
||||
--- t/tags.t
|
||||
+++ t/tags.t
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 44;
|
||||
use Carp;
|
||||
use lib 't/lib';
|
||||
use A::Junk ':other';
|
||||
@@ -64,5 +64,3 @@ SKIP: {
|
||||
check_tag('bar -default', [qw/foo bar/], [qw/baz/]);
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
--- t/version-check.t
|
||||
+++ t/version-check.t
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More tests => 5;
|
||||
|
||||
BEGIN {
|
||||
package AAA;
|
||||
@@ -38,5 +38,3 @@ ok(eval('use AAA 1; 1'), 'perl built-in
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
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}
|
||||
@ -1,23 +1,18 @@
|
||||
# We need to patch the test suite if we have old versions of Test::More
|
||||
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
||||
|
||||
Name: perl-Sub-Exporter-Progressive
|
||||
Version: 0.001013
|
||||
Release: 5%{?dist}
|
||||
Release: 27%{?dist}
|
||||
Summary: Only use Sub::Exporter if you need it
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/Sub-Exporter-Progressive/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/Sub-Exporter-Progressive-%{version}.tar.gz
|
||||
Patch1: Sub-Exporter-Progressive-0.001013-old-Test::More.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/release/Sub-Exporter-Progressive
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Sub/Sub-Exporter-Progressive-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# =============== Module Build ======================
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# =============== Module Runtime ====================
|
||||
BuildRequires: perl(Carp)
|
||||
@ -28,13 +23,16 @@ BuildRequires: perl(warnings)
|
||||
# =============== Test Suite ========================
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More)
|
||||
# =============== Module Runtime ====================
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
# =============== Module Dependencies ===============
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Exporter) >= 5.58
|
||||
Requires: perl(Sub::Exporter)
|
||||
|
||||
# Remove private test modules
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(A::(Junk|JunkAll)\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(A::(Junk|JunkAll)\\)$
|
||||
|
||||
%description
|
||||
Sub::Exporter is an incredibly powerful module, but with that power comes
|
||||
great responsibility, er- as well as some runtime penalties. This module is a
|
||||
@ -48,41 +46,128 @@ Exporter to work. Additionally, if your package uses advanced Sub::Exporter
|
||||
features like currying, this module will only ever use Sub::Exporter, so you
|
||||
might as well use it directly.
|
||||
|
||||
%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 Sub-Exporter-Progressive-%{version}
|
||||
|
||||
# We need to patch the test suite if we have old versions of Test::More
|
||||
%if %{old_test_more}
|
||||
%patch1
|
||||
%endif
|
||||
# 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
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
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}
|
||||
# Remove author tests
|
||||
rm -f %{buildroot}%{_libexecdir}/%{name}/t/author-pod-syntax.t
|
||||
rm -f %{buildroot}%{_libexecdir}/%{name}/t/release-changes_has_content.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
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%if 0%{?_licensedir:1}
|
||||
%license LICENSE
|
||||
%else
|
||||
%doc LICENSE
|
||||
%endif
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/Sub/
|
||||
%{_mandir}/man3/Sub::Exporter::Progressive.3*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.001013-27
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Thu Aug 22 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.001013-26
|
||||
- Package tests
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.001013-25
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri May 12 2023 Paul Howarth <paul@city-fan.org> - 0.001013-21
|
||||
- Spec tidy-up
|
||||
- Use SPDX-format license tag
|
||||
- Use author-independent source URL
|
||||
- Drop support for building with Test::More < 0.88
|
||||
- Drop redundant buildroot cleaning in %%install section
|
||||
- Use %%license unconditionally
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-18
|
||||
- Perl 5.36 rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-15
|
||||
- Perl 5.34 rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-12
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-9
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-6
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
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 @@
|
||||
72cf6acdd2a0a8b105821a4db98e4ebe Sub-Exporter-Progressive-0.001013.tar.gz
|
||||
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-Sub-Exporter-Progressive
|
||||
require: perl-Sub-Exporter-Progressive-tests
|
||||
test: /usr/libexec/perl-Sub-Exporter-Progressive/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