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