2010-04-10 10:29:21 +00:00
|
|
|
#
|
2010-10-20 11:46:56 +00:00
|
|
|
# spec file for package perl-Data-Util (Version 0.58)
|
|
|
|
#
|
2011-07-14 08:00:29 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-10-20 11:46:56 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2010-04-10 10:29:21 +00:00
|
|
|
#
|
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
Name: perl-Data-Util
|
|
|
|
Version: 0.58
|
2011-07-14 08:00:29 +00:00
|
|
|
Release: 1
|
2010-10-20 11:46:56 +00:00
|
|
|
License: GPL+ or Artistic
|
2011-07-14 08:00:29 +00:00
|
|
|
%define cpan_name Data-Util
|
|
|
|
Summary: A selection of utilities for data and data types
|
2010-10-20 11:46:56 +00:00
|
|
|
Url: http://search.cpan.org/dist/Data-Util/
|
2011-07-14 08:00:29 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
|
2010-10-20 11:46:56 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-07-14 08:00:29 +00:00
|
|
|
BuildRequires: perl(Bar)
|
|
|
|
BuildRequires: perl(Class::Method::Modifiers)
|
|
|
|
BuildRequires: perl(Data::OptList)
|
2010-10-20 11:46:56 +00:00
|
|
|
BuildRequires: perl(Devel::PPPort) >= 3.19
|
|
|
|
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
|
|
|
|
BuildRequires: perl(Hash::Util::FieldHash::Compat)
|
2011-07-14 08:00:29 +00:00
|
|
|
BuildRequires: perl(inc::Module::Install)
|
|
|
|
BuildRequires: perl(JSON)
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(mro)
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
|
|
|
BuildRequires: perl(Params::Util)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(Parse::CPAN::Meta)
|
2010-10-20 11:46:56 +00:00
|
|
|
BuildRequires: perl(Scope::Guard)
|
2011-07-14 08:00:29 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter)
|
2010-10-20 11:46:56 +00:00
|
|
|
BuildRequires: perl(Test::Exception) >= 0.27
|
|
|
|
BuildRequires: perl(XSLoader) >= 0.1
|
2011-07-14 08:00:29 +00:00
|
|
|
BuildRequires: perl(YAML::Tiny)
|
2010-10-20 11:46:56 +00:00
|
|
|
Requires: perl(XSLoader) >= 0.1
|
2011-07-14 08:00:29 +00:00
|
|
|
%{perl_requires}
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides utility functions for data and data types, including
|
|
|
|
functions for subroutines and symbol table hashes (stashes).
|
|
|
|
|
2011-07-14 08:00:29 +00:00
|
|
|
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.
|
2010-04-10 10:29:21 +00:00
|
|
|
|
2011-07-14 08:00:29 +00:00
|
|
|
There are many benchmarks in the _DIST-DIR/benchmark/_ directory.
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%prep
|
2010-10-20 11:46:56 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-07-14 08:00:29 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%build
|
2011-07-14 08:00:29 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2010-10-20 11:46:56 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%check
|
2010-10-20 11:46:56 +00:00
|
|
|
%{__make} test
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
2011-07-14 08:00:29 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2010-04-10 10:29:21 +00:00
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
%files -f %{name}.files
|
2011-07-14 08:00:29 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes example README
|
2010-04-10 10:29:21 +00:00
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
%changelog
|