rpms/perl-DateManip/devel perl-DateManip-5.44-datez-rhbz248500.patch, NONE, 1.1 perl-DateManip.spec, 1.15, 1.16
Robin Norwood (rnorwood)
fedora-extras-commits at redhat.com
Mon Aug 27 20:25:44 UTC 2007
Author: rnorwood
Update of /cvs/pkgs/rpms/perl-DateManip/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7989
Modified Files:
perl-DateManip.spec
Added Files:
perl-DateManip-5.44-datez-rhbz248500.patch
Log Message:
apply patch to check for timezone, fix license tag, add files to %%doc
perl-DateManip-5.44-datez-rhbz248500.patch:
--- NEW FILE perl-DateManip-5.44-datez-rhbz248500.patch ---
--- DateManip-5.44/Manip.pm Thu Jun 2 11:47:42 2005
+++ DateManip-5.44/Manip.pm Mon Aug 27 15:42:16 2007
@@ -3539,6 +3539,7 @@
$tz=$ENV{'SYS$TIMEZONE_DIFFERENTIAL'}/3600.; # e.g. '-4' for EDT
}
}
+ push(@tz,$tz);
} else {
$tz=`date +%Z 2> /dev/null`;
chomp($tz);
@@ -3547,8 +3548,14 @@
chomp($tz);
$tz=(split(/\s+/,$tz))[4];
}
+ push(@tz,$tz);
+ # for international timezones
+ $tz=`date +%z 2> /dev/null`;
+ chomp($tz);
+ if ($tz) {
+ push(@tz,$tz);
+ }
}
- push(@tz,$tz);
} else {
# We need to satisfy taint checking, but also look in all the
# directories in @DatePath.
@@ -3563,6 +3570,12 @@
$tz=(split(/\s+/,$tz))[4];
}
push(@tz,$tz);
+ # for international timezones
+ $tz=`date +%z 2> /dev/null`;
+ chomp($tz);
+ if ($tz) {
+ push(@tz,$tz);
+ }
}
}
Index: perl-DateManip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-DateManip/devel/perl-DateManip.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- perl-DateManip.spec 20 Mar 2007 18:57:49 -0000 1.15
+++ perl-DateManip.spec 27 Aug 2007 20:25:11 -0000 1.16
@@ -1,13 +1,14 @@
Name: perl-DateManip
Version: 5.44
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A Perl module containing a wide variety of date manipulation routines
Group: Development/Libraries
-License: GPL or Artistic
+License: GPL+ or Artistic
URL: http://search.cpan.org/dist/DateManip/
Source0: http://www.cpan.org/authors/id/S/SB/SBECK/DateManip-%{version}.tar.gz
Patch0: perl-DateManip-5.44-rhbz214709.patch
+Patch1: perl-DateManip-5.44-datez-rhbz248500.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -25,6 +26,7 @@
%prep
%setup -q -n DateManip-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -46,12 +48,17 @@
%files
%defattr(-,root,root,-)
-%doc README
+%doc README TODO HISTORY
%{perl_vendorlib}/Date/
%{_mandir}/man3/*.3*
%changelog
+* Mon Aug 27 2007 Robin Norwood <rnorwood at redhat.com> - 5.44-4
+- Apply patch to use date +%%z as possible source for timezone data
+- Fix license tag
+- Add TODO and HISTORY to %%doc list
+
* Tue Mar 20 2007 Robin Norwood <rnorwood at redhat.com> - 5.44-3
- Fix minor issues in spec file for package review
- Bump release
More information about the fedora-extras-commits
mailing list