|
@@ -22,6 +22,18 @@
|
|
|
## SUCH DAMAGE.
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
##
|
|
|
|
|
|
|
|
|
|
+# package versions
|
|
|
|
|
+%define V_wordpress 2.1
|
|
|
|
|
+%define V_plugin_simpletagging 1-5
|
|
|
|
|
+%define V_plugin_dbmanager 210
|
|
|
|
|
+%define V_plugin_pagenavi 210
|
|
|
|
|
+%define V_plugin_polls 214
|
|
|
|
|
+%define V_plugin_postviews 110
|
|
|
|
|
+%define V_plugin_print 210
|
|
|
|
|
+%define V_plugin_relativedate 110
|
|
|
|
|
+%define V_plugin_stats 210
|
|
|
|
|
+%define V_plugin_ban 110
|
|
|
|
|
+
|
|
|
# package information
|
|
# package information
|
|
|
Name: wordpress
|
|
Name: wordpress
|
|
|
Summary: Weblog Publishing System
|
|
Summary: Weblog Publishing System
|
|
@@ -36,11 +48,20 @@ Version: 2.1
|
|
|
Release: 20070216
|
|
Release: 20070216
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/wordpress-%{version}.tar.gz
|
|
|
|
|
|
|
+Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/wordpress-%{V_wordpress}.tar.gz
|
|
|
Source1: wordpress-apache.conf
|
|
Source1: wordpress-apache.conf
|
|
|
Source2: wordpress-setup.sh
|
|
Source2: wordpress-setup.sh
|
|
|
Source3: wordpress-cron.sh
|
|
Source3: wordpress-cron.sh
|
|
|
Source4: rc.wordpress
|
|
Source4: rc.wordpress
|
|
|
|
|
+Source10: http://sw-guide.de/_mw-uploads/simple-tagging_%{V_plugin_simpletagging}.zip
|
|
|
|
|
+Source11: http://www.lesterchan.net/others/downloads/wp-dbmanager%{V_plugin_dbmanager}.zip
|
|
|
|
|
+Source12: http://www.lesterchan.net/others/downloads/wp-pagenavi%{V_plugin_pagenavi}.zip
|
|
|
|
|
+Source13: http://www.lesterchan.net/others/downloads/wp-polls%{V_plugin_polls}.zip
|
|
|
|
|
+Source14: http://www.lesterchan.net/others/downloads/wp-postviews%{V_plugin_postviews}.zip
|
|
|
|
|
+Source15: http://www.lesterchan.net/others/downloads/wp-print%{V_plugin_print}.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
|
|
|
|
|
+Source18: http://www.lesterchan.net/others/downloads/wp-ban%{V_plugin_ban}.zip
|
|
|
Patch0: wordpress.patch
|
|
Patch0: wordpress.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
@@ -62,22 +83,86 @@ AutoReqProv: no
|
|
|
standards, and usability.
|
|
standards, and usability.
|
|
|
|
|
|
|
|
%track
|
|
%track
|
|
|
- prog wordpress = {
|
|
|
|
|
- version = %{version}
|
|
|
|
|
|
|
+ prog wordpress:wordpress = {
|
|
|
|
|
+ version = %{V_wordpress}
|
|
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/
|
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/
|
|
|
regex = wordpress-(__VER__)\.tar\.gz
|
|
regex = wordpress-(__VER__)\.tar\.gz
|
|
|
}
|
|
}
|
|
|
|
|
+ prog wordpress:plugin-simpletagging = {
|
|
|
|
|
+ version = %{V_plugin_simpletagging}
|
|
|
|
|
+ url = http://sw-guide.de/wordpress/wordpress-plugins/simple-tagging-plugin/
|
|
|
|
|
+ regex = Download\s+Latest\s+Version\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1-$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-dbmanager = {
|
|
|
|
|
+ version = %{V_plugin_dbmanager}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-dbmanager.html
|
|
|
|
|
+ regex = WP-DBManager\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-pagenavi = {
|
|
|
|
|
+ version = %{V_plugin_pagenavi}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html
|
|
|
|
|
+ regex = WP-PageNavi\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-polls = {
|
|
|
|
|
+ version = %{V_plugin_polls}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-polls.html
|
|
|
|
|
+ regex = WP-Polls\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-postviews = {
|
|
|
|
|
+ version = %{V_plugin_postviews}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-postviews.html
|
|
|
|
|
+ regex = WP-PostViews\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-print = {
|
|
|
|
|
+ version = %{V_plugin_print}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-print.html
|
|
|
|
|
+ regex = WP-Print\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-relativedate = {
|
|
|
|
|
+ version = %{V_plugin_relativedate}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-relativedate.html
|
|
|
|
|
+ regex = WP-RelativeDate\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-stats = {
|
|
|
|
|
+ version = %{V_plugin_stats}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-stats.html
|
|
|
|
|
+ regex = WP-Stats\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
+ prog wordpress:plugin-ban = {
|
|
|
|
|
+ version = %{V_plugin_ban}
|
|
|
|
|
+ url = http://www.lesterchan.net/wordpress/readme/wp-ban.html
|
|
|
|
|
+ regex = WP-Ban\s+(\d+\.\d+)
|
|
|
|
|
+ transform = "s/^(\d+)\.(\d+)$/$1$2/s, $_"
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
- %setup -q -n wordpress
|
|
|
|
|
- %patch -p0
|
|
|
|
|
|
|
+ %setup -q -c
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE10}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE11}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE12}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE13}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE14}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE15}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE16}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE17}
|
|
|
|
|
+ %{l_prefix}/bin/unzip -q -o -x %{SOURCE18}
|
|
|
|
|
+ %patch -p0 -d wordpress
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
|
# create configuration file
|
|
# create configuration file
|
|
|
%{l_shtool} install -m 644 \
|
|
%{l_shtool} install -m 644 \
|
|
|
-e 's;username;wordpress;' \
|
|
-e 's;username;wordpress;' \
|
|
|
-e 's;password;wordpress;' \
|
|
-e 's;password;wordpress;' \
|
|
|
- wp-config-sample.php wp-config.php
|
|
|
|
|
|
|
+ wordpress/wp-config-sample.php \
|
|
|
|
|
+ wordpress/wp-config.php
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
# create installation hierarchy
|
|
# create installation hierarchy
|
|
@@ -93,7 +178,38 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/wordpress/tmp
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/wordpress/tmp
|
|
|
|
|
|
|
|
# install program files
|
|
# install program files
|
|
|
- cp -rp * $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/
|
|
|
|
|
|
|
+ cp -rp wordpress/* $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/
|
|
|
|
|
+
|
|
|
|
|
+ # install plugins
|
|
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/backup-db \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/simpletagging \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/pagenavi \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/polls \
|
|
|
|
|
+ $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/relativedate \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ban
|
|
|
|
|
+ cp -rp simple-tagging/simpletagging* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/simpletagging/
|
|
|
|
|
+ cp -rp dbmanager/* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/dbmanager/
|
|
|
|
|
+ cp -rp pagenavi/pagenavi* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/pagenavi/
|
|
|
|
|
+ cp -rp polls/* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/polls/
|
|
|
|
|
+ cp -rp postviews/* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/postviews/
|
|
|
|
|
+ cp -rp print/* \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/print/
|
|
|
|
|
+ cp -rp 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/* \
|
|
|
|
|
+ $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 \
|