RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/perl-Tie-RefHash#eb6f8b5bab2343a35090279701fe8fb363181e29
This commit is contained in:
Troy Dawson 2020-10-20 07:32:06 -07:00
parent f307664f41
commit ee31e2ce8c
4 changed files with 84 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Tie-RefHash-1.40.tar.gz

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# perl-Tie-RefHash
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.

75
perl-Tie-RefHash.spec Normal file
View File

@ -0,0 +1,75 @@
# Perform optional tests
%bcond_without perl_Tie_RefHash_enables_optional_test
Name: perl-Tie-RefHash
Version: 1.40
Release: 1%{?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
* Tue Oct 13 2020 Petr Pisar <ppisar@redhat.com> 1.40-1
- Specfile autogenerated by cpanspec 1.78.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (Tie-RefHash-1.40.tar.gz) = 92fd68ad98a7cf0a7b907cf32b6460a90ec23db71114d5e5144541041204ce241236584b30a241c955608ba2823f87e21262fed56d9ee4675666152e88d3666b