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.
This commit is contained in:
commit
6525bc8f4e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/Feature-Compat-Try-0.05.tar.gz
|
||||
1
.perl-Feature-Compat-Try.metadata
Normal file
1
.perl-Feature-Compat-Try.metadata
Normal file
@ -0,0 +1 @@
|
||||
4d90447ea1f221cd524ff32c31c7ccee4d0307c8 SOURCES/Feature-Compat-Try-0.05.tar.gz
|
||||
109
SPECS/perl-Feature-Compat-Try.spec
Normal file
109
SPECS/perl-Feature-Compat-Try.spec
Normal file
@ -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 <alukoshko@almalinux.org> - 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 <releng@fedoraproject.org> - 0.05-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jan 06 2023 Sandro Mani <manisandro@gmail.com> - 0.05-2
|
||||
- Fix license
|
||||
- Fix source URL
|
||||
- List files explicitly
|
||||
- Fix requires/BRs
|
||||
|
||||
* Fri Jan 06 2023 Sandro Mani <manisandro@gmail.com> - 0.05-1
|
||||
- Initial package
|
||||
Loading…
Reference in New Issue
Block a user