perl-List-AllUtils/perl-List-AllUtils.spec

69 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-List-AllUtils
#
# Copyright (c) 2015 SUSE LINUX 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-List-AllUtils
Version: 0.09
Release: 0
%define cpan_name List-AllUtils
Summary: Combines List::Util and List::MoreUtils in one bite-sized package
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/List-AllUtils/
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::MoreUtils) >= 0.28
BuildRequires: perl(List::Util) >= 1.31
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warnings)
Requires: perl(List::MoreUtils) >= 0.28
Requires: perl(List::Util) >= 1.31
%{perl_requires}
%description
Are you sick of trying to remember whether a particular helper is defined
in the List::Util manpage or the List::MoreUtils manpage? I sure am. Now
you don't have to remember. This module will export all of the functions
that either of those two modules defines.
Note that all function documentation has been shamelessly copied from the
List::Util manpage and the List::MoreUtils manpage.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__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 LICENSE README.md
%changelog