--- rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/05/31 02:55:04 1.1 +++ rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/06/01 13:27:57 1.8 @@ -1,27 +1,30 @@ -# $Id: smeserver-mediawiki.spec,v 1.1 2013/03/03 04:58:08 unnilennium Exp $ +# $Id: smeserver-mediawiki.spec,v 1.7 2022/06/01 13:27:17 brianr Exp $ # Authority: ber_die # Name: Dietmar Berteld %define name smeserver-mediawiki -%define version 1.6.10 -%define release 9 - -Summary: Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.6.10 +%define version 1.37.2 +%define release 2 +======= +>>>>>>> 1.5 +Summary: Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2 Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GPL Group: /Web/Applications -Source: %{name}-%{version}.tar.gz -Patch0: smeserver-mediawiki-1.6.10-1.patch +Source: %{name}-%{version}-1.tar.gz +#Patch0: smeserver-mediawiki-1.6.10-1.patch +#Patch1: smeserver-mediawiki-1.6.10-Update-to-SME10.patch + URL: http://mediawiki.org/ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: noarch -Requires: e-smith-base, e-smith-release >= 7 +Requires: e-smith-base, e-smith-release >= 10 BuildRequires: e-smith-devtools %description -This RPM is an unofficial addon for the SME Server 7.x. +This RPM is an addon for the SME Server v10 The target audience is the Linux/E-smith administrator who wants to add Wikipedia-SW. Mediawiki is a very popular Wiki and is used by the wikipedia-project. @@ -29,6 +32,17 @@ After installation open your webbrowser http://your_e-smith-server_adress/wiki %changelog +* Wed Jun 01 2022 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or .... + Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or .... + +* Tue May 31 2022 Brian Read 1.6.10-10 sme +- Update to SME10 [SME:11987] +- Add php-fpm stuff to httpd.conf +- Update to mw 1.37.2 + * Mon May 12 2008 Dietmar Berteld> 1.6.10-9 - Disabing automatic creation of SME groups. No idea to synchronise them to mediawiki groups. @@ -38,10 +52,12 @@ http://your_e-smith-server_adress/wiki configuration file as well so admins only need to add users to the proper groups in the server-manager -* Thu Feb 26 2008 Dietmar Berteld> +* Tue Feb 26 2008 Dietmar Berteld> + Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or .... - [1.6.10-7] Fixed httpd-settings for local access only -* Thu Oct 23 2007 Dietmar Berteld> +* Tue Oct 23 2007 Dietmar Berteld> + Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or .... - [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user * Fri Oct 19 2007 Dietmar Berteld> @@ -72,7 +88,8 @@ rm -rf $RPM_BUILD_ROOT %setup -%patch0 -p1 +#%patch0 -p1 +#%patch1 -p1 %build @@ -112,7 +129,7 @@ esac APP=MediaWiki URL=wiki WORKDIR=/root -INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources +INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources HTMLDIR=/opt/mediawiki MYSQLDB=mediawiki MYSQLUSER=mediawikiuser @@ -128,12 +145,12 @@ rm -rf lang* #Untar application echo "Decompressing files..." mkdir -p $HTMLDIR -tar xzf $INSTALLDIR/mediawiki-1.6.10.tar.gz -C /opt +tar xzf $INSTALLDIR/mediawiki-1.37.2.tar.gz -C /opt case $UPDATE in - 0) mv -f /opt/mediawiki-1.6.10/* $HTMLDIR ;; - *) cp -ufR /opt/mediawiki-1.6.10/* $HTMLDIR --reply=yes ;; + 0) mv -f /opt/mediawiki-1.37.2/* $HTMLDIR ;; + *) cp -ufR /opt/mediawiki-1.37.2/* $HTMLDIR --reply=yes ;; esac -rm -rf /opt/mediawiki-1.6.10 +rm -rf /opt/mediawiki-1.37.2 cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images #Prepare config settings sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php @@ -187,7 +204,7 @@ echo "Applying modifications to services sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf -/usr/local/bin/svc -h /service/httpd-e-smith +systemctl restart httpd-e-smith.service echo "-------------------------------------------------------------------------------" case $UPDATE in 0) @@ -195,8 +212,8 @@ case $UPDATE in echo "Reminder:" echo "- Website open globally" echo "- go to http://$DOMAIN/$URL" - echo "- Usernames are identical with SME users" - echo "- Passwords are identical with SME passwords" + #echo "- Usernames are identical with SME users" + #echo "- Passwords are identical with SME passwords" echo "- MediaWiki admin = SME admin" ;; *) @@ -206,8 +223,8 @@ case $UPDATE in echo " PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!" echo "- Website open globally" echo "- go to http://$DOMAIN/$URL" - echo "- Usernames are identical with SME users" - echo "- Passwords are identical with SME passwords" + #echo "- Usernames are identical with SME users" + #echo "- Passwords are identical with SME passwords" echo "- MediaWiki admin = SME admin" ;; esac @@ -218,13 +235,13 @@ echo " # config setprop $MYSQLDB Publ echo " " echo "Don't forget to apply modifications with following commands:" echo " # expand-template /etc/httpd/conf/httpd.conf" -echo " # svc -h /service/httpd-e-smith" +echo " # systemctl restart httpd-e-smith.service" echo " " echo "For more details, see http://wiki.contribs.org/Mediawiki" echo "-------------------------------------------------------------------------------" %preun -INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources +INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources if [ $1 = 0 ] ; then mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/ fi @@ -233,7 +250,8 @@ fi if [ $1 = 0 ] ; then echo "Restarting services..." /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf - /usr/local/bin/svc -h /service/httpd-e-smith + #/usr/local/bin/svc -h /service/httpd-e-smith + systemctl restart httpd-e-smith.service echo " " echo "Uninstallation finished!" echo "If you want to completly remove it (installation files and MySQL user+database)"