--- rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec 2014/09/02 20:55:07 1.7 +++ rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec 2015/08/21 16:56:46 1.8 @@ -3,25 +3,19 @@ # Name: Stephen Noble %define name smeserver-wordpress -%define version 1.0 -%define release 14 +%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 -Patch2: smeserver-wordpress-1.0-wpEPEL.patch -Patch3: smeserver-wordpress-1.0-patch3.patch -Patch4: smeserver-wordpress-1.0-patch4.patch -Patch5: smeserver-wordpress-1.0_corrected_ownership2www_and_added_salt.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 @@ -30,11 +24,31 @@ AutoReqProv: no smserver rpm to setup mysql database and web link for wordpress weblog %changelog -* Tue Sep 02 2014 stephane de Labrusse 1.0-14.sme +* 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 @@ -57,6 +71,7 @@ smserver rpm to setup mysql database and * 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 @@ -92,32 +107,10 @@ smserver rpm to setup mysql database and %prep %setup -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 %build perl createlinks -#mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress -#echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type -# -#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 @@ -128,6 +121,7 @@ rm -f %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean + cd .. rm -rf %{name}-%{version} @@ -135,28 +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 " " - -# this one under I am not sure if it is a good thing ..................... !!!!!! -#/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)