Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > a14df3f501f21a620f2d8b3905338142 > files > 2

perl-List-UtilsBy-0.120.0-1.mga9.src.rpm

%define upstream_name    List-UtilsBy
%define upstream_version 0.12

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Higher-order list utility functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/List/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.880.0
BuildArch:  noarch

%description
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
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

%changelog
* Thu May 05 2022 tv <tv> 0.120.0-1.mga9
+ Revision: 1856229
- update to 0.12

* Sun Mar 20 2022 umeabot <umeabot> 0.110.0-4.mga9
+ Revision: 1809578
- Mageia 9 Mass Rebuild

* Wed Feb 12 2020 umeabot <umeabot> 0.110.0-3.mga8
+ Revision: 1504987
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%makeinstall_std

* Thu Sep 20 2018 umeabot <umeabot> 0.110.0-2.mga7
+ Revision: 1284506
- Mageia 7 Mass Rebuild

* Tue Feb 06 2018 tv <tv> 0.110.0-1.mga7
+ Revision: 1199204
- update to 0.11

* Sun Jun 19 2016 pterjan <pterjan> 0.100.0-3.mga6
+ Revision: 1029212
- Rebuild for perl 5.22.2

* Fri Feb 19 2016 umeabot <umeabot> 0.100.0-2.mga6
+ Revision: 968757
- Mageia 6 Mass Rebuild

* Fri Jul 17 2015 shlomif <shlomif> 0.100.0-1.mga6
+ Revision: 854911
- update to 0.10

* Sun Oct 19 2014 umeabot <umeabot> 0.90.0-6.mga5
+ Revision: 789727
- Rebuild to potentially add missing dependencies

* Wed Oct 15 2014 umeabot <umeabot> 0.90.0-5.mga5
+ Revision: 744197
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.90.0-4.mga5
+ Revision: 685241
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.90.0-3.mga4
+ Revision: 512613
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 0.90.0-2.mga3
+ Revision: 369128
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Feb 23 2012 jquelin <jquelin> 0.90.0-1.mga2
+ Revision: 212985
- update to 0.09

* Sat Nov 19 2011 kharec <kharec> 0.80.0-1.mga2
+ Revision: 169322
- update to 0.08

* Wed Jun 15 2011 jquelin <jquelin> 0.70.0-1.mga2
+ Revision: 107033
- update to 0.07

* Tue Jan 18 2011 jquelin <jquelin> 0.60.0-1.mga1
+ Revision: 22580
- cleaning spec file
- imported package perl-List-UtilsBy