8
0
Files
perl-Hash-Util-FieldHash-Co…/perl-Hash-Util-FieldHash-Compat.spec

62 lines
1.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Hash-Util-FieldHash-Compat
#
# norootforbuild
Name: perl-Hash-Util-FieldHash-Compat
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
Summary: Use Hash::Util::FieldHash or ties, depending on availability
Url: http://search.cpan.org/perldoc?Hash::Util::FieldHash::Compat
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.03
Release: 1
Vendor: openSUSE-Education
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl-macros
BuildRequires: perl(Test::use::ok)
%{perl_requires}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Under older perls this module provides a drop in compatible api to
Hash::Util::FieldHash using perltie. When Hash::Util::FieldHash is available it
will use that instead.
This way code requiring field hashes can benefit from fast, robust field hashes
on Perl 5.10 and newer, but still run on older perls that don't ship with that
module.
See Hash::Util::FieldHash for all the details of the API.
Author:
-------
Yuval Kogman <nothingmuch@woobling.org>
%prep
%setup -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc MANIFEST
%changelog