/[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.6 - (show annotations) (download)
Tue Nov 5 22:16:28 2013 UTC (10 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-wordpress-1_0-13_el5_sme
Changes since 1.5: +6 -1 lines
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-13.sme
- added chown to allow plugin instalaltion and translation

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

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