perl-Sort-Naturally-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Name: perl-Sort-Naturally
  2. Version: 1.02
  3. Release: 2%{?_dist_release}
  4. # see lib/Sort/Naturally.pm
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. Summary: Sort lexically, but sort numeral parts numerically
  8. Source: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Sort-Naturally-%{version}.tar.gz
  9. Url: http://search.cpan.org/dist/Sort-Naturally
  10. BuildArch: noarch
  11. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Test)
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: shaolin
  17. %description
  18. This module exports two functions, 'nsort' and 'ncmp'; they are used in
  19. implementing my idea of a "natural sorting" algorithm. Under natural
  20. sorting, numeric substrings are compared numerically, and other
  21. word-characters are compared lexically.
  22. %prep
  23. %setup -q -n Sort-Naturally-%{version}
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf %{buildroot}
  29. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  30. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  31. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  32. %{_fixperms} %{buildroot}/*
  33. %check
  34. make test
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %doc ChangeLog README t/
  39. %{perl_vendorlib}/*
  40. %{_mandir}/man3/*.3*
  41. %changelog
  42. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.02-2
  43. - rebuild
  44. * Mon Feb 27 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.02-1
  45. - initial build for Vine Linux
  46. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-10
  47. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  48. * Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 1.02-9
  49. - Perl mass rebuild in dist-f16-perl (d'oh)
  50. - Remove now obsolete Buildroot and defattr
  51. * Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.02-8
  52. - Perl 5.14 mass rebuild
  53. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-7
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  55. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.02-6
  56. - 661697 rebuild for fixing problems with vendorach/lib
  57. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.02-5
  58. - Mass rebuild with perl-5.12.0
  59. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.02-4
  60. - rebuild against perl 5.10.1
  61. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-3
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  63. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  65. * Sun Oct 05 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1
  66. - initial RPM packaging
  67. - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1)