Browse Source

upgrading package: rt 3.2.2 -> 3.4.0

Ralf S. Engelschall 21 years ago
parent
commit
9756d32950
1 changed files with 38 additions and 21 deletions
  1. 38 21
      rt/rt.spec

+ 38 - 21
rt/rt.spec

@@ -26,7 +26,7 @@
 #   FIXME: rse: Error: MM: mm:core: failed to open semaphore file (Permission denied): OS: No such file or directory
 
 #   package versions
-%define       V_rt                         3.2.2
+%define       V_rt                         3.4.0
 %define       V_log_dispatch               2.04
 %define       V_html_mason                 1.28
 %define       V_mldbm                      2.01
@@ -34,6 +34,7 @@
 %define       V_cache_cache                1.03
 %define       V_html_scrubber              0.08
 %define       V_module_version             1.02
+%define       V_cache_simple_timedexpiry   0.23
 
 #   package information
 Name:         rt
@@ -46,7 +47,7 @@ Class:        EVAL
 Group:        Database
 License:      GPL
 Version:      %{V_rt}
-Release:      20041215
+Release:      20050210
 
 #   package options
 %option       with_color_primary   336699
@@ -74,14 +75,15 @@ Source4:      http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/HTML-Format-
 Source5:      http://www.cpan.org/modules/by-authors/id/D/DC/DCLINTON/Cache-Cache-%{V_cache_cache}.tar.gz
 Source6:      http://www.cpan.org/modules/by-authors/id/P/PO/PODMASTER/HTML-Scrubber-%{V_html_scrubber}.tar.gz
 Source7:      http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/Module-Versions-Report-%{V_module_version}.tar.gz
-Source8:      rc.rt
-Source9:      rtsetup
-Source10:     rtcleanup
-Source11:     rtupgrade
-Source12:     rtapachectl
-Source13:     rtapache.conf
-Source14:     config.layout
-Source15:     rt-mailgate.sh
+Source8:      http://www.cpan.org/modules/by-module/Cache/Cache-Simple-TimedExpiry-%{V_cache_simple_timedexpiry}.tar.gz
+Source9:      rc.rt
+Source10:     rtsetup
+Source11:     rtcleanup
+Source12:     rtupgrade
+Source13:     rtapachectl
+Source14:     rtapache.conf
+Source15:     config.layout
+Source16:     rt-mailgate.sh
 Patch0:       rt.patch
 
 #   build information
@@ -89,14 +91,14 @@ Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 5.8.3-20040126
 BuildPreReq:  perl-sys, perl-util, perl-ds, perl-text, perl-apache
-BuildPreReq:  perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale
+BuildPreReq:  perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
 BuildPreReq:  apache, apache::with_mod_perl = yes
 PreReq:       OpenPKG, openpkg >= 20040130, perl
-PreReq:       perl-sys, perl-util, perl-ds, perl-text, perl-apache
-PreReq:       perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale
+PreReq:       perl-sys, perl-util, perl-ds, perl-text, perl-apache, perl-dbi
+PreReq:       perl-dbi, perl-dbix, perl-mail, perl-www, perl-locale, perl-devel, perl-cache
 PreReq:       apache, apache::with_mod_perl = yes
 %if "%{with_db_mysql}" == "yes"
-PreReq:       mysql, perl-dbi::with_dbd_mysql = yes
+PreReq:       mysql, mysql::with_innodb = yes, perl-dbi::with_dbd_mysql = yes
 %endif
 %if "%{with_db_pgsql}" == "yes"
 PreReq:       postgresql, perl-dbi::with_dbd_pgsql = yes
@@ -159,6 +161,11 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-authors/id/S/SB/SBURKE/
         regex     = Module-Versions-Report-(__VER__)\.tar\.gz
     }
+    prog rt:cache-simple-timedexpiry = {
+        version   = %{V_cache_simple_timedexpiry}
+        url       = http://www.cpan.org/modules/by-module/Cache/
+        regex     = Cache-Simple-TimedExpiry-(__VER__)\.tar\.gz
+    }
 
 %prep
     #   unpack distribution tarballs
@@ -170,6 +177,7 @@ AutoReqProv:  no
     %setup -q -T -D -a 5
     %setup -q -T -D -a 6
     %setup -q -T -D -a 7
+    %setup -q -T -D -a 8
 
     #   patch RT distribution
     cd rt-%{V_rt}
@@ -232,13 +240,22 @@ AutoReqProv:  no
 
     #   install remaining prerequisite Perl modules which
     #   are not part of the OpenPKG perl-xxx packages.
-    %{l_prefix}/bin/perl-openpkg -d Log-Dispatch-%{V_log_dispatch}             -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d Cache-Cache-%{V_cache_cache}               -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d HTML-Mason-%{V_html_mason}                 -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d MLDBM-%{V_mldbm}                           -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d HTML-Format-%{V_html_format}               -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d HTML-Scrubber-%{V_html_scrubber}           -l %{l_prefix}/libexec/rt configure build install
-    %{l_prefix}/bin/perl-openpkg -d Module-Versions-Report-%{V_module_version} -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d Log-Dispatch-%{V_log_dispatch} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d Cache-Cache-%{V_cache_cache} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d HTML-Mason-%{V_html_mason} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d MLDBM-%{V_mldbm} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d HTML-Format-%{V_html_format} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d HTML-Scrubber-%{V_html_scrubber} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d Module-Versions-Report-%{V_module_version} \
+        -l %{l_prefix}/libexec/rt configure build install
+    %{l_prefix}/bin/perl-openpkg -d Cache-Simple-TimedExpiry-%{V_cache_simple_timedexpiry} \
+        -l %{l_prefix}/libexec/rt configure build install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
 
     #   create installation file hierarchy