1 |
# $Id: smeserver-mediawiki.spec,v 1.1 2022/05/31 02:55:04 jpp Exp $ |
# $Id: smeserver-mediawiki.spec,v 1.2 2022/06/01 09:14:52 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 |
%define version 1.37.2 |
7 |
%define release 10 |
%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.37.2 |
10 |
Name: %{name} |
Name: %{name} |
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.6.10-1.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/ |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArch: noarch |
BuildArch: noarch |
22 |
Requires: e-smith-base, e-smith-release >= 7 |
Requires: e-smith-base, e-smith-release >= 10 |
23 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
24 |
|
|
25 |
%description |
%description |
26 |
This RPM is an unofficial addon for the SME Server 7.x. |
This RPM is an addon for the SME Server v10 |
27 |
The target audience is the Linux/E-smith administrator |
The target audience is the Linux/E-smith administrator |
28 |
who wants to add Wikipedia-SW. |
who wants to add Wikipedia-SW. |
29 |
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. |
31 |
http://your_e-smith-server_adress/wiki |
http://your_e-smith-server_adress/wiki |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
* 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 |
35 |
- Update to SME10 [SME:11987] |
- Update to SME10 [SME:11987] |
36 |
- Add php-fpm stuff to httpd.conf |
- Add php-fpm stuff to httpd.conf |
37 |
- Add in createlinks |
- Add in createlinks |
79 |
|
|
80 |
%setup |
%setup |
81 |
|
|
82 |
%patch0 -p1 |
#%patch0 -p1 |
83 |
%patch1 -p1 |
#%patch1 -p1 |
84 |
|
|
85 |
%build |
%build |
86 |
|
|
120 |
APP=MediaWiki |
APP=MediaWiki |
121 |
URL=wiki |
URL=wiki |
122 |
WORKDIR=/root |
WORKDIR=/root |
123 |
INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources |
INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources |
124 |
HTMLDIR=/opt/mediawiki |
HTMLDIR=/opt/mediawiki |
125 |
MYSQLDB=mediawiki |
MYSQLDB=mediawiki |
126 |
MYSQLUSER=mediawikiuser |
MYSQLUSER=mediawikiuser |
232 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
233 |
|
|
234 |
%preun |
%preun |
235 |
INSTALLDIR=/usr/share/doc/mediawiki-1.6.10/Sources |
INSTALLDIR=/usr/share/doc/mediawiki-1.37.2/Sources |
236 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
237 |
mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/ |
mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/ |
238 |
fi |
fi |