OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Nov-2007 13:26:06
Branch: HEAD Handle: 2007110212260500
Modified files:
openpkg-src/perl-time perl-time.patch perl-time.spec
Log:
provide the useful Time::Duration
Summary:
Revision Changes Path
1.2 +12 -0 openpkg-src/perl-time/perl-time.patch
1.174 +12 -2 openpkg-src/perl-time/perl-time.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/perl-time/perl-time.patch
============================================================================
$ cvs diff -u -r1.1 -r1.2 perl-time.patch
--- openpkg-src/perl-time/perl-time.patch 3 Jun 2005 15:11:42 -0000
1.1
+++ openpkg-src/perl-time/perl-time.patch 2 Nov 2007 12:26:05 -0000
1.2
@@ -10,3 +10,15 @@
recommends( 'Statistics::PointEstimation' => 0 ),
],
);
+Index: Time-Duration-1.06/Makefile.PL
+--- Time-Duration-1.06/Makefile.PL.orig 2007-11-02 13:22:59 +0100
++++ Time-Duration-1.06/Makefile.PL 2007-11-02 13:23:52 +0100
+@@ -3,8 +3,5 @@
+ name 'Time-Duration';
+ all_from 'Duration.pm';
+
+-build_requires('Test::Pod');
+-build_requires('Test::Pod::Coverage');
+-
+ auto_install;
+ WriteAll;
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/perl-time/perl-time.spec
============================================================================
$ cvs diff -u -r1.173 -r1.174 perl-time.spec
--- openpkg-src/perl-time/perl-time.spec 2 Nov 2007 08:14:42 -0000
1.173
+++ openpkg-src/perl-time/perl-time.spec 2 Nov 2007 12:26:05 -0000
1.174
@@ -37,6 +37,7 @@
%define V_datetime 0.41
%define V_datetime_timezone 0.69
%define V_time_piece 1.11
+%define V_time_duration 1.06
# package information
Name: perl-time
@@ -65,6 +66,7 @@
Source10:
http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_datetime}.tar.gz
Source11:
http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
Source12:
http://www.cpan.org/modules/by-module/Time/Time-Piece-%{V_time_piece}.tar.gz
+Source13:
http://www.cpan.org/modules/by-module/Time/Time-Duration-%{V_time_duration}.tar.gz
Patch0: perl-time.patch
# build information
@@ -72,8 +74,8 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg
>= %{V_perl}-20040126
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
-BuildPreReq: perl-util, perl-ds, perl-stats
-PreReq: perl-util, perl-ds, perl-stats
+BuildPreReq: perl-util, perl-ds, perl-stats, perl-module
+PreReq: perl-util, perl-ds, perl-stats, perl-module
AutoReq: no
AutoReqProv: no
@@ -92,6 +94,7 @@
- DateTime::Locale (%{V_datetime_locale})
- DateTime::TimeZone (%{V_datetime_timezone})
- Time::Piece (%{V_time_piece})
+ - Time::Duration (%{V_time_duration})
%track
prog perl-time:Benchmark-Timer = {
@@ -159,6 +162,11 @@
url = http://www.cpan.org/modules/by-module/Time/
regex = Time-Piece-(__VER__)\.tar\.gz
}
+ prog perl-time:Time-Duration = {
+ version = %{V_time_duration}
+ url = http://www.cpan.org/modules/by-module/Time/
+ regex = Time-Duration-(__VER__)\.tar\.gz
+ }
%prep
%setup -q -c
@@ -174,6 +182,7 @@
%setup -q -T -D -a 10
%setup -q -T -D -a 11
%setup -q -T -D -a 12
+ %setup -q -T -D -a 13
%patch -p0
%build
@@ -194,6 +203,7 @@
%{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
# FIXME: remove the Date::Calc conflict files
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat
perl-openpkg-files`
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]