Name: perl-Sort-Naturally Version: 1.02 Release: 1%{?dist} # see lib/Sort/Naturally.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Sort lexically, but sort numeral parts numerically Source: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Sort-Naturally-%{version}.tar.gz Url: http://search.cpan.org/dist/Sort-Naturally BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test) %description This module exports two functions, 'nsort' and 'ncmp'; they are used in implementing my idea of a "natural sorting" algorithm. Under natural sorting, numeric substrings are compared numerically, and other word-characters are compared lexically. %prep %setup -q -n Sort-Naturally-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc ChangeLog README t/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sun Oct 05 2008 Chris Weyl 1.02-1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1)