/[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.2 by brianr, Wed Jun 1 09:14:52 2022 UTC Revision 1.7 by brianr, Wed Jun 1 13:27:17 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mediawiki.spec,v 1.1 2022/05/31 02:55:04 jpp Exp $  # $Id: smeserver-mediawiki.spec,v 1.6 2022/06/01 13:23: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 10  %define version 1.37.2
8    %define release 2
9    =======
10    >>>>>>> 1.5
11  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.37.2
12  Name:          %{name}  Name:          %{name}
13  Version:       %{version}  Version:       %{version}
14  Release:       %{release}%{?dist}  Release:       %{release}%{?dist}
15  License:       GPL  License:       GPL
16  Group:         /Web/Applications  Group:         /Web/Applications
17  Source:        %{name}-%{version}.tar.gz  Source:        %{name}-%{version}-1.tar.gz
18  Patch0:        smeserver-mediawiki-1.6.10-1.patch  #Patch0:        smeserver-mediawiki-1.6.10-1.patch
19  Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch  #Patch1:        smeserver-mediawiki-1.6.10-Update-to-SME10.patch
20    
21  URL:           http://mediawiki.org/  URL:           http://mediawiki.org/
22  BuildRoot:     /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot:     /var/tmp/%{name}-%{version}-%{release}-buildroot
23  BuildArch:     noarch  BuildArch:     noarch
24  Requires:      e-smith-base, e-smith-release >= 7  Requires:      e-smith-base, e-smith-release >= 10
25  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
26    
27  %description  %description
28  This RPM is an unofficial addon for the SME Server 7.x.  This RPM is an addon for the SME Server v10
29  The target audience is the Linux/E-smith administrator  The target audience is the Linux/E-smith administrator
30  who wants to add Wikipedia-SW.  who wants to add Wikipedia-SW.
31  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 31  After installation open your webbrowser Line 33  After installation open your webbrowser
33  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
34    
35  %changelog  %changelog
36  * Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10.sme  * Wed Jun 01 2022 BogusDateBot
37    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
38      by assuming the date is correct and changing the weekday.
39      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
40      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
41    
42    * Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme
43  - Update to SME10 [SME:11987]  - Update to SME10 [SME:11987]
44  - Add php-fpm stuff to httpd.conf  - Add php-fpm stuff to httpd.conf
45  - Add in createlinks  - Update to mw 1.37.2
46    
47  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9  * Mon May 12 2008 Dietmar Berteld> 1.6.10-9
48  - 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 53  http://your_e-smith-server_adress/wiki
53    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
54    groups in the server-manager    groups in the server-manager
55    
56  * Thu Feb 26 2008 Dietmar Berteld>  * Tue Feb 26 2008 Dietmar Berteld>
57      Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or ....
58  - [1.6.10-7] Fixed httpd-settings for local access only  - [1.6.10-7] Fixed httpd-settings for local access only
59    
60  * Thu Oct 23 2007 Dietmar Berteld>  * Tue Oct 23 2007 Dietmar Berteld>
61      Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or ....
62  - [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
63    
64  * Fri Oct 19 2007 Dietmar Berteld>  * Fri Oct 19 2007 Dietmar Berteld>
# Line 79  rm -rf $RPM_BUILD_ROOT Line 89  rm -rf $RPM_BUILD_ROOT
89    
90  %setup  %setup
91    
92  %patch0 -p1  #%patch0 -p1
93  %patch1 -p1  #%patch1 -p1
94    
95  %build  %build
96    
# Line 120  esac Line 130  esac
130  APP=MediaWiki  APP=MediaWiki
131  URL=wiki  URL=wiki
132  WORKDIR=/root  WORKDIR=/root
133  INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources
134  HTMLDIR=/opt/mediawiki  HTMLDIR=/opt/mediawiki
135  MYSQLDB=mediawiki  MYSQLDB=mediawiki
136  MYSQLUSER=mediawikiuser  MYSQLUSER=mediawikiuser
# Line 178  case $UPDATE in Line 188  case $UPDATE in
188    0)    0)
189      echo "Creating MySQL User and DataBase..."      echo "Creating MySQL User and DataBase..."
190      mysqladmin -u root create $MYSQLDB      mysqladmin -u root create $MYSQLDB
191      #mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql      mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql
192      mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "      mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "
193      mysqladmin flush-privileges      mysqladmin flush-privileges
194      ;;      ;;
# Line 195  echo "Applying modifications to services Line 205  echo "Applying modifications to services
205  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php  sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
206  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php  mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php
207  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
208  /usr/local/bin/svc -h /service/httpd-e-smith  systemctl restart httpd-e-smith.service
209  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
210  case $UPDATE in  case $UPDATE in
211    0)    0)
# Line 226  echo "    # config setprop $MYSQLDB Publ Line 236  echo "    # config setprop $MYSQLDB Publ
236  echo " "  echo " "
237  echo "Don't forget to apply modifications with following commands:"  echo "Don't forget to apply modifications with following commands:"
238  echo "    # expand-template /etc/httpd/conf/httpd.conf"  echo "    # expand-template /etc/httpd/conf/httpd.conf"
239  echo "    # svc -h /service/httpd-e-smith"  echo "    # systemctl restart httpd-e-smith.service"
240  echo " "  echo " "
241  echo "For more details, see http://wiki.contribs.org/Mediawiki"  echo "For more details, see http://wiki.contribs.org/Mediawiki"
242  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
243    
244  %preun  %preun
245  INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources  INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources
246  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
247    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/    mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/
248  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