perl-DateTime-Format-Strptime-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. %define _version 1.56
  2. Name: perl-DateTime-Format-Strptime
  3. Version: 1.5600
  4. Release: 1%{?_dist_release}
  5. Summary: Parse and format strp and strf time patterns
  6. License: Artistic 2.0
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
  9. Source0: http://www.cpan.org/authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{_version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Class::ISA)
  13. BuildRequires: perl(DateTime) >= 1.00
  14. BuildRequires: perl(DateTime::Locale) >= 0.45
  15. BuildRequires: perl(DateTime::TimeZone) >= 0.79
  16. BuildRequires: perl(ExtUtils::MakeMaker)
  17. BuildRequires: perl(Params::Validate) >= 0.64
  18. BuildRequires: perl(Test::More) >= 0.88
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. %description
  21. This module implements most of strptime(3), the POSIX function that is the
  22. reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
  23. pattern and returns a string, strptime takes a string and a pattern and
  24. returns the DateTime object associated.
  25. %prep
  26. %setup -q -n DateTime-Format-Strptime-%{_version}
  27. %build
  28. %{__perl} Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  33. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  34. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  35. %{_fixperms} $RPM_BUILD_ROOT/*
  36. %check
  37. make test
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc Changes LICENSE README.md
  43. %{perl_vendorlib}/*
  44. %{_mandir}/man3/*
  45. %changelog
  46. * Sat Dec 20 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.5600-1
  47. - updated to 1.56
  48. - built with perl 5.16.3
  49. * Sun Jan 6 2013 Munehiro Yamamoto <munepi@vinelinux.org> 1.5000-1
  50. - initial build based on Fedora development package
  51. * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-7
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  53. * Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.5000-6
  54. - Perl 5.16 rebuild
  55. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-5
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  57. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.5000-4
  58. - Perl mass rebuild
  59. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.5000-3
  60. - Perl mass rebuild
  61. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-2
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  63. * Wed Dec 22 2010 Steven Pritchard <steve@kspei.com> 1.5000-1
  64. - Update to 1.5000.
  65. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2000-3
  66. - 661697 rebuild for fixing problems with vendorach/lib
  67. * Tue Jun 15 2010 Petr Sabata <psabata@redhat.com> - 1.2000-1
  68. - Update to the latest upstream release
  69. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1000-2
  70. - Mass rebuild with perl-5.12.0
  71. * Tue Feb 16 2010 Paul Howarth <paul@city-fan.org> 1.1000-1
  72. - Fix FTBFS (#564718) by bumping buildreq version of perl(DateTime) from 0.4304
  73. to 0.44 (RPM considers 0.4304 > 0.44, unlike perl) and bumping version to
  74. 1.1000 for compatibility with DateTime::Locale 0.43 (upstream ticket 19)
  75. - Update buildreq version requirement for perl(DateTime::Locale) to 0.43
  76. - Drop test patch, no longer needed
  77. - Run additional tests for full locale coverage
  78. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> 1.0800-4
  79. - Rebuild against perl 5.10.1
  80. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-3
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  82. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  84. * Fri Aug 29 2008 Steven Pritchard <steve@kspei.com> 1.0800-1
  85. - Update to 1.0800.
  86. - Update versions on build dependencies.
  87. * Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1.0702-3
  88. - Patch t/004_locale_defaults.t to work around change in DateTime::Locale.
  89. * Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0702-2
  90. - Rebuild for new perl
  91. * Thu Jan 03 2008 Steven Pritchard <steve@kspei.com> 1.0702-1
  92. - Update to 1.0702.
  93. - Drop charset patch.
  94. - Update License tag.
  95. - BR Test::More.
  96. * Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.0700-3
  97. - Use fixperms macro instead of our own chmod incantation.
  98. - BR ExtUtils::MakeMaker.
  99. * Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.0700-2
  100. - Fix find option order.
  101. * Mon Jul 03 2006 Steven Pritchard <steve@kspei.com> 1.0700-1
  102. - Specfile autogenerated by cpanspec 1.66.
  103. - Fix License.
  104. - Remove versioned DateTime deps (0.1402 > 0.30 according to rpm).
  105. - Remove versioned explicit dependencies that rpmbuild picks up.
  106. - Substitute literal "©" for E<169> in pod documentation. (The result
  107. should be the same, but apparently the man page conversion is generating
  108. something that rpmlint doesn't like.)