fix up
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-List-UtilsBy?expand=0&rev=2
This commit is contained in:
parent
14001c3d3e
commit
1df4d974aa
@ -18,36 +18,44 @@
|
|||||||
Name: perl-List-UtilsBy
|
Name: perl-List-UtilsBy
|
||||||
Version: 0.07
|
Version: 0.07
|
||||||
Release: 1
|
Release: 1
|
||||||
License: CHECK(GPL+ or Artistic)
|
License: GPL+ or Artistic
|
||||||
%define cpan_name List-UtilsBy
|
%define cpan_name List-UtilsBy
|
||||||
Summary: List::UtilsBy Perl module
|
Summary: higher-order list utility functions
|
||||||
Url: http://search.cpan.org/dist/List-UtilsBy/
|
Url: http://search.cpan.org/dist/List-UtilsBy/
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/List-UtilsBy-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
Requires: perl
|
|
||||||
Requires: perl-macros
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
List::UtilsBy Perl module
|
This module provides a number of list utility functions, all of which take
|
||||||
|
an initial code block to control their behaviour. They are variations on
|
||||||
|
similar core perl or 'List::Util' functions of similar names, but which use
|
||||||
|
the block to control their behaviour. For example, the core Perl function
|
||||||
|
'sort' takes a list of values and returns them, sorted into order by their
|
||||||
|
string value. The 'sort_by' function sorts them according to the string
|
||||||
|
value returned by the extra function, when given each value.
|
||||||
|
|
||||||
|
my @names_sorted = sort @names;
|
||||||
|
|
||||||
|
my @people_sorted = sort_by { $_->name } @people;
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Build.PL installdirs=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_process_packlist
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -55,5 +63,6 @@ List::UtilsBy Perl module
|
|||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user