Browse Source

add ELA plugin and fix permissions of backup-cd directory

Ralf S. Engelschall 18 years ago
parent
commit
8756e6a69b
1 changed files with 16 additions and 3 deletions
  1. 16 3
      wordpress/wordpress.spec

+ 16 - 3
wordpress/wordpress.spec

@@ -33,6 +33,7 @@
 %define       V_plugin_relativedate  110
 %define       V_plugin_relativedate  110
 %define       V_plugin_stats         210
 %define       V_plugin_stats         210
 %define       V_plugin_ban           110
 %define       V_plugin_ban           110
+%define       V_plugin_ela           0.10
 
 
 #   package information
 #   package information
 Name:         wordpress
 Name:         wordpress
@@ -45,7 +46,7 @@ Class:        PLUS
 Group:        CMS
 Group:        CMS
 License:      GPL
 License:      GPL
 Version:      2.1
 Version:      2.1
-Release:      20070216
+Release:      20070217
 
 
 #   list of sources
 #   list of sources
 Source0:      ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/wordpress-%{V_wordpress}.tar.gz
 Source0:      ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/wordpress-%{V_wordpress}.tar.gz
@@ -62,6 +63,7 @@ Source15:     http://www.lesterchan.net/others/downloads/wp-print%{V_plugin_prin
 Source16:     http://www.lesterchan.net/others/downloads/wp-relativedate%{V_plugin_relativedate}.zip
 Source16:     http://www.lesterchan.net/others/downloads/wp-relativedate%{V_plugin_relativedate}.zip
 Source17:     http://www.lesterchan.net/others/downloads/wp-stats%{V_plugin_stats}.zip
 Source17:     http://www.lesterchan.net/others/downloads/wp-stats%{V_plugin_stats}.zip
 Source18:     http://www.lesterchan.net/others/downloads/wp-ban%{V_plugin_ban}.zip
 Source18:     http://www.lesterchan.net/others/downloads/wp-ban%{V_plugin_ban}.zip
+Source19:     http://www.sonsofskadi.net/wp-content/upload/af-extended-live-archive-%{V_plugin_ela}.zip
 Patch0:       wordpress.patch
 Patch0:       wordpress.patch
 
 
 #   build information
 #   build information
@@ -142,6 +144,11 @@ AutoReqProv:  no
         regex     = WP-Ban\s+(\d+\.\d+)
         regex     = WP-Ban\s+(\d+\.\d+)
         transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
         transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
     }
     }
+    prog wordpress:plugin-ela = {
+        version   = %{V_plugin_ela}
+        url       = http://www.sonsofskadi.net/extended-live-archive/
+        regex     = af-extended-live-archive-(__VER__)\.zip
+    }
 
 
 %prep
 %prep
     %setup -q -c
     %setup -q -c
@@ -154,6 +161,7 @@ AutoReqProv:  no
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE16}
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE16}
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE17}
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE17}
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE18}
     %{l_prefix}/bin/unzip -q -o -x %{SOURCE18}
+    %{l_prefix}/bin/unzip -q -o -x %{SOURCE19}
     %patch -p0 -d wordpress
     %patch -p0 -d wordpress
 
 
 %build
 %build
@@ -191,7 +199,8 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/print \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/print \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/relativedate \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/relativedate \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats \
-        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ela
     cp -rp simple-tagging/simpletagging* \
     cp -rp simple-tagging/simpletagging* \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/simpletagging/
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/simpletagging/
     cp -rp dbmanager/* \
     cp -rp dbmanager/* \
@@ -210,6 +219,8 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats/
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats/
     cp -rp ban/* \
     cp -rp ban/* \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban/
         $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban/
+    cp -rp af-extended-live-archive/* \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban/
 
 
     #   create additional uploads directory
     #   create additional uploads directory
     %{l_shtool} mkdir -f -p -m 755 \
     %{l_shtool} mkdir -f -p -m 755 \
@@ -242,7 +253,9 @@ AutoReqProv:  no
         '%config %{l_prefix}/etc/wordpress/*' \
         '%config %{l_prefix}/etc/wordpress/*' \
         '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/wordpress' \
         '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/wordpress' \
         '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/wordpress/*' \
         '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/wordpress/*' \
-        '%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/libexec/wordpress/wp-content/uploads'
+        '%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/libexec/wordpress/wp-content/uploads' \
+        '%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/libexec/wordpress/wp-content/backup-db' \
+        '%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/libexec/wordpress/wp-content/plugins/ela/cache'
 
 
 %files -f files
 %files -f files