|
|
@@ -32,6 +32,7 @@
|
|
|
%define V_plugin_ban 120
|
|
|
%define V_plugin_ela 0.10
|
|
|
%define V_plugin_stats 1.2
|
|
|
+%define V_plugin_peterantispam 3.0.3
|
|
|
|
|
|
# package information
|
|
|
Name: wordpress
|
|
|
@@ -61,6 +62,7 @@ Source15: http://lesterchan.net/others/downloads/wp-relativedate%{V_plugin_r
|
|
|
Source16: http://lesterchan.net/others/downloads/wp-ban%{V_plugin_ban}.zip
|
|
|
Source17: http://www.sonsofskadi.net/wp-content/upload/af-extended-live-archive-%{V_plugin_ela}.zip
|
|
|
Source18: http://downloads.wordpress.org/plugin/stats.%{V_plugin_stats}.zip
|
|
|
+Source19: http://www.theblog.ca/wp-content/uploads/2008/04/peterantispam%{V_plugin_peterantispam}.zip
|
|
|
Patch0: wordpress.patch
|
|
|
Patch1: wordpress.patch.ela
|
|
|
|
|
|
@@ -141,6 +143,11 @@ AutoReqProv: no
|
|
|
url = http://wordpress.org/extend/plugins/stats/
|
|
|
regex = stats\.(__VER__)\.zip
|
|
|
}
|
|
|
+ prog wordpress:plugin-peterantispam = {
|
|
|
+ version = %{V_plugin_peterantispam}
|
|
|
+ url = http://www.theblog.ca/anti-spam
|
|
|
+ regex = peterantispam(__VER__)\.zip
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -153,6 +160,7 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE16}
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE17}
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE18}
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE19}
|
|
|
%patch -p0
|
|
|
%patch -p0 -d af-extended-live-archive -P 1
|
|
|
rm -f af-extended-live-archive/*.orig
|
|
|
@@ -194,7 +202,8 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/relativedate \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/af-extended-live-archive \
|
|
|
- $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/custom-anti-spam
|
|
|
cp -rp dbmanager/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager/
|
|
|
cp -rp pagenavi/pagenavi* \
|
|
|
@@ -213,6 +222,8 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/af-extended-live-archive/
|
|
|
cp -rp stats/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats/
|
|
|
+ cp -rp custom-anti-spam/* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/custom-anti-spam/
|
|
|
|
|
|
# create additional uploads directory
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|