From 6525bc8f4e107596ce573972ef4151a67234f6c0 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Tue, 21 Jul 2026 14:11:06 +0200 Subject: [PATCH] Import perl-Feature-Compat-Try 0.05 for the openQA stack Based on the Fedora package (0.05-11). AlmaLinux/EL9 changes: - Drop the perl(Future) and perl(Future::AsyncAwait) test-only BuildRequires and remove t/80await+try.t in %prep, so the package builds on EL9 without the large Future::AsyncAwait build-dep tree. All other tests still run under %check. --- .gitignore | 1 + .perl-Feature-Compat-Try.metadata | 1 + SPECS/perl-Feature-Compat-Try.spec | 109 +++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Feature-Compat-Try.metadata create mode 100644 SPECS/perl-Feature-Compat-Try.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8341eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Feature-Compat-Try-0.05.tar.gz diff --git a/.perl-Feature-Compat-Try.metadata b/.perl-Feature-Compat-Try.metadata new file mode 100644 index 0000000..cdafd61 --- /dev/null +++ b/.perl-Feature-Compat-Try.metadata @@ -0,0 +1 @@ +4d90447ea1f221cd524ff32c31c7ccee4d0307c8 SOURCES/Feature-Compat-Try-0.05.tar.gz diff --git a/SPECS/perl-Feature-Compat-Try.spec b/SPECS/perl-Feature-Compat-Try.spec new file mode 100644 index 0000000..3b89410 --- /dev/null +++ b/SPECS/perl-Feature-Compat-Try.spec @@ -0,0 +1,109 @@ +Name: perl-Feature-Compat-Try +Version: 0.05 +Release: 11%{?dist} +Summary: Make try/catch syntax available +License: GPL-1.0-or-later OR Artistic-1.0-Perl + +URL: https://metacpan.org/dist/Feature-Compat-Try +Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Feature-Compat-Try-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(:VERSION) >= 5.14 +BuildRequires: perl(constant) +BuildRequires: perl(feature) +# AlmaLinux/EL9: perl(Future) and perl(Future::AsyncAwait) are only needed by +# the t/80await+try.t test; that test is removed in %prep to avoid pulling in +# the large Future::AsyncAwait build-dep tree, so these BuildRequires are dropped. +BuildRequires: perl(Module::Build) +BuildRequires: perl(overload) +BuildRequires: perl(strict) +BuildRequires: perl(Syntax::Keyword::Try) >= 0.27 +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(warnings) + +%if 0%{?fedora} < 37 +# https://bugzilla.redhat.com/show_bug.cgi?id=2158742#c2 +Requires: perl(Syntax::Keyword::Try) >= 0.27 +%endif + + +%description +This module makes syntax support for try/catch control flow easily available. + + +%prep +%autosetup -n Feature-Compat-Try-%{version} +# AlmaLinux/EL9: drop the async test which requires perl(Future::AsyncAwait) +# (avoids the large Future::AsyncAwait build-dep tree). All other tests run. +rm -f t/80await+try.t + + +%build +perl Build.PL installdirs=vendor +./Build + + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%{_fixperms} %{buildroot}/* + + +%check +./Build test + + +%files +%doc Changes README +%license LICENSE +%dir %{perl_vendorlib}/Feature/ +%dir %{perl_vendorlib}/Feature/Compat +%{perl_vendorlib}/Feature/Compat/Try.pm +%{_mandir}/man3/Feature::Compat::Try.* + + +%changelog +* Tue Jul 21 2026 Andrew Lukoshko - 0.05-11 +- Import into AlmaLinux for the openQA stack +- Drop the perl(Future) / perl(Future::AsyncAwait) test BuildRequires and + remove t/80await+try.t so the package builds on EL9 without the large + Future::AsyncAwait build-dep tree + +* Thu Jul 16 2026 Fedora Release Engineering - 0.05-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 0.05-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 0.05-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sat Jan 18 2025 Fedora Release Engineering - 0.05-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 19 2024 Fedora Release Engineering - 0.05-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.05-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.05-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.05-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.05-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 06 2023 Sandro Mani - 0.05-2 +- Fix license +- Fix source URL +- List files explicitly +- Fix requires/BRs + +* Fri Jan 06 2023 Sandro Mani - 0.05-1 +- Initial package