|
|
@@ -23,21 +23,22 @@
|
|
|
##
|
|
|
|
|
|
# versions of individual parts
|
|
|
-%define V_perl 5.8.8
|
|
|
-%define V_time_date 1.16
|
|
|
-%define V_time_hires 1.9708
|
|
|
-%define V_time_local 1.18
|
|
|
-%define V_date_manip 5.46
|
|
|
-%define V_date_calc 5.4
|
|
|
-%define V_class_date 1.1.9
|
|
|
-%define V_benchmark_timer 0.7100
|
|
|
-%define V_time_modules 2006.0814
|
|
|
-%define V_time_tai64 2.11
|
|
|
-%define V_datetime_locale 0.35
|
|
|
-%define V_datetime 0.41
|
|
|
-%define V_datetime_timezone 0.69
|
|
|
-%define V_time_piece 1.11
|
|
|
-%define V_time_duration 1.06
|
|
|
+%define V_perl 5.8.8
|
|
|
+%define V_time_date 1.16
|
|
|
+%define V_time_hires 1.9708
|
|
|
+%define V_time_local 1.18
|
|
|
+%define V_date_manip 5.46
|
|
|
+%define V_date_calc 5.4
|
|
|
+%define V_class_date 1.1.9
|
|
|
+%define V_benchmark_timer 0.7100
|
|
|
+%define V_time_modules 2006.0814
|
|
|
+%define V_time_tai64 2.11
|
|
|
+%define V_datetime_locale 0.35
|
|
|
+%define V_datetime 0.41
|
|
|
+%define V_datetime_timezone 0.69
|
|
|
+%define V_datetime_businesshours 1.0
|
|
|
+%define V_time_piece 1.11
|
|
|
+%define V_time_duration 1.06
|
|
|
|
|
|
# package information
|
|
|
Name: perl-time
|
|
|
@@ -50,7 +51,7 @@ Class: BASE
|
|
|
Group: Perl
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20071102
|
|
|
+Release: 20071105
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.cpan.org/modules/by-module/Time/TimeDate-%{V_time_date}.tar.gz
|
|
|
@@ -67,6 +68,7 @@ Source10: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_dateti
|
|
|
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
|
|
|
+Source14: http://www.cpan.org/modules/by-module/DateTime/DateTime-BusinessHours-%{V_datetime_businesshours}.tar.gz
|
|
|
Patch0: perl-time.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -93,6 +95,7 @@ AutoReqProv: no
|
|
|
- DateTime (%{V_datetime})
|
|
|
- DateTime::Locale (%{V_datetime_locale})
|
|
|
- DateTime::TimeZone (%{V_datetime_timezone})
|
|
|
+ - DateTime::BusinessHours (%{V_datetime_businesshours})
|
|
|
- Time::Piece (%{V_time_piece})
|
|
|
- Time::Duration (%{V_time_duration})
|
|
|
|
|
|
@@ -157,6 +160,11 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/modules/by-module/DateTime/
|
|
|
regex = DateTime-TimeZone-(\d+\.\d\d)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-time:DateTime-BusinessHours = {
|
|
|
+ version = %{V_datetime_businesshours}
|
|
|
+ url = http://www.cpan.org/modules/by-module/DateTime/
|
|
|
+ regex = DateTime-BusinessHours-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
prog perl-time:Time-Piece = {
|
|
|
version = %{V_time_piece}
|
|
|
url = http://www.cpan.org/modules/by-module/Time/
|
|
|
@@ -183,6 +191,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 11
|
|
|
%setup -q -T -D -a 12
|
|
|
%setup -q -T -D -a 13
|
|
|
+ %setup -q -T -D -a 14
|
|
|
%patch -p0
|
|
|
|
|
|
%build
|
|
|
@@ -204,6 +213,7 @@ AutoReqProv: no
|
|
|
%{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
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} 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`
|