From 80ac9357813842a9ae159075416ce44f22cfa184 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 23 Dec 2009 12:18:15 +0000 Subject: [PATCH] update to 1.20; recode documentation as UTF-8; fix bogus exec permissions to placate rpmlint --- .cvsignore | 2 +- perl-TimeDate.spec | 23 +++++++++++++++++------ sources | 2 +- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.cvsignore b/.cvsignore index 2575d39..06f871e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -TimeDate-1.16.tar.gz +TimeDate-1.20.tar.gz diff --git a/perl-TimeDate.spec b/perl-TimeDate.spec index 058c22e..331e613 100644 --- a/perl-TimeDate.spec +++ b/perl-TimeDate.spec @@ -1,18 +1,18 @@ Name: perl-TimeDate -Version: 1.16 +Version: 1.20 Epoch: 1 -Release: 12%{?dist} +Release: 1%{?dist} Summary: A Perl module for time and date manipulation Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/TimeDate/ -Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module includes a number of smaller modules suited for @@ -25,6 +25,13 @@ textual representations of points in time. %prep %setup -q -n TimeDate-%{version} +# ChangeLog is ISO-8859-1 encoded +iconv -f iso-8859-1 -t utf8 < ChangeLog > ChangeLog.utf8 +mv ChangeLog.utf8 ChangeLog + +# Bogus exec permissions on some language modules +chmod -x lib/Date/Language/{Russian_cp1251,Russian_koi8r,Turkish}.pm + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} @@ -33,7 +40,7 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -42,7 +49,6 @@ make test %clean rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %{perl_vendorlib}/Date/ @@ -51,6 +57,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Dec 23 2009 Paul Howarth - 1:1.20-1 +- update to 1.20 +- recode documentation as UTF-8 +- fix bogus exec permissions to placate rpmlint + * Fri Dec 4 2009 Stepan Kasal - 1:1.16-12 - rebuild against perl 5.10.1 diff --git a/sources b/sources index a92a5bf..fed6eac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b3cc35a7cabd106ac8829d2f2ff4bd9d TimeDate-1.16.tar.gz +7da7452bce4c684e4238e6d09b390200 TimeDate-1.20.tar.gz