update to 1.20; recode documentation as UTF-8; fix bogus exec permissions

to placate rpmlint
This commit is contained in:
Paul Howarth 2009-12-23 12:18:15 +00:00
parent f82ab09716
commit 80ac935781
3 changed files with 19 additions and 8 deletions

View File

@ -1 +1 @@
TimeDate-1.16.tar.gz TimeDate-1.20.tar.gz

View File

@ -1,18 +1,18 @@
Name: perl-TimeDate Name: perl-TimeDate
Version: 1.16 Version: 1.20
Epoch: 1 Epoch: 1
Release: 12%{?dist} Release: 1%{?dist}
Summary: A Perl module for time and date manipulation Summary: A Perl module for time and date manipulation
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/TimeDate/ 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) 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 %description
This module includes a number of smaller modules suited for This module includes a number of smaller modules suited for
@ -25,6 +25,13 @@ textual representations of points in time.
%prep %prep
%setup -q -n TimeDate-%{version} %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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
@ -33,7 +40,7 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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 -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/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
@ -42,7 +49,6 @@ make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{perl_vendorlib}/Date/ %{perl_vendorlib}/Date/
@ -51,6 +57,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Wed Dec 23 2009 Paul Howarth <paul@city-fan.org> - 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 <skasal@redhat.com> - 1:1.16-12 * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1:1.16-12
- rebuild against perl 5.10.1 - rebuild against perl 5.10.1

View File

@ -1 +1 @@
b3cc35a7cabd106ac8829d2f2ff4bd9d TimeDate-1.16.tar.gz 7da7452bce4c684e4238e6d09b390200 TimeDate-1.20.tar.gz