Compare commits

...

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

8 changed files with 176 additions and 12 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/Scalar-List-Utils-1.53.tar.gz
/Scalar-List-Utils-[0-9.]*.tar.gz

View File

@ -1 +0,0 @@
30b5861121ee98b8691b0b742011a91bfbdcde66 SOURCES/Scalar-List-Utils-1.53.tar.gz

19
gating.yaml Normal file
View File

@ -0,0 +1,19 @@
# Fedora
--- !Policy
id: fedora_policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,12 +1,13 @@
Name: perl-Scalar-List-Utils
Epoch: 3
Version: 1.53
Release: 439%{?dist}
Epoch: 5
Version: 1.63
Release: 511%{?dist}
Summary: A selection of general-utility scalar and list subroutines
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Scalar-List-Utils
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-%{version}.tar.gz
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
@ -40,7 +41,6 @@ BuildRequires: perl(Tie::Handle)
BuildRequires: perl(Tie::Scalar)
BuildRequires: perl(Tie::StdScalar)
BuildRequires: perl(vars)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Carp)
%{?perl_default_filter}
@ -51,30 +51,158 @@ would be nice to have in the perl core, but the usage would not really be
high enough to warrant the use of a keyword, and the size so small such
that being individual extensions would be wasteful.
%package tests
Summary: Tests for %{name}
BuildArch: noarch
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Carp)
Requires: perl(IO::File)
Requires: perl(IO::Handle)
Requires: perl(threads)
Requires: perl(threads::shared)
Requires: perl(Tie::Handle)
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Scalar-List-Utils-%{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 OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
%{make_install}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{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 . -r -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check
make test
%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/auto/List*
%{perl_vendorarch}/List*
%{perl_vendorarch}/Scalar*
%{perl_vendorarch}/Sub*
%{_mandir}/man3/*
%{_mandir}/man3/List*
%{_mandir}/man3/Scalar*
%{_mandir}/man3/Sub*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5:1.63-511
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 5:1.63-510
- Increase release to favour standalone package
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5:1.63-504
- Bump release for June 2024 mass rebuild
* Thu Feb 08 2024 Jitka Plesnikova <jplesnik@redhat.com> - 5:1.63-503
- Package tests
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.63-502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.63-501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.63-500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 5:1.63-499
- Increase release to favour standalone package
* Thu Jun 01 2023 Michal Josef Špaček <mspacek@redhat.com> - 5:1.63-491
- Update license to SPDX format
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.63-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Aug 10 2022 Jan Pazdziora <jpazdziora@redhat.com> - 5:1.63-489
- 2116427 - Rebase to upstream version 1.63.
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.62-489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5:1.62-488
- Increase release to favour standalone package
* Tue Mar 22 2022 Adam Williamson <awilliam@redhat.com> - 5:1.62-464
- Rebuild with no changes to fix Bodhi issues for F36
* Mon Mar 21 2022 Jan Pazdziora <jpazdziora@redhat.com> - 5:1.62-463
- 2065327 - Rebase to upstream version 1.62.
* Fri Feb 18 2022 Jan Pazdziora <jpazdziora@redhat.com> - 5:1.61-463
- 2055228 - Rebase to upstream version 1.61.
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.60-463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Oct 08 2021 Jan Pazdziora <jpazdziora@redhat.com> - 5:1.60-462
- 2012147 - Rebase to upstream version 1.60.
* Fri Sep 17 2021 Jan Pazdziora <jpazdziora@redhat.com> - 5:1.59-461
- 2003382 - Rebase to upstream version 1.59.
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5:1.56-461
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5:1.56-460
- Increase epoch to favour standalone package
* Thu Apr 01 2021 Jan Pazdziora <jpazdziora@redhat.com> - 4:1.56-459
- 1944897 - Rebase to upstream version 1.56.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4:1.55-458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4:1.55-457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4:1.55-456
- Increase release to favour standalone package
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4:1.55-456
- Increase epoch to favour standalone package
* Thu Apr 16 2020 Jan Pazdziora <jpazdziora@redhat.com> - 3:1.55-441
- 1823191 - Rebase to upstream version 1.55.
* Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 3:1.54-441
- Spec file cleanups: Use make_build and make_install macros
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMaker
* Mon Feb 03 2020 Jan Pazdziora <jpazdziora@redhat.com> - 3:1.54-440
- 1797333 - Rebase to upstream version 1.54.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3:1.53-440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Oct 25 2019 Jan Pazdziora <jpazdziora@redhat.com> - 3:1.53-439
- 1765091 - Rebase to upstream version 1.53.

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 (Scalar-List-Utils-1.63.tar.gz) = e9e44a62181153c5e28a39df56ec14e9ed2918c6b398dd8e3d9f79669969828f6c0e5efdd02970abaf71ae258b291ad434dc4c597cf6ba4fba55cda892ac8de8

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

@ -0,0 +1,11 @@
summary: Upstream tests
component: perl-Scalar-List-Utils
require: perl-Scalar-List-Utils-tests
test: /usr/libexec/perl-Scalar-List-Utils/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false