[perl-DateTime-Format-Excel] Upgrade to 0.31

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 04e50883d90f6109d92e243cab16c6862b944eb0
Author: Robert Scheck <robert@xxxxxxxxxxxxxxxxx>
Date:   Sun Jan 2 21:47:55 2011 +0100

    Upgrade to 0.31

 .gitignore                                         |    2 +-
 perl-DateTime-Format-Excel-0.2901-versioning.patch |   37 ----------
 perl-DateTime-Format-Excel-0.31-versioning.patch   |   48 ++++++++++++
 perl-DateTime-Format-Excel.spec                    |   76 ++++++++++----------
 sources                                            |    2 +-
 5 files changed, 88 insertions(+), 77 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 10d3343..16c110a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-DateTime-Format-Excel-0.2901.tar.gz
+DateTime-Format-Excel-0.31.tar.gz
diff --git a/perl-DateTime-Format-Excel-0.31-versioning.patch b/perl-DateTime-Format-Excel-0.31-versioning.patch
new file mode 100644
index 0000000..2b0e0c3
--- /dev/null
+++ b/perl-DateTime-Format-Excel-0.31-versioning.patch
@@ -0,0 +1,48 @@
+Patch by Robert Scheck <robert@xxxxxxxxxxxxxxxxx> for perl(DateTime::Format::Excel) >= 0.31, which fixes
+the upstream build requirement for perl(DateTime), as per RPM versioning 0.1705 > 0.50, but according to
+CPAN versioning 0.50 > 0.1705.
+
+--- DateTime-Format-Excel-0.31/Build.PL					2010-06-11 08:28:17.000000000 +0200
++++ DateTime-Format-Excel-0.31/Build.PL.versioning			2011-01-02 21:14:05.000000000 +0100
+@@ -5,7 +5,7 @@
+ Module::Build->new( module_name => 'DateTime::Format::Excel',
+                     author      => 'Achim Bursian <aburs@xxxxxxxx>',
+                     license     => 'perl',
+-                    requires    => { 'DateTime' => 0.1705,
++                    requires    => { 'DateTime' => 0.18,
+                                      'Test::More' => '0.47',
+                                    },
+                     create_makefile_pl => 'traditional',
+--- DateTime-Format-Excel-0.31/Makefile.PL				2010-10-20 11:54:57.000000000 +0200
++++ DateTime-Format-Excel-0.31/Makefile.PL.versioning			2011-01-02 21:14:57.000000000 +0100
+@@ -5,7 +5,7 @@
+           'NAME' => 'DateTime::Format::Excel',
+           'VERSION_FROM' => 'lib/DateTime/Format/Excel.pm',
+           'PREREQ_PM' => {
+-                           'DateTime' => '0.1705',
++                           'DateTime' => '0.18',
+                            'Test::More' => '0.47'
+                          },
+           'INSTALLDIRS' => 'site',
+--- DateTime-Format-Excel-0.31/lib/DateTime/Format/Excel.pm		2010-10-20 11:53:44.000000000 +0200
++++ DateTime-Format-Excel-0.31/lib/DateTime/Format/Excel.pm.versioning	2011-01-02 21:15:39.000000000 +0100
+@@ -10,7 +10,7 @@
+ use strict;
+ use 5.005;
+ use Carp;
+-use DateTime 0.1705;
++use DateTime 0.18;
+ use vars qw( $VERSION );
+ 
+ $VERSION = '0.31';
+--- DateTime-Format-Excel-0.31/META.yml					2010-10-20 11:54:58.000000000 +0200
++++ DateTime-Format-Excel-0.31/META.yml.versioning			2011-01-02 21:15:16.000000000 +0100
+@@ -16,7 +16,7 @@
+     file: lib/DateTime/Format/Excel.pm
+     version: 0.31
+ requires:
+-  DateTime: 0.1705
++  DateTime: 0.18
+   Test::More: 0.47
+ resources:
+   license: http://dev.perl.org/licenses/
diff --git a/perl-DateTime-Format-Excel.spec b/perl-DateTime-Format-Excel.spec
index 5cc8e92..24bdbce 100644
--- a/perl-DateTime-Format-Excel.spec
+++ b/perl-DateTime-Format-Excel.spec
@@ -1,66 +1,67 @@
-Name:       perl-DateTime-Format-Excel 
-Version:    0.2901 
-Release:    6%{?dist}
+%global pkgname DateTime-Format-Excel
+
+Summary:	Convert between DateTime and Excel dates
+Name:		perl-DateTime-Format-Excel 
+Epoch:		1
+Version:	0.31
+Release:	1%{?dist}
 # lib/DateTime/Format/Excel.pm -> GPL+ or Artistic
-License:    GPL+ or Artistic 
-Group:      Development/Libraries
-Summary:    Convert between DateTime and Excel dates 
-Source:     http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Excel-%{version}.tar.gz 
-Patch0:     perl-DateTime-Format-Excel-0.2901-versioning.patch
-Url:        http://search.cpan.org/dist/DateTime-Format-Excel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-BuildArch:  noarch
-
-BuildRequires: perl(DateTime) >= 0.18
-BuildRequires: perl(Module::Build::Compat)
-BuildRequires: perl(Test::More) >= 0.47
-BuildRequires: perl(Test::Pod)
+License:	GPL+ or Artistic 
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/%{pkgname}/
+Source:		http://search.cpan.org/CPAN/authors/id/A/AB/ABURS/%{pkgname}-%{version}.tar.gz
+Patch0:		perl-DateTime-Format-Excel-0.31-versioning.patch
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:	perl(ExtUtils::MakeMaker), perl(DateTime) >= 0.18
+BuildRequires:	perl(Test::More) >= 0.47, perl(Test::Pod) >= 0.95
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 Excel uses a different system for its dates than most Unix programs.
-This module allows you to convert between a few of the Excel raw formats
+This module allows to convert between a few of the Excel raw formats
 and DateTime objects, which can then be further converted via any of
-the other DateTime::Format::* modules, or just with DateTime's
-methods.If you happen to be dealing with dates between 1 Jan 1900 and 1
-Mar 1900 please read the notes on EPOCHS. If you're wanting to handle
-actual spreadsheet files, you may find the Spreadsheet::WriteExcel
-manpage and the Spreadsheet::ParseExcel manpage of use.
+the other DateTime::Format::* modules, or with DateTime's methods.
 
 %prep
-%setup -q -n DateTime-Format-Excel-%{version}
-%patch0 -p1 -b .versioning
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
 
-%{_fixperms} %{buildroot}/*
+# Remove any non-unix line breaks
+sed -e 's/\r//g' Changes > Changes.new
+touch -c -r Changes Changes.new
+mv -f Changes.new Changes
 
 %check
-# nuke failing signature test
-rm t/00sig*
 make test
 
 %clean
-rm -rf %{buildroot} 
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc Changes README COPYING AUTHORS Artistic CREDITS
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%doc Artistic Changes COPYING README
+%{perl_vendorlib}/DateTime/
+%{_mandir}/man3/*.3pm*
 
 %changelog
+* Sun Jan 02 2011 Robert Scheck <robert@xxxxxxxxxxxxxxxxx> 1:0.31-1
+- Upgrade to 0.31
+
 * Thu Dec 16 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 0.2901-6
-- 661697 rebuild for fixing problems with vendorach/lib
+- rebuild for fixing problems with vendorach/lib (#661697)
 
 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 0.2901-5
 - Mass rebuild with perl-5.12.0
@@ -81,4 +82,3 @@ rm -rf %{buildroot}
 * Thu Feb 05 2009 Chris Weyl <cweyl@xxxxxxxxxxxxxxx> 0.2901-0
 - initial RPM packaging
 - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
-
diff --git a/sources b/sources
index 21e7b67..c9509c4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d2f1934833c247b50088fd7999efee04  DateTime-Format-Excel-0.2901.tar.gz
+37ba8d11c5a8dc5c5c5208f5d6c77f33  DateTime-Format-Excel-0.31.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux