File perl-Data-Util.spec of Package perl-Data-Util

#
# spec file for package perl-Data-Util
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           perl-Data-Util
Version:        0.62
Release:        0
%define cpan_name Data-Util
Summary:        A selection of utilities for data and data types
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Data-Util/
Source:         http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Devel::PPPort) >= 3.19
BuildRequires:  perl(ExtUtils::ParseXS) >= 2.21
BuildRequires:  perl(Hash::Util::FieldHash::Compat)
BuildRequires:  perl(Scope::Guard)
BuildRequires:  perl(Test::Exception) >= 0.27
#BuildRequires: perl(Bar)
#BuildRequires: perl(Base)
#BuildRequires: perl(Class::Method::Modifiers)
#BuildRequires: perl(Common)
#BuildRequires: perl(Data::OptList)
#BuildRequires: perl(Data::Util)
#BuildRequires: perl(Data::Util::Error)
#BuildRequires: perl(feature)
#BuildRequires: perl(Foo)
#BuildRequires: perl(inc::Module::Install) >= 1.06
#BuildRequires: perl(JSON)
#BuildRequires: perl(Method::Modifiers)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Module::Install::XSUtil) >= 0.41
#BuildRequires: perl(Moose)
#BuildRequires: perl(mro)
#BuildRequires: perl(MRO::Compat)
#BuildRequires: perl(NSClean)
#BuildRequires: perl(Params::Util)
#BuildRequires: perl(parent)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Sub::Exporter)
#BuildRequires: perl(Sub::Exporter::Lexical)
#BuildRequires: perl(YAML::Tiny)
%{perl_requires}

%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.

There are many benchmarks in the _DIST-DIR/benchmark/_ directory.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes example README

%changelog
openSUSE Build Service is sponsored by