/[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.1 by jpp, Tue May 31 02:55:04 2022 UTC Revision 1.6 by brianr, Wed Jun 1 13:23:19 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mediawiki.spec,v 1.1 2013/03/03 04:58:08 unnilennium Exp $  # $Id: smeserver-mediawiki.spec,v 1.5 2022/06/01 12:12:19 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.6.10  <<<<<<< smeserver-mediawiki.spec
7  %define release 9  %define version 1.37.2
8    %define release 2
9    ======
10    
11  Summary:       Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.6.10  >>>>>>> 1.5
12    Summary:       Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2
13  Name:          %{name}  Name:          %{name}
14  Version:       %{version}  Version:       %{version}
15  Release:       %{release}%{?dist}  Release:       %{release}%{?dist}
16  License:       GPL  License:       GPL
17  Group:         /Web/Applications  Group:         /Web/Applications
18  Source:        %{name}-%{version}.tar.gz  Source:        %{name}-%{version}-1.tar.gz
19  Patch0:        smeserver-mediawiki-1.6.10-1.patch  #Patch0:        smeserver-mediawiki-1.6.10-1.patch
20    #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch
21    
22  URL:           http://mediawiki.org/  URL:           http://mediawiki.org/
23  BuildRoot:     /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot:     /var/tmp/%{name}-%{version}-%{release}-buildroot
24  BuildArch:     noarch  BuildArch:     noarch
25  Requires:      e-smith-base, e-smith-release >= 7  Requires:      e-smith-base, e-smith-release >= 10
26  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
27    
28  %description  %description
29  This RPM is an unofficial addon for the SME Server 7.x.  This RPM is an addon for the SME Server v10
30  The target audience is the Linux/E-smith administrator  The target audience is the Linux/E-smith administrator
31  who wants to add Wikipedia-SW.  who wants to add Wikipedia-SW.
32  Mediawiki is a very popular Wiki and is used by the wikipedia-project.  Mediawiki is a very popular Wiki and is used by the wikipedia-project.
# Line 29  After installation open your webbrowser Line 34  After installation open your webbrowser
34  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
35    
36  %changelog  %changelog
37    * Wed Jun 01 2022 BogusDateBot
38    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
39      by assuming the date is correct and changing the weekday.
40      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
41      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
42    
43    * Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme
44    - Update to SME10 [SME:11987]
45    - Add php-fpm stuff to httpd.conf
46    - Update to mw 1.37.2
47    
48  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9
49  - 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.
50    
# Line 38  http://your_e-smith-server_adress/wiki Line 54  http://your_e-smith-server_adress/wiki
54    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
55    groups in the server-manager    groups in the server-manager
56    
57  * Thu Feb 26 2008 Dietmar Berteld>  * Tue Feb 26 2008 Dietmar Berteld>
58      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
59  - [1.6.10-7] Fixed httpd-settings for local access only  - [1.6.10-7] Fixed httpd-settings for local access only
60    
61  * Thu Oct 23 2007 Dietmar Berteld>  * Tue Oct 23 2007 Dietmar Berteld>
62      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
63  - [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
64    
65  * Fri Oct 19 2007 Dietmar Berteld>  * Fri Oct 19 2007 Dietmar Berteld>
# Line 72  rm -rf $RPM_BUILD_ROOT Line 90  rm -rf $RPM_BUILD_ROOT
90    
91  %setup  %setup
92    
93  %patch0 -p1  #%patch0 -p1
94    #%patch1 -p1
95    
96  %build  %build
97    
# Line 112  esac Line 131  esac
131  APP=MediaWiki  APP=MediaWiki
132  URL=wiki  URL=wiki
133  WORKDIR=/root  WORKDIR=/root
134  INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources
135  HTMLDIR=/opt/mediawiki  HTMLDIR=/opt/mediawiki
136  MYSQLDB=mediawiki  MYSQLDB=mediawiki
137  MYSQLUSER=mediawikiuser  MYSQLUSER=mediawikiuser
# Line 128  rm -rf lang* Line 147  rm -rf lang*
147  #Untar application  #Untar application
148  echo "Decompressing files..."  echo "Decompressing files..."
149  mkdir -p $HTMLDIR  mkdir -p $HTMLDIR
150  tar xzf $INSTALLDIR/mediawiki-1.6.10.tar.gz -C /opt  tar xzf $INSTALLDIR/mediawiki-1.37.2.tar.gz -C /opt
151  case $UPDATE in  case $UPDATE in
152     0) mv -f /opt/mediawiki-1.6.10/* $HTMLDIR ;;     0) mv -f /opt/mediawiki-1.37.2/* $HTMLDIR ;;
153     *) cp -ufR /opt/mediawiki-1.6.10/* $HTMLDIR --reply=yes ;;     *) cp -ufR /opt/mediawiki-1.37.2/* $HTMLDIR --reply=yes ;;
154  esac  esac
155  rm -rf /opt/mediawiki-1.6.10  rm -rf /opt/mediawiki-1.37.2
156  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images
157  #Prepare config settings  #Prepare config settings
158  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php
# Line 187  echo "Applying modifications to services Line 206  echo "Applying modifications to services
206  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
207  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php
208  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
209  /usr/local/bin/svc -h /service/httpd-e-smith  systemctl restart httpd-e-smith.service
210  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
211  case $UPDATE in  case $UPDATE in
212    0)    0)
# Line 195  case $UPDATE in Line 214  case $UPDATE in
214      echo "Reminder:"      echo "Reminder:"
215      echo "- Website open globally"      echo "- Website open globally"
216      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
217      echo "- Usernames are identical with SME users"      #echo "- Usernames are identical with SME users"
218      echo "- Passwords are identical with SME passwords"      #echo "- Passwords are identical with SME passwords"
219      echo "- MediaWiki admin = SME admin"      echo "- MediaWiki admin = SME admin"
220      ;;      ;;
221    *)    *)
# Line 206  case $UPDATE in Line 225  case $UPDATE in
225      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"
226      echo "- Website open globally"      echo "- Website open globally"
227      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
228      echo "- Usernames are identical with SME users"      #echo "- Usernames are identical with SME users"
229      echo "- Passwords are identical with SME passwords"      #echo "- Passwords are identical with SME passwords"
230      echo "- MediaWiki admin = SME admin"      echo "- MediaWiki admin = SME admin"
231      ;;      ;;
232  esac  esac
# Line 218  echo "    # config setprop $MYSQLDB Publ Line 237  echo "    # config setprop $MYSQLDB Publ
237  echo " "  echo " "
238  echo "Don't forget to apply modifications with following commands:"  echo "Don't forget to apply modifications with following commands:"
239  echo "    # expand-template /etc/httpd/conf/httpd.conf"  echo "    # expand-template /etc/httpd/conf/httpd.conf"
240  echo "    # svc -h /service/httpd-e-smith"  echo "    # systemctl restart httpd-e-smith.service"
241  echo " "  echo " "
242  echo "For more details, see http://wiki.contribs.org/Mediawiki"  echo "For more details, see http://wiki.contribs.org/Mediawiki"
243  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
244    
245  %preun  %preun
246  INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources
247  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
248    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/
249  fi  fi
# Line 233  fi Line 252  fi
252  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
253    echo "Restarting services..."    echo "Restarting services..."
254    /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf    /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
255    /usr/local/bin/svc -h /service/httpd-e-smith    #/usr/local/bin/svc -h /service/httpd-e-smith
256      systemctl restart httpd-e-smith.service
257    echo " "    echo " "
258    echo "Uninstallation finished!"    echo "Uninstallation finished!"
259    echo "If you want to completly remove it (installation files and MySQL user+database)"    echo "If you want to completly remove it (installation files and MySQL user+database)"


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