Update to 0.05

- New upstream release 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
epel9
Paul Howarth 10 years ago
parent e913c1a99a
commit a787074c82

2
.gitignore vendored

@ -1 +1 @@
DateTime-Format-MySQL-0.04.tar.gz /DateTime-Format-MySQL-[0-9.]*.tar.gz

@ -1,38 +1,26 @@
# Note: Some tests for this package are disabled by default, as they
# require network access and would thus fail in the buildsys' mock
# environments. To build locally while enabling tests, either:
#
# rpmbuild ... --define '_with_network_tests 1' ...
# rpmbuild ... --with network_tests ...
# define _with_network_tests 1 in your ~/.rpmmacros
#
# Note that right now, the only way to run tests locally from a cvs sandbox
# "make noarch" type scenario is the third one.
Name: perl-DateTime-Format-MySQL Name: perl-DateTime-Format-MySQL
Version: 0.04 Version: 0.05
Release: 22%{?dist} Release: 1%{?dist}
Summary: Parse and format MySQL dates and times Summary: Parse and format MySQL dates and times
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/DateTime-Format-MySQL URL: http://search.cpan.org/dist/DateTime-Format-MySQL
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-MySQL-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/X/XM/XMIKEW/DateTime-Format-MySQL-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Module::Build), perl(DateTime) # Module Build
BuildRequires: perl
BuildRequires: perl(Module::Build)
# Module Runtime
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Builder) BuildRequires: perl(DateTime::Format::Builder)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Runtime
# not picked up explicitly, for whatever reason... Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(DateTime::Format::Builder) Requires: perl(DateTime::Format::Builder)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# for signature checking
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
%description %description
This module understands the formats used by MySQL for its DATE, DATETIME, This module understands the formats used by MySQL for its DATE, DATETIME,
@ -40,45 +28,50 @@ 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 to create DateTime objects, and it can take a DateTime object and produce a
string representing it in the MySQL format. string representing it in the MySQL format.
%prep %prep
%setup -q -n DateTime-Format-MySQL-%{version} %setup -q -n DateTime-Format-MySQL-%{version}
# digital signature checking. Not essential, but nice
%{?_with_network_tests: cpansign -v }
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Build.PL --installdirs=vendor
make %{?_smp_mflags} ./Build
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
./Build install --destdir=%{buildroot} --create_packlist=0
make pure_install PERL_INSTALL_ROOT=%{buildroot} %{_fixperms} %{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check %check
make test ./Build test
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %if 0%{?_licensedir:1}
%doc Changes LICENSE README %license LICENSE
%{perl_vendorlib}/* %else
%{_mandir}/man3/*.3* %doc LICENSE
%endif
%doc Changes README
%{perl_vendorlib}/DateTime/
%{_mandir}/man3/DateTime::Format::MySQL.3*
%changelog %changelog
* 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 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-22
- Perl 5.20 rebuild - Perl 5.20 rebuild

@ -1 +1 @@
f52377ecdeb19055ae64037fb1ef530e DateTime-Format-MySQL-0.04.tar.gz 22c3be681f96796dc7ffc381b14ccb23 DateTime-Format-MySQL-0.05.tar.gz

Loading…
Cancel
Save