[perl-Sort-Versions] Upstream update.

corsepiu corsepiu at fedoraproject.org
Tue Jun 24 11:13:35 UTC 2014


commit 6ab6536478f85d1599d2f30cc28042610d67c8f5
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Tue Jun 24 13:13:28 2014 +0200

    Upstream update.
    
    - Modernize spec.

 .gitignore              |    2 +-
 perl-Sort-Versions.spec |   54 +++++++++++++++++++++++-----------------------
 sources                 |    2 +-
 3 files changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 17294c3..dfc185e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Sort-Versions-1.5.tar.gz
+/Sort-Versions-1.60.tar.gz
diff --git a/perl-Sort-Versions.spec b/perl-Sort-Versions.spec
index e68db18..1abf68b 100644
--- a/perl-Sort-Versions.spec
+++ b/perl-Sort-Versions.spec
@@ -1,20 +1,21 @@
-Name: 		perl-Sort-Versions
-Version: 	1.5
-Release: 	24%{?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:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-BuildArch: 	noarch
+Name:           perl-Sort-Versions
+Version:        1.60
+Release:        1%{?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
+
+BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:	perl(Test::More)
-Requires:  	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
-A perl 5 module for sorting of revision-like numbers 
+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
@@ -25,10 +26,10 @@ undoubtedly be found.
 
 %prep
 %setup -q -n Sort-Versions-%{version}
-for f in Changes Versions.pm; do
-	iconv -f iso-8859-1 -t utf-8 <$f >${f}_ &&
-	touch -r $f ${f}_ &&
-	mv ${f}_ $f
+for f in Changes; do
+  iconv -f iso-8859-1 -t utf-8 <$f >${f}_ &&
+  touch -r $f ${f}_ &&
+  mv ${f}_ $f
 done
 
 %build
@@ -36,26 +37,25 @@ done
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -depth \
-	-type f -name .packlist -exec rm -f {} ';' -o \
-	-type d -empty -exec rmdir {} ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
-%doc Changes
+%doc Changes LICENSE
 %{perl_vendorlib}/Sort
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jun 24 2014 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.60-1
+- Upstream update.
+- Modernize spec.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5-24
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 00a7551..18121cb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5434f948fdea6406851c77bebbd0ed19  Sort-Versions-1.5.tar.gz
+f18f809b37324c2b918119f0955239a9  Sort-Versions-1.60.tar.gz


More information about the scm-commits mailing list