/[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.9 by brianr, Wed Jun 1 13:28:34 2022 UTC Revision 1.10 by brianr, Fri Jun 3 09:35:35 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mediawiki.spec,v 1.8 2022/06/01 13:27:57 brianr Exp $  # $Id: smeserver-mediawiki.spec,v 1.9 2022/06/01 13:28:34 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.0
7  %define release 2  %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}-1.tar.gz  Source:        %{name}-%{version}.tar.gz
16  #Patch0:        smeserver-mediawiki-1.6.10-1.patch  #Patch0:        smeserver-mediawiki-1.37.2-Fix-up-password-generation-and-localsettings.patch
17  #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch  #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch
18    
19  URL:           http://mediawiki.org/  URL:           http://mediawiki.org/
# Line 31  After installation open your webbrowser Line 31  After installation open your webbrowser
31  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
32    
33  %changelog  %changelog
34    * Fri Jun 03 2022 Brian Read <brianr@bjsystems.co.uk> 1.38.0-1.sme
35    - Rollup tar file to include mediawiki 1.38.0  [SME: 11987]
36    
37    * Wed Jun 01 2022 Brian Read <brianr@bjsystems.co.uk> 1.37.2-3.sme
38    - Fix-up-password-generation-and-localsettings  [SME: 11987]
39    
40  * Wed Jun 01 2022 BogusDateBot  * Wed Jun 01 2022 BogusDateBot
41  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
42    by assuming the date is correct and changing the weekday.    by assuming the date is correct and changing the weekday.
# Line 128  esac Line 134  esac
134  APP=MediaWiki  APP=MediaWiki
135  URL=wiki  URL=wiki
136  WORKDIR=/root  WORKDIR=/root
137  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources  MEDIAWIKIVERSION='1.38.0'
138    INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources
139  HTMLDIR=/opt/mediawiki  HTMLDIR=/opt/mediawiki
140  MYSQLDB=mediawiki  MYSQLDB=mediawiki
141  MYSQLUSER=mediawikiuser  MYSQLUSER=mediawikiuser
# Line 146  echo "Decompressing files..." Line 153  echo "Decompressing files..."
153  mkdir -p $HTMLDIR  mkdir -p $HTMLDIR
154  tar xzf $INSTALLDIR/mediawiki-1.37.2.tar.gz -C /opt  tar xzf $INSTALLDIR/mediawiki-1.37.2.tar.gz -C /opt
155  case $UPDATE in  case $UPDATE in
156     0) mv -f /opt/mediawiki-1.37.2/* $HTMLDIR ;;     0) mv -f /opt/mediawiki-$MEDIAWIKIVERSION/* $HTMLDIR ;;
157     *) cp -ufR /opt/mediawiki-1.37.2/* $HTMLDIR --reply=yes ;;     *) cp -ufR /opt/mediawiki-$MEDIAWIKIVERSION/* $HTMLDIR --reply=yes ;;
158  esac  esac
159  rm -rf /opt/mediawiki-1.37.2  rm -rf /opt/mediawiki-$MEDIAWIKIVERSION
160  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images
161  #Prepare config settings  #Prepare config settings
162  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php
# Line 240  echo "For more details, see http://wiki. Line 247  echo "For more details, see http://wiki.
247  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
248    
249  %preun  %preun
250  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources  INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources
251  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
252    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/
253  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