[5859] | 1 | Name: perl-Sort-Versions |
---|
| 2 | Version: 1.5 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Perl module for sorting of revision-like numbers |
---|
| 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | URL: http://search.cpan.org/dist/Sort-Versions/ |
---|
| 8 | Source0: http://www.cpan.org/modules/by-module/Sort/Sort-Versions-%{version}.tar.gz |
---|
| 9 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 10 | |
---|
| 11 | BuildArch: noarch |
---|
| 12 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 13 | BuildRequires: perl(Test::More) |
---|
| 14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | A perl 5 module for sorting of revision-like numbers |
---|
| 18 | |
---|
| 19 | Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, |
---|
| 20 | like the 'version numbers' that many shared library systems and revision |
---|
| 21 | control packages use. This is quite useful if you are trying to deal with |
---|
| 22 | shared libraries. It can also be applied to applications that intersperse |
---|
| 23 | variable-width numeric fields within text. Other applications can |
---|
| 24 | undoubtedly be found. |
---|
| 25 | |
---|
| 26 | %prep |
---|
| 27 | %setup -q -n Sort-Versions-%{version} |
---|
| 28 | for f in Changes Versions.pm; do |
---|
| 29 | iconv -f iso-8859-1 -t utf-8 <$f >${f}_ && |
---|
| 30 | touch -r $f ${f}_ && |
---|
| 31 | mv ${f}_ $f |
---|
| 32 | done |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 36 | make %{?_smp_mflags} |
---|
| 37 | |
---|
| 38 | %install |
---|
| 39 | rm -rf %{buildroot} |
---|
| 40 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 41 | find %{buildroot} -depth \ |
---|
| 42 | -type f -name .packlist -exec rm -f {} ';' -o \ |
---|
| 43 | -type d -empty -exec rmdir {} ';' |
---|
| 44 | chmod -R u+w %{buildroot}/* |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf %{buildroot} |
---|
| 48 | |
---|
| 49 | %check |
---|
| 50 | make test |
---|
| 51 | |
---|
| 52 | %files |
---|
| 53 | %defattr(-,root,root,-) |
---|
| 54 | %doc Changes |
---|
| 55 | %{perl_vendorlib}/Sort |
---|
| 56 | %{_mandir}/man3/* |
---|
| 57 | |
---|
| 58 | %changelog |
---|
| 59 | * Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.5-1 |
---|
| 60 | - initial build for Vine Linux |
---|
| 61 | |
---|
| 62 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-18 |
---|
| 63 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 64 | |
---|
| 65 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.5-17 |
---|
| 66 | - Perl mass rebuild |
---|
| 67 | |
---|
| 68 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-16 |
---|
| 69 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 70 | |
---|
| 71 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5-15 |
---|
| 72 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 73 | |
---|
| 74 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5-14 |
---|
| 75 | - Mass rebuild with perl-5.12.0 |
---|
| 76 | |
---|
| 77 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.5-13 |
---|
| 78 | - rebuild against perl 5.10.1 |
---|
| 79 | |
---|
| 80 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-12 |
---|
| 81 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 82 | |
---|
| 83 | * Thu Mar 19 2009 Stepan Kasal <skasal@redhat.com> - 1.5-11 |
---|
| 84 | - fix timestamps of the recoded text files |
---|
| 85 | |
---|
| 86 | * Mon Mar 16 2009 Stepan Kasal <skasal@redhat.com> - 1.5-10 |
---|
| 87 | - Recode as UTF-8, fix argument order find with -depth (both by Paul Howarth) |
---|
| 88 | - Other minor cleanups |
---|
| 89 | |
---|
| 90 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9 |
---|
| 91 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 92 | |
---|
| 93 | * Fri Feb 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5-8 |
---|
| 94 | - rebuild for new perl |
---|
| 95 | |
---|
| 96 | * Fri Aug 17 2007 Ralf Corsépius <rc040203@freenet.de> - 1.5-7 |
---|
| 97 | - Add BR: perl(Test::More). |
---|
| 98 | |
---|
| 99 | * Fri Aug 17 2007 Ralf Corsépius <rc040203@freenet.de> - 1.5-6 |
---|
| 100 | - Update license tag. |
---|
| 101 | - Reflect perl split. |
---|
| 102 | |
---|
| 103 | * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.5-5 |
---|
| 104 | - Mass rebuild. |
---|
| 105 | |
---|
| 106 | * Tue Feb 28 2006 Ralf Corsépius <rc040203@freenet.de> - 1.5-4 |
---|
| 107 | - Rebuild for perl-5.8.8. |
---|
| 108 | |
---|
| 109 | * Wed Aug 17 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-3 |
---|
| 110 | - Spec cleanup. |
---|
| 111 | |
---|
| 112 | * Wed Aug 10 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-2 |
---|
| 113 | - FE re-submission. |
---|
| 114 | |
---|
| 115 | * Fri Jul 01 2005 Ralf Corsepius <ralf@links2linux.de> - 1.5-1 |
---|
| 116 | - FE submission. |
---|