forked from pool/perl-Data-Util
- initial version 0.56
- skipped make test temporary as this currently breaks the build OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Util?expand=0&rev=1
This commit is contained in:
64
perl-Data-Util.spec
Normal file
64
perl-Data-Util.spec
Normal file
@@ -0,0 +1,64 @@
|
||||
#
|
||||
# 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.56
|
||||
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
|
Reference in New Issue
Block a user