--- rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/06/01 09:14:52 1.2 +++ rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/06/01 13:28:34 1.9 @@ -1,10 +1,10 @@ -# $Id: smeserver-mediawiki.spec,v 1.1 2022/05/31 02:55:04 jpp Exp $ +# $Id: smeserver-mediawiki.spec,v 1.8 2022/06/01 13:27:57 brianr Exp $ # Authority: ber_die # Name: Dietmar Berteld %define name smeserver-mediawiki -%define version 1.6.10 -%define release 10 +%define version 1.37.2 +%define release 2 Summary: Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2 Name: %{name} @@ -12,18 +12,18 @@ Version: %{version} Release: %{release}%{?dist} License: GPL Group: /Web/Applications -Source: %{name}-%{version}.tar.gz -Patch0: smeserver-mediawiki-1.6.10-1.patch -Patch1: smeserver-mediawiki-1.6.10-Update-to-SME10.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. @@ -31,10 +31,16 @@ After installation open your webbrowser http://your_e-smith-server_adress/wiki %changelog -* Tue May 31 2022 Brian Read 1.6.10-10.sme +* 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 -- Add in createlinks +- 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. @@ -45,10 +51,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> @@ -79,8 +87,8 @@ rm -rf $RPM_BUILD_ROOT %setup -%patch0 -p1 -%patch1 -p1 +#%patch0 -p1 +#%patch1 -p1 %build @@ -120,7 +128,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 @@ -178,7 +186,7 @@ case $UPDATE in 0) echo "Creating MySQL User and DataBase..." mysqladmin -u root create $MYSQLDB - #mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql + mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " mysqladmin flush-privileges ;; @@ -195,7 +203,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) @@ -226,13 +234,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