Compare commits

...

No commits in common. 'c9' and 'i10cs' have entirely different histories.
c9 ... i10cs

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Try-Tiny-0.30.tar.gz SOURCES/Try-Tiny-0.31.tar.gz

@ -1 +1 @@
4f0edb634a2b4c032c55ef9ab90dd8bbe7780afd SOURCES/Try-Tiny-0.30.tar.gz 32af708c7e4fce3d4af5403ef8fb38357155cb41 SOURCES/Try-Tiny-0.31.tar.gz

@ -6,8 +6,8 @@
Name: perl-Try-Tiny Name: perl-Try-Tiny
Summary: Minimal try/catch with proper localization of $@ Summary: Minimal try/catch with proper localization of $@
Version: 0.30 Version: 0.31
Release: 13%{?dist} Release: 12%{?dist}
License: MIT License: MIT
URL: https://metacpan.org/release/Try-Tiny URL: https://metacpan.org/release/Try-Tiny
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
@ -37,12 +37,14 @@ BuildRequires: perl(CPAN::Meta::Check) >= 0.011
BuildRequires: perl(CPAN::Meta::Requirements) BuildRequires: perl(CPAN::Meta::Requirements)
%endif %endif
# Runtime # Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Sub::Util) Requires: perl(Sub::Util)
# Do not provide private modules from tests packaged as a documentation # Do not provide private modules from tests packaged as a documentation
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/ %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
# Remove private test modules
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(TryUser\\)$
%description %description
This module provides bare bones try/catch statements that are designed to This module provides bare bones try/catch statements that are designed to
minimize common mistakes with eval blocks, and NOTHING else. minimize common mistakes with eval blocks, and NOTHING else.
@ -54,8 +56,22 @@ few dependencies, namely Devel::Declare and Scope::Upper that are occasionally
problematic, and the additional catch filtering uses Moose type constraints, problematic, and the additional catch filtering uses Moose type constraints,
which may not be desirable either. which may not be desirable either.
%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 %prep
%setup -q -n Try-Tiny-%{version} %setup -q -n Try-Tiny-%{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 %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
@ -65,6 +81,14 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot} %{_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 %check
make test make test
@ -75,13 +99,56 @@ make test
%{perl_vendorlib}/Try/ %{perl_vendorlib}/Try/
%{_mandir}/man3/Try::Tiny.3* %{_mandir}/man3/Try::Tiny.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-13 * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.31-12
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Bump release for October 2024 mass rebuild:
Related: rhbz#1991688 Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.31-11
- Rebuilt for MSVSphere 10
* Mon Aug 19 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.31-11
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.31-10
- Bump release for June 2024 mass rebuild
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-3
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Nov 24 2021 Paul Howarth <paul@city-fan.org> - 0.31-1
- Update to 0.31
- Plug Syntax::Keyword::Try and Feature::Compat::Try in the docs
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-12 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-12
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-11 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save