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