From 22e548d942ccb4c67f44549302f1493b188669ef Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Tue, 28 Jun 2016 09:21:47 +0100
Subject: Update to 0.403

- New upstream release 0.403
  - Use DateTime->set_locale instead of ->set to set the locale; using ->set
    may actually change the local time unintentionally (GH#2)
- Run the author and release tests too
- Make %files list more explicit
- Update build dependencies and drop redundant requires filter
---
 .gitignore                     |  4 +++-
 perl-DateTime-Format-Mail.spec | 43 +++++++++++++++++++++++++-----------------
 sources                        |  2 +-
 3 files changed, 30 insertions(+), 19 deletions(-)

diff --git a/.gitignore b/.gitignore
index 94de2cd..6da7d83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
-DateTime-Format-Mail-0.3001.tar.gz
+/DateTime-Format-Mail-0.30.tar.gz
+/DateTime-Format-Mail-0.3001.tar.gz
 /DateTime-Format-Mail-0.401.tar.gz
 /DateTime-Format-Mail-0.402.tar.gz
+/DateTime-Format-Mail-0.403.tar.gz
diff --git a/perl-DateTime-Format-Mail.spec b/perl-DateTime-Format-Mail.spec
index 73b73df..280eeb3 100644
--- a/perl-DateTime-Format-Mail.spec
+++ b/perl-DateTime-Format-Mail.spec
@@ -1,35 +1,36 @@
-%global cpan_version 0.402
-
 Name:           perl-DateTime-Format-Mail
 Epoch:          1
-Version:        %{cpan_version}.0
-Release:        3%{?dist}
+Version:        0.403
+Release:        1%{?dist}
 Summary:        Convert between DateTime and RFC2822/822 formats
-Group:          Development/Libraries
 License:        GPL+ or Artistic        
 URL:            http://search.cpan.org/dist/DateTime-Format-Mail            
-Source0:        
http://search.cpan.org/CPAN/authors/id/B/BO/BOOK/DateTime-Format-Mail-%{cpan_version}.tar.gz
        
+Source0:        
http://search.cpan.org/CPAN/authors/id/B/BO/BOOK/DateTime-Format-Mail-%{version}.tar.gz
 BuildArch:      noarch
 # Build
+BuildRequires:  coreutils
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-generators
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
-# Runtime:
+# Runtime
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(DateTime) >= 0.18
+BuildRequires:  perl(DateTime) >= 1.04
 BuildRequires:  perl(Params::Validate)
 BuildRequires:  perl(vars)
 # Tests only
 BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(Test::More) >= 0.88
+# Author tests
+BuildRequires:  perl(Pod::Coverage::TrustPod)
+BuildRequires:  perl(Test::Pod) >= 1.41
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
+# Release tests
+BuildRequires:  perl(Test::CPAN::Meta)
+# Dependencies
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires:       perl(DateTime) >= 0.18
-
-# Remove under-specified dependencies
-%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
 
 %description
 RFCs 2822 and 822 specify date formats to be used by email. This module parses
@@ -43,7 +44,7 @@ Despite the ease of generating and parsing perfectly valid 
RFC822 and RFC2822
 people still get it wrong. This module aims to correct that.
 
 %prep
-%setup -q -n DateTime-Format-Mail-%{cpan_version}
+%setup -q -n DateTime-Format-Mail-%{version}
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@@ -51,18 +52,26 @@ make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-%{_fixperms} %{buildroot}/*
+%{_fixperms} %{buildroot}
 
 %check
-make test
+make test AUTHOR_TESTING=1 RELEASE_TESTING=1
 
 %files
 %license LICENSE
 %doc CREDITS Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%{perl_vendorlib}/DateTime/
+%{_mandir}/man3/DateTime::Format::Mail.3*
 
 %changelog
+* Tue Jun 28 2016 Paul Howarth <p...@city-fan.org> - 1:0.403-1
+- Update to 0.403
+  - Use DateTime->set_locale instead of ->set to set the locale; using ->set
+    may actually change the local time unintentionally (GH#2)
+- Run the author and release tests too
+- Make %%files list more explicit
+- Update build dependencies and drop redundant requires filter
+
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 1:0.402.0-3
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 2632833..de4bab9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0c469323564cd88189c15cc396884214  DateTime-Format-Mail-0.402.tar.gz
+b34a52d96290c42cf53e8db0a8f16ecd  DateTime-Format-Mail-0.403.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-DateTime-Format-Mail.git/commit/?h=perl-DateTime-Format-Mail-0.403-1.fc25&id=22e548d942ccb4c67f44549302f1493b188669ef
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to