perl-Sort-Versions-vl.spec 3.6 KB

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