smeserver-wordpress/smeserver-wordpress.spec

176 lines
5.8 KiB
RPMSpec

# $Id: smeserver-wordpress.spec,v 1.4 2022/08/01 14:55:31 brianr Exp $
# Authority: dungog
# Name: Stephen Noble
%define name smeserver-wordpress
%define version 1.2
%define release 14
Summary: smserver rpm to setup mysql database and web link for wordpress weblog
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GNU GPL version 2
URL: http://wiki.contribs.org/Main_Page
Group: SMEserver/addon
Source: %{name}-%{version}.tar.xz
BuildArchitectures: noarch
BuildRoot: /var/tmp/%{name}-%{version}
BuildRequires: smeserver-devtools
Requires: smeserver-release >= 10.0
Requires: smeserver-apache >= 2.6.0-19
Requires: smeserver-php >= 3.0.0-43
#Requires: wordpress
AutoReqProv: no
%description
smserver rpm to setup mysql database and web link for wordpress weblog
%changelog
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 1.2-14.sme
- Fix e-smith references in smeserver-wordpress [SME: 12732]
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.2-13.sme
- Roll up patches and move to git repo [SME: 12338]
* Sat Sep 07 2024 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Sun Jul 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.2-12.sme
- Add in backup folders to createlinks [SME: 12070]
- update to httpd 2.4 access syntax [SME: 12050]
* Tue Mar 09 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-11.sme
- Update wp-config.php with AUTO UPDATE and DIRECT download [SME: 11428]
- Remove requirement for wordpress rpm, and set script to download and install
* Sun Mar 07 2021 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
Thu May 29 2013 --> Thu May 23 2013 or Wed May 29 2013 or Thu May 30 2013 or ....
Wed Jun 20 2014 --> Wed Jun 18 2014 or Fri Jun 20 2014 or Wed Jun 25 2014 or ....
* Sat Mar 06 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-10.sme
- -Add-in-update-event-and-fix-php-fpw [SME: 11428]
* Wed Nov 18 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-9.sme
- Added new directive to apache (Indexes, FollowSymLinks, AllowOverrideAll)
- The http can be forced, even if it is not a good idea
- new properties in the wordpress key
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-8.sme
- Initial release to contribs9
* Mon Feb 09 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-6.sme
- Add usr/share/wordpress/wp-content in the default server backup
* Thu Dec 25 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-5.sme
- Force the 'Salt property' to enabled
* Sun Nov 9 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-4.sme
- Corrected a typo in the virtualhost https redirection
* Wed Oct 15 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-3.sme
- Thanks to Remi Collet for the help to resolve the 'bug'
- define('DISALLOW_FILE_MODS', false); :)
- Added another default value to {wordpress}{Salt}
* Tue Sep 02 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-2.sme
- corrected the lack of module MIME::Base64 [SME: 8548]
- corrected the new ownership of www on /etc/wordpress [SME: 8546]
- added templates.metadata to root,www 0640 on /etc/wordpress/wp-config.php
- changed db {wordpress}{phrase} to {wordpress}{Salt}
* Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-1.sme
Wed Jun 20 2014 --> Wed Jun 18 2014 or Fri Jun 20 2014 or Wed Jun 25 2014 or ....
- initial release to sme9
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-13.sme
- added chown to allow plugin instalaltion and translation
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme
- error in config file [SME: 7978]
- also added more configuration option
- added /usr/share/php/ in phpbasedir [SME: 7977]
- patch cleanup, createlinks added to spec
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme
- rewritten for epel version of wordpress
- added createlinks and conf-wordpress event
- start cleaning spec file
- modified php base dir
* Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5
- add www:www permission on /opt/wordpress folder to allow automatic update by FTP
* Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4
- add a tmp folder in httpd.conf
* Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3
- backup html-folder, mysql-base, and config-file during erase and upgrade process
* Wed May 29 2013 Stephane de Labrusse <stephdl@de-labrusse.fr>
Thu May 29 2013 --> Thu May 23 2013 or Wed May 29 2013 or Thu May 30 2013 or ....
- require sme8 due to wordpress 3.5 needs php version > 5.2
* Sat Nov 29 2008 Stephen Noble <support@dungog.net> 1.0-2
- http alias 80opt removed
* Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1
- http alias, auto setup, template wp-config.php
* Mon Dec 11 2006 Stephen Noble <support@dungog.net>
- rpm %post events reordered, to enable clean install
- [0.9-5]
* Thu Nov 9 2006 Stephen Noble <support@dungog.net>
- http alias corrected
- [0.9-4]
* Thu Nov 9 2006 Stephen Noble <support@dungog.net>
- http PublicAccess setting added
- [0.9-3]
* Thu May 4 2006 Stephen Noble <support@dungog.net>
- httpd fragment modified
- rpm doesn't change file permissions
- [0.9-2]
* Sun Apr 16 2006 Stephen Noble <support@dungog.net>
- initial release
- [0.9-1]
%prep
%setup
%build
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
mkdir -p $RPM_BUILD_ROOT/etc/wordpress
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
echo "%doc COPYING" >> %{name}-%{version}-filelist
%clean
cd ..
rm -rf %{name}-%{version}
%pre
%preun
%post
%postun
rm -fR /etc/wordpress
rm -fR /usr/share/wordpress
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)