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