9d157cc
Name:           perl-Tie-Hash-Method
9d157cc
Version:        0.02
4f50e44
Release:        2%{?dist}
9d157cc
Summary:        Tied hash with specific methods overridden by callbacks
9d157cc
License:        GPL+ or Artistic
9d157cc
Group:          Development/Libraries
9d157cc
URL:            http://search.cpan.org/dist/Tie-Hash-Method/
9d157cc
Source0:        http://www.cpan.org/authors/id/Y/YV/YVES/Tie-Hash-Method-%{version}.tar.gz
9d157cc
BuildArch:      noarch
9d157cc
BuildRequires:  coreutils
9d157cc
BuildRequires:  findutils
9d157cc
BuildRequires:  make
9d157cc
BuildRequires:  perl
9d157cc
BuildRequires:  perl(ExtUtils::MakeMaker)
9d157cc
BuildRequires:  perl(strict)
9d157cc
BuildRequires:  perl(warnings)
9d157cc
# Runt-time:
9d157cc
BuildRequires:  perl(base)
9d157cc
BuildRequires:  perl(constant)
9d157cc
BuildRequires:  perl(Data::Dumper)
9d157cc
BuildRequires:  perl(Exporter)
9d157cc
# Tests:
9d157cc
BuildRequires:  perl(Test::More)
4f50e44
# Optional tests:
4f50e44
BuildRequires:  perl(Pod::Coverage) >= 0.18
4f50e44
BuildRequires:  perl(Test::Pod) >= 1.22
4f50e44
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
9d157cc
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
9d157cc
9d157cc
%description
9d157cc
Perl Tie::Hash::Method module provides a way to create a tied hash with
9d157cc
specific overridden behavior without having to create a new class to do it.
9d157cc
A tied hash with no methods overridden is functionally equivalent to a normal
9d157cc
hash.
9d157cc
9d157cc
%prep
9d157cc
%setup -q -n Tie-Hash-Method-%{version}
9d157cc
9d157cc
%build
9d157cc
perl Makefile.PL INSTALLDIRS=vendor
9d157cc
make %{?_smp_mflags}
9d157cc
9d157cc
%install
9d157cc
make pure_install DESTDIR=$RPM_BUILD_ROOT
9d157cc
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
9d157cc
%{_fixperms} $RPM_BUILD_ROOT/*
9d157cc
9d157cc
%check
9d157cc
make test
9d157cc
9d157cc
%files
9d157cc
%doc Changes README
9d157cc
%{perl_vendorlib}/*
9d157cc
%{_mandir}/man3/*
9d157cc
9d157cc
%changelog
4f50e44
* Wed Feb 10 2016 Petr Pisar <ppisar@redhat.com> - 0.02-2
4f50e44
- Specify dependencies for optional tests
4f50e44
9d157cc
* Thu Feb 04 2016 Petr Pisar <ppisar@redhat.com> 0.02-1
9d157cc
- Specfile autogenerated by cpanspec 1.78.