|
@@ -29,9 +29,9 @@
|
|
|
%define V_plugin_postviews 120
|
|
%define V_plugin_postviews 120
|
|
|
%define V_plugin_print 230b2
|
|
%define V_plugin_print 230b2
|
|
|
%define V_plugin_relativedate 120
|
|
%define V_plugin_relativedate 120
|
|
|
-%define V_plugin_stats 220
|
|
|
|
|
%define V_plugin_ban 120
|
|
%define V_plugin_ban 120
|
|
|
%define V_plugin_ela 0.10
|
|
%define V_plugin_ela 0.10
|
|
|
|
|
+%define V_plugin_stats 1.2
|
|
|
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: wordpress
|
|
Name: wordpress
|
|
@@ -44,7 +44,7 @@ Class: PLUS
|
|
|
Group: CMS
|
|
Group: CMS
|
|
|
License: GPL
|
|
License: GPL
|
|
|
Version: %{V_wordpress}
|
|
Version: %{V_wordpress}
|
|
|
-Release: 20080403
|
|
|
|
|
|
|
+Release: 20080405
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: http://wordpress.org/wordpress-%{V_wordpress}.tar.gz
|
|
Source0: http://wordpress.org/wordpress-%{V_wordpress}.tar.gz
|
|
@@ -58,9 +58,9 @@ Source12: http://lesterchan.net/others/downloads/wp-polls%{V_plugin_polls}.z
|
|
|
Source13: http://lesterchan.net/others/downloads/wp-postviews%{V_plugin_postviews}.zip
|
|
Source13: http://lesterchan.net/others/downloads/wp-postviews%{V_plugin_postviews}.zip
|
|
|
Source14: http://lesterchan.net/others/downloads/wp-print%{V_plugin_print}.zip
|
|
Source14: http://lesterchan.net/others/downloads/wp-print%{V_plugin_print}.zip
|
|
|
Source15: http://lesterchan.net/others/downloads/wp-relativedate%{V_plugin_relativedate}.zip
|
|
Source15: http://lesterchan.net/others/downloads/wp-relativedate%{V_plugin_relativedate}.zip
|
|
|
-Source16: http://lesterchan.net/others/downloads/wp-stats%{V_plugin_stats}.zip
|
|
|
|
|
-Source17: http://lesterchan.net/others/downloads/wp-ban%{V_plugin_ban}.zip
|
|
|
|
|
-Source18: http://www.sonsofskadi.net/wp-content/upload/af-extended-live-archive-%{V_plugin_ela}.zip
|
|
|
|
|
|
|
+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
|
|
|
Patch0: wordpress.patch
|
|
Patch0: wordpress.patch
|
|
|
Patch1: wordpress.patch.ela
|
|
Patch1: wordpress.patch.ela
|
|
|
|
|
|
|
@@ -125,12 +125,6 @@ AutoReqProv: no
|
|
|
regex = WP-RelativeDate\s+(\d+\.\d+)
|
|
regex = WP-RelativeDate\s+(\d+\.\d+)
|
|
|
transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
}
|
|
}
|
|
|
- prog wordpress:plugin-stats = {
|
|
|
|
|
- version = %{V_plugin_stats}
|
|
|
|
|
- url = http://lesterchan.net/wordpress/readme/wp-stats.html
|
|
|
|
|
- regex = WP-Stats\s+(\d+\.\d+)
|
|
|
|
|
- transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
- }
|
|
|
|
|
prog wordpress:plugin-ban = {
|
|
prog wordpress:plugin-ban = {
|
|
|
version = %{V_plugin_ban}
|
|
version = %{V_plugin_ban}
|
|
|
url = http://lesterchan.net/wordpress/readme/wp-ban.html
|
|
url = http://lesterchan.net/wordpress/readme/wp-ban.html
|
|
@@ -142,6 +136,11 @@ AutoReqProv: no
|
|
|
url = http://www.sonsofskadi.net/extended-live-archive/
|
|
url = http://www.sonsofskadi.net/extended-live-archive/
|
|
|
regex = af-extended-live-archive-(__VER__)\.zip
|
|
regex = af-extended-live-archive-(__VER__)\.zip
|
|
|
}
|
|
}
|
|
|
|
|
+ prog wordpress:plugin-stats = {
|
|
|
|
|
+ version = %{V_plugin_stats}
|
|
|
|
|
+ url = http://wordpress.org/extend/plugins/stats/
|
|
|
|
|
+ regex = stats\.(__VER__)\.zip
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
%setup -q -c
|
|
%setup -q -c
|
|
@@ -193,9 +192,9 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/postviews \
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/postviews \
|
|
|
$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/ban \
|
|
$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/af-extended-live-archive \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats
|
|
|
cp -rp dbmanager/* \
|
|
cp -rp dbmanager/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager/
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager/
|
|
|
cp -rp pagenavi/pagenavi* \
|
|
cp -rp pagenavi/pagenavi* \
|
|
@@ -208,12 +207,12 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/print/
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/print/
|
|
|
cp -rp relativedate/* \
|
|
cp -rp relativedate/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/relativedate/
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/relativedate/
|
|
|
- cp -rp 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/* \
|
|
cp -rp af-extended-live-archive/* \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/af-extended-live-archive/
|
|
$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/
|
|
|
|
|
|
|
|
# create additional uploads directory
|
|
# create additional uploads directory
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|