commit 20507e2eb0ede5f7e37ef5744a48b128ca94a3a3 Author: MSVSphere Packaging Team Date: Wed Mar 15 19:45:00 2023 +0300 import perl-Tie-RefHash-1.40-4.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a757c7f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Tie-RefHash-1.40.tar.gz diff --git a/.perl-Tie-RefHash.metadata b/.perl-Tie-RefHash.metadata new file mode 100644 index 0000000..0dc6180 --- /dev/null +++ b/.perl-Tie-RefHash.metadata @@ -0,0 +1 @@ +f2406372e048e49f56f23d1d83327bad9adc61dc SOURCES/Tie-RefHash-1.40.tar.gz diff --git a/SPECS/perl-Tie-RefHash.spec b/SPECS/perl-Tie-RefHash.spec new file mode 100644 index 0000000..83738cd --- /dev/null +++ b/SPECS/perl-Tie-RefHash.spec @@ -0,0 +1,88 @@ +# Perform optional tests +%bcond_without perl_Tie_RefHash_enables_optional_test + +Name: perl-Tie-RefHash +Version: 1.40 +Release: 4%{?dist} +Summary: Use references as hash keys +License: GPL+ or Artistic +URL: https://metacpan.org/release/Tie-RefHash +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Tie-RefHash-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +# Scalar::Util || overload +BuildRequires: perl(overload) +# Scalar::Util skipped to exhibit overload fallback +BuildRequires: perl(Tie::Hash) +# Tests: +BuildRequires: perl(File::Spec) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::More) +%if %{with perl_Tie_RefHash_enables_optional_test} +# Optional tests: +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(threads) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(overload) +Suggests: perl(Scalar::Util) >= 1.01 +Conflicts: perl-interpreter < 4:5.30.1-451 + +%description +This module provides the ability to use references as hash keys if you first +"tie" the hash variable to this module. Normally, only the keys of the tied +hash itself are preserved as references; to use references as keys in +hashes-of-hashes, use Tie::RefHash::Nestable, included as part of +Tie::RefHash. + +%prep +%setup -q -n Tie-RefHash-%{version} +%if !%{with perl_Tie_RefHash_enables_optional_test} +rm t/refhash.t +perl -i -ne 'print $_ unless m{^t/refhash\.t}' MANIFEST +%endif + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +unset PERL_CORE +make test + +%files +%license LICENCE +%doc Changes CONTRIBUTING README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Mar 15 2023 MSVSphere Packaging Team - 1.40-4 +- Rebuilt for MSVSphere 9.1. + +* Mon Aug 09 2021 Mohan Boddu - 1.40-4 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.40-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.40-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Oct 13 2020 Petr Pisar 1.40-1 +- Specfile autogenerated by cpanspec 1.78.