瀏覽代碼

add DateTime::Locale, a missing dependency of the main module DateTime

Ralf S. Engelschall 19 年之前
父節點
當前提交
2eb9983db8
共有 1 個文件被更改,包括 15 次插入5 次删除
  1. 15 5
      perl-time/perl-time.spec

+ 15 - 5
perl-time/perl-time.spec

@@ -33,6 +33,7 @@
 %define       V_benchmark_timer    0.7100
 %define       V_time_modules       2006.0814
 %define       V_time_tai64         2.11
+%define       V_datetime_locale    0.22
 %define       V_datetime           0.34
 %define       V_datetime_timezone  0.49
 
@@ -47,7 +48,7 @@ Class:        BASE
 Group:        Perl
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20061003
+Release:      20061010
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Time/TimeDate-%{V_time_date}.tar.gz
@@ -59,8 +60,9 @@ Source5:      http://hacks.dlux.hu/Class-Date/download/Class-Date-%{V_class_date
 Source6:      http://www.cpan.org/modules/by-module/Benchmark/Benchmark-Timer-%{V_benchmark_timer}.tar.gz
 Source7:      http://www.cpan.org/modules/by-module/Time/Time-modules-%{V_time_modules}.tar.gz
 Source8:      http://www.cpan.org/modules/by-module/Time/Time-TAI64-%{V_time_tai64}.tar.gz
-Source9:      http://www.cpan.org/modules/by-module/DateTime/DateTime-%{V_datetime}.tar.gz
-Source10:     http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{V_datetime_timezone}.tar.gz
+Source9:      http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{V_datetime_locale}.tar.gz
+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
 Patch0:       perl-time.patch
 
 #   build information
@@ -68,8 +70,8 @@ Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
 PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
-BuildPreReq:  perl-ds, perl-stats
-PreReq:       perl-ds, perl-stats
+BuildPreReq:  perl-util, perl-ds, perl-stats
+PreReq:       perl-util, perl-ds, perl-stats
 AutoReq:      no
 AutoReqProv:  no
 
@@ -85,6 +87,7 @@ AutoReqProv:  no
     - Time::Modules (%{V_time_modules})
     - Time::TAI64 (%{V_time_tai64})
     - DateTime (%{V_datetime})
+    - DateTime::Locale (%{V_datetime_locale})
     - DateTime::TimeZone (%{V_datetime_timezone})
 
 %track
@@ -138,6 +141,11 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/DateTime/
         regex     = DateTime-(\d+\.\d\d)\.tar\.gz
     }
+    prog perl-time:DateTime-Locale = {
+        version   = %{V_datetime_locale}
+        url       = http://www.cpan.org/modules/by-module/DateTime/
+        regex     = DateTime-Locale-(\d+\.\d\d)\.tar\.gz
+    }
     prog perl-time:DateTime-TimeZone = {
         version   = %{V_datetime_timezone}
         url       = http://www.cpan.org/modules/by-module/DateTime/
@@ -156,6 +164,7 @@ AutoReqProv:  no
     %setup -q -T -D -a 8
     %setup -q -T -D -a 9
     %setup -q -T -D -a 10
+    %setup -q -T -D -a 11
     %patch -p0
 
 %build
@@ -174,6 +183,7 @@ AutoReqProv:  no
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} 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`