/[smecontribs]/rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec
ViewVC logotype

Diff of /rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by brianr, Wed Jun 1 09:29:22 2022 UTC Revision 1.11 by brianr, Wed Jun 8 12:13:07 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mediawiki.spec,v 1.2 2022/06/01 09:14:52 brianr Exp $  # $Id: smeserver-mediawiki.spec,v 1.10 2022/06/03 09:35:35 brianr Exp $
2  # Authority: ber_die  # Authority: ber_die
3  # Name: Dietmar Berteld  # Name: Dietmar Berteld
4    
5  %define name smeserver-mediawiki  %define name smeserver-mediawiki
6  %define version 1.37.2  %define version 1.38.1
7  %define release 1  %define release 1
8    
9  Summary:       Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2  Summary:       Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.38.0
10  Name:          %{name}  Name:          %{name}
11  Version:       %{version}  Version:       %{version}
12  Release:       %{release}%{?dist}  Release:       %{release}%{?dist}
13  License:       GPL  License:       GPL
14  Group:         /Web/Applications  Group:         /Web/Applications
15  Source:        %{name}-%{version}.tar.gz  Source:        %{name}-%{version}.tar.gz
16  #Patch0:        smeserver-mediawiki-1.6.10-1.patch  Patch0:         smeserver-mediawiki-1.38.0-fix-up-sql-create.patch
17    #Patch0:        smeserver-mediawiki-1.37.2-Fix-up-password-generation-and-localsettings.patch
18  #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch  #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch
19    
20  URL:           http://mediawiki.org/  URL:           http://mediawiki.org/
# Line 31  After installation open your webbrowser Line 32  After installation open your webbrowser
32  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
33    
34  %changelog  %changelog
35    * Wed Jun 08 2022 Brian Read <brianr@bjsystems.co.uk> 1.38.0-2.sme
36    - Update version to Mediawiki-1.38.1 [sme: 11987]
37    
38    * Fri Jun 03 2022 Brian Read <brianr@bjsystems.co.uk> 1.38.0-2.sme
39    - update sql create [SME: 11987]
40    
41    * Fri Jun 03 2022 Brian Read <brianr@bjsystems.co.uk> 1.38.0-1.sme
42    - Rollup tar file to include mediawiki 1.38.0  [SME: 11987]
43    
44    * Wed Jun 01 2022 Brian Read <brianr@bjsystems.co.uk> 1.37.2-3.sme
45    - Fix-up-password-generation-and-localsettings  [SME: 11987]
46    
47    * Wed Jun 01 2022 BogusDateBot
48    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
49      by assuming the date is correct and changing the weekday.
50      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
51      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
52    
53  * Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme  * Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme
54  - Update to SME10 [SME:11987]  - Update to SME10 [SME:11987]
55  - Add php-fpm stuff to httpd.conf  - Add php-fpm stuff to httpd.conf
56  - Add in createlinks  - Update to mw 1.37.2
57    
58  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9
59  - Disabing automatic creation of SME groups. No idea to synchronise them to mediawiki groups.  - Disabing automatic creation of SME groups. No idea to synchronise them to mediawiki groups.
# Line 45  http://your_e-smith-server_adress/wiki Line 64  http://your_e-smith-server_adress/wiki
64    configuration file as well so admins only need to add users to the proper    configuration file as well so admins only need to add users to the proper
65    groups in the server-manager    groups in the server-manager
66    
67  * Thu Feb 26 2008 Dietmar Berteld>  * Tue Feb 26 2008 Dietmar Berteld>
68      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
69  - [1.6.10-7] Fixed httpd-settings for local access only  - [1.6.10-7] Fixed httpd-settings for local access only
70    
71  * Thu Oct 23 2007 Dietmar Berteld>  * Tue Oct 23 2007 Dietmar Berteld>
72      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
73  - [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user  - [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user
74    
75  * Fri Oct 19 2007 Dietmar Berteld>  * Fri Oct 19 2007 Dietmar Berteld>
# Line 79  rm -rf $RPM_BUILD_ROOT Line 100  rm -rf $RPM_BUILD_ROOT
100    
101  %setup  %setup
102    
103  #%patch0 -p1  %patch0 -p1
104    
105  #%patch1 -p1  #%patch1 -p1
106    
107  %build  %build
# Line 120  esac Line 142  esac
142  APP=MediaWiki  APP=MediaWiki
143  URL=wiki  URL=wiki
144  WORKDIR=/root  WORKDIR=/root
145  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources  MEDIAWIKIVERSION='1.38.0'
146    INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources
147  HTMLDIR=/opt/mediawiki  HTMLDIR=/opt/mediawiki
148  MYSQLDB=mediawiki  MYSQLDB=mediawiki
149  MYSQLUSER=mediawikiuser  MYSQLUSER=mediawikiuser
# Line 136  rm -rf lang* Line 159  rm -rf lang*
159  #Untar application  #Untar application
160  echo "Decompressing files..."  echo "Decompressing files..."
161  mkdir -p $HTMLDIR  mkdir -p $HTMLDIR
162  tar xzf $INSTALLDIR/mediawiki-1.37.2.tar.gz -C /opt  tar xzf $INSTALLDIR/mediawiki-$MEDIAWIKIVERSION.tar.gz -C /opt
163  case $UPDATE in  case $UPDATE in
164     0) mv -f /opt/mediawiki-1.37.2/* $HTMLDIR ;;     0) mv -f /opt/mediawiki-$MEDIAWIKIVERSION/* $HTMLDIR ;;
165     *) cp -ufR /opt/mediawiki-1.37.2/* $HTMLDIR --reply=yes ;;     *) cp -ufR /opt/mediawiki-$MEDIAWIKIVERSION/* $HTMLDIR --reply=yes ;;
166  esac  esac
167  rm -rf /opt/mediawiki-1.37.2  rm -rf /opt/mediawiki-$MEDIAWIKIVERSION
168  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images
169  #Prepare config settings  #Prepare config settings
170  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php
# Line 178  case $UPDATE in Line 201  case $UPDATE in
201    0)    0)
202      echo "Creating MySQL User and DataBase..."      echo "Creating MySQL User and DataBase..."
203      mysqladmin -u root create $MYSQLDB      mysqladmin -u root create $MYSQLDB
204      #mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql      mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql
205      mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "      mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "
206      mysqladmin flush-privileges      mysqladmin flush-privileges
207      ;;      ;;
# Line 195  echo "Applying modifications to services Line 218  echo "Applying modifications to services
218  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
219  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php
220  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
221  /usr/local/bin/svc -h /service/httpd-e-smith  systemctl restart httpd-e-smith.service
222  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
223  case $UPDATE in  case $UPDATE in
224    0)    0)
# Line 226  echo "    # config setprop $MYSQLDB Publ Line 249  echo "    # config setprop $MYSQLDB Publ
249  echo " "  echo " "
250  echo "Don't forget to apply modifications with following commands:"  echo "Don't forget to apply modifications with following commands:"
251  echo "    # expand-template /etc/httpd/conf/httpd.conf"  echo "    # expand-template /etc/httpd/conf/httpd.conf"
252  echo "    # svc -h /service/httpd-e-smith"  echo "    # systemctl restart httpd-e-smith.service"
253  echo " "  echo " "
254  echo "For more details, see http://wiki.contribs.org/Mediawiki"  echo "For more details, see http://wiki.contribs.org/Mediawiki"
255  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
256    
257  %preun  %preun
258  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources  MEDIAWIKIVERSION='1.38.0'
259    INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources
260  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
261    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/
262  fi  fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed