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