File perl-Hash-MoreUtils.spec of Package perl-Hash-MoreUtils

#
# spec file for package perl-Hash-MoreUtils
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           perl-Hash-MoreUtils
Version:        0.02
Release:        1
Summary:        Provide the stuff missing in Hash::Util
Source:         http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/Hash-MoreUtils-%{version}.tar.gz
Url:            http://search.cpan.org/dist/Hash-MoreUtils
Group:          Development/Libraries/Perl
License:        Artistic-1.0 or GPL-1.0+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Module::Build) >= 0.36
BuildRequires:  perl(Module::Build)

%description
Similar to "List::MoreUtils", "Hash::MoreUtils" contains trivial but
commonly-used functionality for hashes.

%prep
%setup -q -n "Hash-MoreUtils-%{version}"

%build
%__perl ./Build.PL
./Build

%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist

%check
./Build test

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Hash
%{perl_vendorlib}/Hash/MoreUtils.pm
%dir %{perl_vendorarch}/auto/Hash
%{perl_vendorarch}/auto/Hash/MoreUtils
%doc %{perl_man3dir}/Hash::MoreUtils.%{perl_man3ext}%{ext_man}
%changelog
openSUSE Build Service is sponsored by