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