2010-04-10 10:29:21 +00:00
|
|
|
#
|
|
|
|
# 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
|
2010-09-15 21:22:27 +00:00
|
|
|
Version: 0.58
|
2010-04-10 10:29:21 +00:00
|
|
|
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
|
2010-09-15 21:22:27 +00:00
|
|
|
make test
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%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
|