|
|
@@ -33,6 +33,7 @@
|
|
|
%define V_plugin_ela 0.10
|
|
|
%define V_plugin_stats 1.2
|
|
|
%define V_plugin_peterantispam 3.0.3
|
|
|
+%define V_plugin_hashcash 4.1
|
|
|
|
|
|
# package information
|
|
|
Name: wordpress
|
|
|
@@ -63,6 +64,7 @@ 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
|
|
|
+Source20: http://downloads.wordpress.org/plugin/wp-hashcash.%{V_plugin_hashcash}.zip
|
|
|
Patch0: wordpress.patch
|
|
|
Patch1: wordpress.patch.ela
|
|
|
|
|
|
@@ -148,6 +150,11 @@ AutoReqProv: no
|
|
|
url = http://www.theblog.ca/anti-spam
|
|
|
regex = peterantispam(__VER__)\.zip
|
|
|
}
|
|
|
+ prog wordpress:plugin-hashcash = {
|
|
|
+ version = %{V_plugin_hashcash}
|
|
|
+ url = http://wordpress-plugins.feifei.us/hashcash/
|
|
|
+ regex = wp-hashcash\.(__VER__)\.zip
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -161,6 +168,7 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE17}
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE18}
|
|
|
%{l_prefix}/bin/unzip -q -o -x %{SOURCE19}
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE20}
|
|
|
%patch -p0
|
|
|
%patch -p0 -d af-extended-live-archive -P 1
|
|
|
rm -f af-extended-live-archive/*.orig
|
|
|
@@ -203,7 +211,8 @@ AutoReqProv: no
|
|
|
$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/custom-anti-spam
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/custom-anti-spam \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/hashcash
|
|
|
cp -rp dbmanager/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager/
|
|
|
cp -rp pagenavi/pagenavi* \
|
|
|
@@ -224,6 +233,8 @@ AutoReqProv: no
|
|
|
$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/
|
|
|
+ cp -rp wp-hashcash/* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/hashcash/
|
|
|
|
|
|
# create additional uploads directory
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|