--- rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec 2013/10/27 18:04:33 1.1 +++ rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec 2015/08/21 16:56:46 1.8 @@ -3,21 +3,19 @@ # Name: Stephen Noble %define name smeserver-wordpress -%define version 1.0 -%define release 5 +%define version 1.2 +%define release 7 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://www.dungog.net/wiki +URL: http://wiki.contribs.org/Main_Page Group: SMEserver/addon Source: %{name}-%{version}.tar.gz -Patch0: smeserver-wordpress-1.0-rm80opt.patch -Patch1: smeserver-wordpress-1.0-tmp_folder.patch BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} -BuildRequires: e-smith-devtools >= 1.13.1-03 +BuildRequires: e-smith-devtools Requires: e-smith-release >= 8.0 Requires: wordpress AutoReqProv: no @@ -26,11 +24,54 @@ AutoReqProv: no smserver rpm to setup mysql database and web link for wordpress weblog %changelog +* Fri Aug 21 2015 stephane de Labrusse 1.2-7.sme +- Initial release to contribs8 + +* Mon Feb 09 2015 stephane de Labrusse 1.2-6.sme +- Add usr/share/wordpress/wp-content in the default server backup + +* Thu Dec 25 2014 stephane de Labrusse 1.2-5.sme +- Force the 'Salt property' to enabled + +* Sun Nov 9 2014 stephane de Labrusse 1.2-4.sme +- Corrected a typo in the virtualhost https redirection + +* Wed Oct 15 2014 stephane de Labrusse 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 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} + +* Wed Jun 20 2014 stephane de Labrusse 1.2-1.sme +- initial release to sme9 + +* Tue Nov 5 2013 JP Pialasse 1.0-13.sme +- added chown to allow plugin instalaltion and translation + +* Tue Nov 5 2013 JP Pialasse 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 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 1.0.5 - add www:www permission on /opt/wordpress folder to allow automatic update by FTP * Wed Jun 05 2013 Stephane de Labrusse 1.0.4 - add a tmp folder in httpd.conf + * Mon Jun 03 2013 Stephane de Labrusse 1.0-3 - backup html-folder, mysql-base, and config-file during erase and upgrade process @@ -66,26 +107,10 @@ smserver rpm to setup mysql database and %prep %setup -%patch0 -p1 -%patch1 -p1 + %build -mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress -echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type +perl createlinks -mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress -echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name -echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess -echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status -echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName -echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser -echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang - -mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init -echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress - -#only needed so it is removed afterwards -mkdir -p root/opt/wordpress -touch root/opt/wordpress/wp-config.php %install rm -rf $RPM_BUILD_ROOT @@ -96,6 +121,7 @@ rm -f %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean + cd .. rm -rf %{name}-%{version} @@ -103,26 +129,9 @@ rm -rf %{name}-%{version} %preun %post -/etc/e-smith/events/actions/initialize-default-databases -/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress -/etc/rc.d/init.d/mysql.init start -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf -/sbin/e-smith/expand-template /opt/wordpress/wp-config.php -/usr/bin/sv h /service/httpd-e-smith - -echo "" -echo "see http://wiki.contribs.org/Wordpress" -echo "see config show wordpress" -/sbin/e-smith/config show wordpress -echo " " -/bin/chown -R www:www /opt/wordpress/ %postun -#uninstall -if [ $1 = 0 ] ; then - /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf - /usr/bin/sv h /service/httpd-e-smith -fi + %files -f %{name}-%{version}-filelist %defattr(-,root,root)