update DateTime::TimeZone to 1.31

DateTime::TimeZone no longer has Build.PL; use Makefile.PL
whitespace cleanup
This commit is contained in:
Iain Arnell 2011-03-26 10:24:25 +01:00
parent 11dddeef10
commit 99293d3a17
3 changed files with 19 additions and 9 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ DateTime-TimeZone-1.10.tar.gz
/DateTime-0.66.tar.gz /DateTime-0.66.tar.gz
/DateTime-Locale-0.45.tar.gz /DateTime-Locale-0.45.tar.gz
/DateTime-TimeZone-1.26.tar.gz /DateTime-TimeZone-1.26.tar.gz
/DateTime-TimeZone-1.31.tar.gz

View File

@ -1,11 +1,11 @@
%define DT_version 0.66 %define DT_version 0.66
%define DTLocale_version 0.45 %define DTLocale_version 0.45
%define DTTimeZone_version 1.26 %define DTTimeZone_version 1.31
Name: perl-DateTime Name: perl-DateTime
# must now be 0.xx00 to preserve upgrade path: # must now be 0.xx00 to preserve upgrade path:
Version: %{DT_version}00 Version: %{DT_version}00
Release: 2%{?dist} Release: 3%{?dist}
Epoch: 1 Epoch: 1
Summary: Date and time objects Summary: Date and time objects
License: Artistic 2.0 and (GPL+ or Artistic) License: Artistic 2.0 and (GPL+ or Artistic)
@ -75,8 +75,8 @@ cd DateTime-Locale-%{DTLocale_version}
cd - cd -
cd DateTime-TimeZone-%{DTTimeZone_version} cd DateTime-TimeZone-%{DTTimeZone_version}
%{__perl} Build.PL installdirs=vendor %{__perl} Makefile.PL installdirs=vendor
./Build make %{?_smp_mflags}
cd - cd -
cd DateTime-%{DT_version} cd DateTime-%{DT_version}
@ -91,12 +91,14 @@ cd -
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
for d in DateTime-Locale-%{DTLocale_version} \ for d in DateTime-Locale-%{DTLocale_version} \
DateTime-TimeZone-%{DTTimeZone_version} \
DateTime-%{DT_version}; do DateTime-%{DT_version}; do
cd $d cd $d
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
cd - cd -
done done
cd DateTime-TimeZone-%{DTTimeZone_version}
make pure_install DESTDIR=%{buildroot}
cd -
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} \; find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} \;
@ -123,11 +125,13 @@ IS_MAINTAINER=1
export IS_MAINTAINER export IS_MAINTAINER
for d in DateTime-Locale-%{DTLocale_version} \ for d in DateTime-Locale-%{DTLocale_version} \
DateTime-TimeZone-%{DTTimeZone_version} \
DateTime-%{DT_version}; do DateTime-%{DT_version}; do
cd $d cd $d
./Build test ./Build test
cd - cd -
cd DateTime-TimeZone-%{DTTimeZone_version}
make test
cd -
done done
%clean %clean
@ -145,6 +149,11 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/DateTime*.pm %{perl_vendorarch}/DateTime*.pm
%changelog %changelog
* Sat Mar 26 2011 Iain Arnell <iarnell@gmail.com> 1:0.6600-3
- update DateTime::TimeZone to 1.31
- DateTime::TimeZone no longer has Build.PL; use Makefile.PL
- whitespace cleanup
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.6600-2 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.6600-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1,3 +1,3 @@
9399b5b430da65ac0b9056c0182a805b DateTime-0.66.tar.gz 9399b5b430da65ac0b9056c0182a805b DateTime-0.66.tar.gz
8ba6a4b70f8fa7d987529c2e2c708862 DateTime-Locale-0.45.tar.gz 8ba6a4b70f8fa7d987529c2e2c708862 DateTime-Locale-0.45.tar.gz
4a5b5e90044f4a1736c214386d0bc7f8 DateTime-TimeZone-1.26.tar.gz 9ba3c924de47a721f166421cdf959a34 DateTime-TimeZone-1.31.tar.gz