/[smecontribs]/rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec
ViewVC logotype

Contents of /rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Tue Nov 5 06:29:52 2013 UTC (10 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-wordpress-1_0-11_el5_sme
Changes since 1.3: +10 -3 lines
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-11.sme
- error in config file  [SME: 7978]
- also added more configuration option
- added /usr/share/php/ in phpbasedir [SME: 7977]

1 # $Id: smeserver-wordpress.spec,v 1.6 2008/11/29 03:11:22 dungog Exp $
2 # Authority: dungog
3 # Name: Stephen Noble
4
5 %define name smeserver-wordpress
6 %define version 1.0
7 %define release 11
8 Summary: smserver rpm to setup mysql database and web link for wordpress weblog
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: GNU GPL version 2
13 URL: http://www.dungog.net/wiki
14 Group: SMEserver/addon
15 Source: %{name}-%{version}.tar.gz
16 Patch0: smeserver-wordpress-1.0-rm80opt.patch
17 Patch1: smeserver-wordpress-1.0-tmp_folder.patch
18 Patch2: smeserver-wordpress-1.0-wpEPEL.patch
19 Patch3: smeserver-wordpress-1.0-patch3.patch
20 BuildArchitectures: noarch
21 BuildRoot: /var/tmp/%{name}-%{version}
22 BuildRequires: e-smith-devtools >= 1.13.1-03
23 Requires: e-smith-release >= 8.0
24 Requires: wordpress
25 AutoReqProv: no
26
27 %description
28 smserver rpm to setup mysql database and web link for wordpress weblog
29
30 %changelog
31 * Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-11.sme
32 - error in config file [SME: 7978]
33 - also added more configuration option
34 - added /usr/share/php/ in phpbasedir [SME: 7977]
35
36 * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme
37 - rewritten for epel version of wordpress
38 - added createlinks and conf-wordpress event
39 - start cleaning spec file
40 - modified php base dir
41
42
43 * Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5
44 - add www:www permission on /opt/wordpress folder to allow automatic update by FTP
45
46 * Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4
47 - add a tmp folder in httpd.conf
48 * Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3
49 - backup html-folder, mysql-base, and config-file during erase and upgrade process
50
51 * Thu May 29 2013 Stephane de Labrusse <stephdl@de-labrusse.fr>
52 - require sme8 due to wordpress 3.5 needs php version > 5.2
53
54 * Sat Nov 29 2008 Stephen Noble <support@dungog.net> 1.0-2
55 - http alias 80opt removed
56
57 * Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1
58 - http alias, auto setup, template wp-config.php
59
60 * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
61 - rpm %post events reordered, to enable clean install
62 - [0.9-5]
63
64 * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
65 - http alias corrected
66 - [0.9-4]
67
68 * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
69 - http PublicAccess setting added
70 - [0.9-3]
71
72 * Thu May 4 2006 Stephen Noble <support@dungog.net>
73 - httpd fragment modified
74 - rpm doesn't change file permissions
75 - [0.9-2]
76
77 * Sun Apr 16 2006 Stephen Noble <support@dungog.net>
78 - initial release
79 - [0.9-1]
80
81 %prep
82 %setup
83 %patch0 -p1
84 %patch1 -p1
85 %patch2 -p1
86 %patch3 -p1
87
88 %build
89 perl createlinks
90 #mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress
91 #echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
92 #
93 #mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress
94 #echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
95 #echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
96 #echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status
97 #echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName
98 #echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
99 #echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
100 #
101 #mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
102 #echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
103 #
104 ##only needed so it is removed afterwards
105 #mkdir -p root/opt/wordpress
106 #touch root/opt/wordpress/wp-config.php
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
111 rm -f %{name}-%{version}-filelist
112 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
113 > %{name}-%{version}-filelist
114 echo "%doc COPYING" >> %{name}-%{version}-filelist
115
116 %clean
117 cd ..
118 rm -rf %{name}-%{version}
119
120 %pre
121 %preun
122
123 %post
124 #/etc/e-smith/events/actions/initialize-default-databases
125 #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
126 #/etc/rc.d/init.d/mysql.init start
127 #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
128 #/sbin/e-smith/expand-template /opt/wordpress/wp-config.php
129 #/usr/bin/sv h /service/httpd-e-smith
130 #
131 #echo ""
132 #echo "see http://wiki.contribs.org/Wordpress"
133 #echo "see config show wordpress"
134 #/sbin/e-smith/config show wordpress
135 #echo " "
136
137 # this one under I am not sure if it is a good thing ..................... !!!!!!
138 #/bin/chown -R www:www /opt/wordpress/
139
140 %postun
141 #uninstall
142 #if [ $1 = 0 ] ; then
143 # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
144 # /usr/bin/sv h /service/httpd-e-smith
145 #fi
146
147 %files -f %{name}-%{version}-filelist
148 %defattr(-,root,root)
149

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed