OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 16-Feb-2007 22:26:00
Branch: HEAD Handle: 2007021621255900
Modified files:
openpkg-src/wordpress wordpress.spec
Log:
ship with a few reusable plugins (some need manual theme adjustments)
Summary:
Revision Changes Path
1.29 +123 -7 openpkg-src/wordpress/wordpress.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/wordpress/wordpress.spec
============================================================================
$ cvs diff -u -r1.28 -r1.29 wordpress.spec
--- openpkg-src/wordpress/wordpress.spec 16 Feb 2007 20:42:52 -0000
1.28
+++ openpkg-src/wordpress/wordpress.spec 16 Feb 2007 21:25:59 -0000
1.29
@@ -22,6 +22,18 @@
## 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
Name: wordpress
Summary: Weblog Publishing System
@@ -36,11 +48,20 @@
Release: 20070216
# 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
Source2: wordpress-setup.sh
Source3: wordpress-cron.sh
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
# build information
@@ -62,22 +83,86 @@
standards, and usability.
%track
- prog wordpress = {
- version = %{version}
+ prog wordpress:wordpress = {
+ version = %{V_wordpress}
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/wordpress/
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
- %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
# create configuration file
%{l_shtool} install -m 644 \
-e 's;username;wordpress;' \
-e 's;password;wordpress;' \
- wp-config-sample.php wp-config.php
+ wordpress/wp-config-sample.php \
+ wordpress/wp-config.php
%install
# create installation hierarchy
@@ -93,7 +178,38 @@
$RPM_BUILD_ROOT%{l_prefix}/var/wordpress/tmp
# 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
%{l_shtool} mkdir -f -p -m 755 \
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]