You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
7.4 KiB
207 lines
7.4 KiB
%global rpmversion 0.07.01
|
|
%global cpanversion 0.0701
|
|
|
|
Name: perl-DateTime-Format-MySQL
|
|
Version: %{rpmversion}
|
|
Release: 1%{?dist}
|
|
Summary: Parse and format MySQL dates and times
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/DateTime-Format-MySQL
|
|
Source0: https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-Format-MySQL-%{cpanversion}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: coreutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(Module::Build)
|
|
# Runtime
|
|
BuildRequires: perl(DateTime)
|
|
BuildRequires: perl(DateTime::Format::Builder)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(vars)
|
|
# Tests only
|
|
BuildRequires: perl(Test::More)
|
|
# Dependencies
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
%description
|
|
This module understands the formats used by MySQL for its DATE, DATETIME,
|
|
TIME, and TIMESTAMP data types. It can be used to parse these formats in order
|
|
to create DateTime objects, and it can take a DateTime object and produce a
|
|
string representing it in the MySQL format.
|
|
|
|
%prep
|
|
%setup -q -n DateTime-Format-MySQL-%{cpanversion}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes README
|
|
%{perl_vendorlib}/DateTime/
|
|
%{_mandir}/man3/DateTime::Format::MySQL.3*
|
|
|
|
%changelog
|
|
* Tue May 25 2021 Paul Howarth <paul@city-fan.org> - 0.07.01-1
|
|
- Update to 0.0701
|
|
- If microseconds are set on provided DateTime object to time_format, use
|
|
them (CPAN RT#136549)
|
|
|
|
* Sun May 23 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-17
|
|
- Perl 5.34 rebuild
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-14
|
|
- Perl 5.32 rebuild
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Tue Oct 15 2019 Paul Howarth <paul@city-fan.org> - 0.06-12
|
|
- Spec tidy-up
|
|
- Use author-independent source URL
|
|
- Specify all build dependencies
|
|
- Fix permissions verbosely
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-10
|
|
- Perl 5.30 rebuild
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-7
|
|
- Perl 5.28 rebuild
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-4
|
|
- Perl 5.26 rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-2
|
|
- Perl 5.24 rebuild
|
|
|
|
* Tue Feb 16 2016 Petr Šabata <contyk@redhat.com> - 0.06-1
|
|
- 0.06 bump
|
|
- Modernize the spec
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-2
|
|
- Perl 5.22 rebuild
|
|
|
|
* Tue Oct 28 2014 Paul Howarth <paul@city-fan.org> - 0.05-1
|
|
- Update to 0.05
|
|
- Added parsing of MySQL fractional seconds (microseconds)
|
|
- Allowed additional valid MySQL formats (delimiters in DATE and TIME fields
|
|
using punctuation, 'T' separator between DATE and TIME and single-digit
|
|
time or date values)
|
|
- This release by XMIKEW → update source URL
|
|
- Use Module::Build flow rather than emulated ExtUtils::MakeMaker flow
|
|
- Upstream hasn't provided a SIGNATURE, so stop trying to check it
|
|
- Classify buildreqs by usage
|
|
- Use %%license where possible
|
|
- Drop %%defattr, redundant since rpm 4.4
|
|
- Make %%files list more explicit
|
|
- Don't use macros for commands
|
|
|
|
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-22
|
|
- Perl 5.20 rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-21
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-20
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 0.04-19
|
|
- Perl 5.18 rebuild
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.04-16
|
|
- Perl 5.16 rebuild
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.04-14
|
|
- Perl mass rebuild
|
|
|
|
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.04-13
|
|
- Perl mass rebuild
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-11
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-10
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.04-9
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-6
|
|
- rebuild for new perl
|
|
|
|
* Tue Jan 01 2008 Ralf Corsépius <rc040203@freenet.de> 0.04-5
|
|
- Adjust License-tag.
|
|
- Add BR: perl(Test::More) (BZ 419631).
|
|
- Minor spec cosmetics.
|
|
|
|
* Fri Sep 08 2006 Chris Weyl <cweyl@alumni.drew.edu>
|
|
- add missing explicit requires on perl(DateTime::Format::Builder)
|
|
- misc spec tweaks
|
|
|
|
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.04-3
|
|
- bump for mass rebuild
|
|
|
|
* Thu Aug 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.04-2
|
|
- bump for build & release
|
|
|
|
* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
|
|
- Initial spec file for F-E
|