8
0
Files
perl-Data-Util/perl-Data-Util.spec

65 lines
1.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Data-Util
#
# norootforbuild
Name: perl-Data-Util
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
Summary: A selection of utilities for data and data types
Url: http://search.cpan.org/perldoc?Data::Util
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.58
Release: 1
Vendor: openSUSE-Education
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl-macros
BuildRequires: perl(Test::Exception)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Hash::Util::FieldHash::Compat)
BuildRequires: perl(Test::use::ok)
Requires: perl(ExtUtils::ParseXS)
Requires: perl(Sub::Uplevel)
Requires: perl(Hash::Util::FieldHash::Compat)
Requires: perl = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module provides utility functions for data and data types, including
functions for subroutines and symbol table hashes (stashes).
The implementation of this module is both Pure Perl and XS, so if you have a C
compiler, all the functions this module provides are really faster.
Author:
-------
Goro Fuji(gfx) <gfuji(at)cpan.org>
%prep
%setup -n %{cpan_name}-%{version}
chmod -x README Changes MANIFEST
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
chmod -x %{buildroot}/%{perl_vendorarch}/Data/Util/*
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%changelog