commit 31ad9d8a1c54f7bdaca636a12e410f4c56244116 Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Fri Jan 14 16:16:46 2011 +0100 Import. .gitignore | 1 + perl-List-UtilsBy.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..8c391a6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/List-UtilsBy-0.06.tar.gz diff --git a/perl-List-UtilsBy.spec b/perl-List-UtilsBy.spec new file mode 100644 index 0000000..a4e465d --- /dev/null +++ b/perl-List-UtilsBy.spec @@ -0,0 +1,57 @@ +Name: perl-List-UtilsBy +Version: 0.06 +Release: 1%{?dist} +Summary: Higher-order list utility functions +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/List-UtilsBy/ +Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/List-UtilsBy-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) + +# for improved testing +BuildRequires: perl(Test::Pod) >= 1.00 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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. + +%prep +%setup -q -n List-UtilsBy-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Dec 22 2010 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.06-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..ee1e762 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e3cc5a00a5c9d94458ee304028e784a5 List-UtilsBy-0.06.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel