[perl-DateTime-Format-MySQL] Update to 0.05

Paul Howarth pghmcfc at fedoraproject.org
Tue Oct 28 12:28:27 UTC 2014


commit a787074c82b16342e3ea60d8ec23eaf02487543c
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Oct 28 12:27:40 2014 +0000

    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

 .gitignore                      |    2 +-
 perl-DateTime-Format-MySQL.spec |   99 ++++++++++++++++++---------------------
 sources                         |    2 +-
 3 files changed, 48 insertions(+), 55 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4dce178..589338a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-DateTime-Format-MySQL-0.04.tar.gz
+/DateTime-Format-MySQL-[0-9.]*.tar.gz
diff --git a/perl-DateTime-Format-MySQL.spec b/perl-DateTime-Format-MySQL.spec
index bfb7f18..d57ebaf 100644
--- a/perl-DateTime-Format-MySQL.spec
+++ b/perl-DateTime-Format-MySQL.spec
@@ -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
-Version:        0.04        
-Release:        22%{?dist}
-Summary:        Parse and format MySQL dates and times 
-
+Version:        0.05
+Release:        1%{?dist}
+Summary:        Parse and format MySQL dates and times
 Group:          Development/Libraries
 License:        GPL+ or Artistic
-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        
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch:      noarch 
-BuildRequires:  perl(Module::Build), perl(DateTime)
+URL:            http://search.cpan.org/dist/DateTime-Format-MySQL
+Source0:        http://search.cpan.org/CPAN/authors/id/X/XM/XMIKEW/DateTime-Format-MySQL-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:      noarch
+# Module Build
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build)
+# Module Runtime
+BuildRequires:  perl(DateTime)
 BuildRequires:  perl(DateTime::Format::Builder)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Test Suite
 BuildRequires:  perl(Test::More)
-
-# not picked up explicitly, for whatever reason...
-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) }
-
+# Runtime
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(DateTime::Format::Builder)
 
 %description
 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
 string representing it in the MySQL format.
 
-
 %prep
 %setup -q -n DateTime-Format-MySQL-%{version}
 
-# digital signature checking.  Not essential, but nice
-%{?_with_network_tests: cpansign -v }
-
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
-
+perl Build.PL --installdirs=vendor
+./Build
 
 %install
 rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-
-%{_fixperms} %{buildroot}/*
-
+./Build install --destdir=%{buildroot} --create_packlist=0
+%{_fixperms} %{buildroot}
 
 %check
-make test
-
+./Build test
 
 %clean
 rm -rf %{buildroot}
 
-
 %files
-%defattr(-,root,root,-)
-%doc Changes LICENSE README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
-
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
+%doc Changes README
+%{perl_vendorlib}/DateTime/
+%{_mandir}/man3/DateTime::Format::MySQL.3*
 
 %changelog
+* Tue Oct 28 2014 Paul Howarth <paul at 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 at redhat.com> - 0.04-22
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index b53fc1e..b14a60e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f52377ecdeb19055ae64037fb1ef530e  DateTime-Format-MySQL-0.04.tar.gz
+22c3be681f96796dc7ffc381b14ccb23  DateTime-Format-MySQL-0.05.tar.gz


More information about the scm-commits mailing list