From 411eb3975fe35613bdeccb5ba19bcdaae57351ff Mon Sep 17 00:00:00 2001 From: corsepiu Date: Wed, 17 Aug 2005 14:59:40 +0000 Subject: [PATCH] auto-import perl-Sort-Versions-1.5-2 on branch devel from perl-Sort-Versions-1.5-2.src.rpm --- .cvsignore | 1 + perl-Sort-Versions.spec | 57 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Sort-Versions.spec diff --git a/.cvsignore b/.cvsignore index e69de29..17294c3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Sort-Versions-1.5.tar.gz diff --git a/perl-Sort-Versions.spec b/perl-Sort-Versions.spec new file mode 100644 index 0000000..bf2ae9b --- /dev/null +++ b/perl-Sort-Versions.spec @@ -0,0 +1,57 @@ +Name: perl-Sort-Versions +Version: 1.5 +Release: 2%{?dist} +Summary: Perl module for sorting of revision-like numbers +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Sort-Versions/ +Source0: http://www.cpan.org/modules/by-module/Sort/Sort-Versions-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +A perl 5 module for sorting of revision-like numbers + +Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, +like the 'version numbers' that many shared library systems and revision +control packages use. This is quite useful if you are trying to deal with +shared libraries. It can also be applied to applications that intersperse +variable-width numeric fields within text. Other applications can +undoubtedly be found. + +%prep +%setup -q -n Sort-Versions-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/Sort +%{_mandir}/man3/* + +%changelog +* Wed Aug 10 2005 Ralf Corsepius - 1.5-2 +- FE re-submission. + +* Fri Jul 01 2005 Ralf Corsepius - 1.5-1 +- FE submission. diff --git a/sources b/sources index e69de29..00a7551 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5434f948fdea6406851c77bebbd0ed19 Sort-Versions-1.5.tar.gz