1 |
brianr |
1.1 |
# $Id: smeserver-wordpress.spec,v 1.3 2015/11/18 14:26:52 stephdl Exp $ |
2 |
|
|
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
|
|
%define name smeserver-wordpress |
6 |
|
|
%define version 1.2 |
7 |
|
|
%define release 9 |
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://wiki.contribs.org/Main_Page |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
18 |
|
|
BuildRequires: e-smith-devtools |
19 |
|
|
Requires: e-smith-release >= 9.0 |
20 |
|
|
Requires: wordpress |
21 |
|
|
AutoReqProv: no |
22 |
|
|
Patch0: smeserver-wordpress-1.2.NfrHttpdDirective.patch |
23 |
|
|
%description |
24 |
|
|
smserver rpm to setup mysql database and web link for wordpress weblog |
25 |
|
|
|
26 |
|
|
%changelog |
27 |
|
|
* Wed Nov 18 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-9.sme |
28 |
|
|
- Added new directive to apache (Indexes, FollowSymLinks, AllowOverrideAll) |
29 |
|
|
- The http can be forced, even if it is not a good idea |
30 |
|
|
- new properties in the wordpress key |
31 |
|
|
|
32 |
|
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-8.sme |
33 |
|
|
- Initial release to contribs9 |
34 |
|
|
|
35 |
|
|
* Mon Feb 09 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-6.sme |
36 |
|
|
- Add usr/share/wordpress/wp-content in the default server backup |
37 |
|
|
|
38 |
|
|
* Thu Dec 25 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-5.sme |
39 |
|
|
- Force the 'Salt property' to enabled |
40 |
|
|
|
41 |
|
|
* Sun Nov 9 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-4.sme |
42 |
|
|
- Corrected a typo in the virtualhost https redirection |
43 |
|
|
|
44 |
|
|
* Wed Oct 15 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-3.sme |
45 |
|
|
- Thanks to Remi Collet for the help to resolve the 'bug' |
46 |
|
|
- define('DISALLOW_FILE_MODS', false); :) |
47 |
|
|
- Added another default value to {wordpress}{Salt} |
48 |
|
|
|
49 |
|
|
* Tue Sep 02 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-2.sme |
50 |
|
|
- corrected the lack of module MIME::Base64 [SME: 8548] |
51 |
|
|
- corrected the new ownership of www on /etc/wordpress [SME: 8546] |
52 |
|
|
- added templates.metadata to root,www 0640 on /etc/wordpress/wp-config.php |
53 |
|
|
- changed db {wordpress}{phrase} to {wordpress}{Salt} |
54 |
|
|
|
55 |
|
|
* Wed Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-1.sme |
56 |
|
|
- initial release to sme9 |
57 |
|
|
|
58 |
|
|
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-13.sme |
59 |
|
|
- added chown to allow plugin instalaltion and translation |
60 |
|
|
|
61 |
|
|
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme |
62 |
|
|
- error in config file [SME: 7978] |
63 |
|
|
- also added more configuration option |
64 |
|
|
- added /usr/share/php/ in phpbasedir [SME: 7977] |
65 |
|
|
- patch cleanup, createlinks added to spec |
66 |
|
|
|
67 |
|
|
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme |
68 |
|
|
- rewritten for epel version of wordpress |
69 |
|
|
- added createlinks and conf-wordpress event |
70 |
|
|
- start cleaning spec file |
71 |
|
|
- modified php base dir |
72 |
|
|
|
73 |
|
|
|
74 |
|
|
* Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5 |
75 |
|
|
- add www:www permission on /opt/wordpress folder to allow automatic update by FTP |
76 |
|
|
|
77 |
|
|
* Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4 |
78 |
|
|
- add a tmp folder in httpd.conf |
79 |
|
|
|
80 |
|
|
* Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3 |
81 |
|
|
- backup html-folder, mysql-base, and config-file during erase and upgrade process |
82 |
|
|
|
83 |
|
|
* Thu May 29 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
84 |
|
|
- require sme8 due to wordpress 3.5 needs php version > 5.2 |
85 |
|
|
|
86 |
|
|
* Sat Nov 29 2008 Stephen Noble <support@dungog.net> 1.0-2 |
87 |
|
|
- http alias 80opt removed |
88 |
|
|
|
89 |
|
|
* Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1 |
90 |
|
|
- http alias, auto setup, template wp-config.php |
91 |
|
|
|
92 |
|
|
* Mon Dec 11 2006 Stephen Noble <support@dungog.net> |
93 |
|
|
- rpm %post events reordered, to enable clean install |
94 |
|
|
- [0.9-5] |
95 |
|
|
|
96 |
|
|
* Thu Nov 9 2006 Stephen Noble <support@dungog.net> |
97 |
|
|
- http alias corrected |
98 |
|
|
- [0.9-4] |
99 |
|
|
|
100 |
|
|
* Thu Nov 9 2006 Stephen Noble <support@dungog.net> |
101 |
|
|
- http PublicAccess setting added |
102 |
|
|
- [0.9-3] |
103 |
|
|
|
104 |
|
|
* Thu May 4 2006 Stephen Noble <support@dungog.net> |
105 |
|
|
- httpd fragment modified |
106 |
|
|
- rpm doesn't change file permissions |
107 |
|
|
- [0.9-2] |
108 |
|
|
|
109 |
|
|
* Sun Apr 16 2006 Stephen Noble <support@dungog.net> |
110 |
|
|
- initial release |
111 |
|
|
- [0.9-1] |
112 |
|
|
|
113 |
|
|
%prep |
114 |
|
|
%setup |
115 |
|
|
%patch0 -p1 |
116 |
|
|
%build |
117 |
|
|
perl createlinks |
118 |
|
|
|
119 |
|
|
|
120 |
|
|
%install |
121 |
|
|
rm -rf $RPM_BUILD_ROOT |
122 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
123 |
|
|
rm -f %{name}-%{version}-filelist |
124 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
125 |
|
|
> %{name}-%{version}-filelist |
126 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
127 |
|
|
|
128 |
|
|
%clean |
129 |
|
|
|
130 |
|
|
cd .. |
131 |
|
|
rm -rf %{name}-%{version} |
132 |
|
|
|
133 |
|
|
%pre |
134 |
|
|
%preun |
135 |
|
|
|
136 |
|
|
%post |
137 |
|
|
|
138 |
|
|
%postun |
139 |
|
|
|
140 |
|
|
|
141 |
|
|
%files -f %{name}-%{version}-filelist |
142 |
|
|
%defattr(-,root,root) |
143 |
|
|
|