1 |
%define basever 1.19 |
%define basever 1.20 |
2 |
%define subver 2 |
%define subver 3 |
3 |
%define _requires_exceptions pear(extensions\\|pear(PHPUnit/Framework.php)\\|pear(phase3/includes/WebStart.php) |
%define _requires_exceptions pear(extensions\\|pear(PHPUnit/Framework.php)\\|pear(phase3/includes/WebStart.php) |
4 |
|
|
5 |
## Framework.php was dropped in PHPUnit |
## Framework.php was dropped in PHPUnit |
9 |
|
|
10 |
Name: mediawiki |
Name: mediawiki |
11 |
Version: %{basever}.%{subver} |
Version: %{basever}.%{subver} |
12 |
Release: %mkrel 3 |
Release: %mkrel 1 |
13 |
Summary: A wiki engine |
Summary: A wiki engine |
14 |
License: GPLv2+ |
License: GPLv2+ |
15 |
Group: System/Servers |
Group: System/Servers |
18 |
|
|
19 |
Source0: http://download.wikimedia.org/mediawiki/%{basever}/%{name}-%{version}.tar.gz |
Source0: http://download.wikimedia.org/mediawiki/%{basever}/%{name}-%{version}.tar.gz |
20 |
Source1: mediawiki.conf |
Source1: mediawiki.conf |
|
Source2: README.urpmi |
|
21 |
Source3: mw-createinstance.in |
Source3: mw-createinstance.in |
22 |
Source4: mw-updateallinstances.in |
Source4: mw-updateallinstances.in |
23 |
Source5: mediawiki-common.conf |
Source5: mediawiki-common.conf |
24 |
|
|
|
Patch1: mediawiki-1.16.2-enablesuggests.patch |
|
|
|
|
25 |
# to make sure the "apache" group is created before mediawiki is installed |
# to make sure the "apache" group is created before mediawiki is installed |
26 |
Requires(pre): webserver |
Requires(pre): webserver |
27 |
# suggest apache-mod_php |
# suggest apache-mod_php |
88 |
|
|
89 |
%prep |
%prep |
90 |
%setup -q |
%setup -q |
|
%patch1 -p1 -b .enablesuggests |
|
91 |
|
|
92 |
%build |
%build |
93 |
|
: |
94 |
|
|
95 |
%install |
%install |
96 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
97 |
|
|
98 |
# move away the documentation to the final folder. |
# move away the documentation to the final folder. |
99 |
mkdir -p %{buildroot}%{docdir} |
mkdir -p %{buildroot}%{docdir} |
100 |
mv -f COPYING FAQ HISTORY README RELEASE-NOTES-1.19 UPGRADE CREDITS INSTALL docs \ |
mv -f COPYING FAQ HISTORY README RELEASE-NOTES-1.20 UPGRADE CREDITS INSTALL docs \ |
101 |
%{buildroot}%{docdir}/ |
%{buildroot}%{docdir}/ |
102 |
|
|
|
install -p %{SOURCE2} %{buildroot}%{docdir}/README.urpmi |
|
|
|
|
103 |
# now copy the rest to the buildroot. |
# now copy the rest to the buildroot. |
104 |
mkdir -p %{buildroot}%{sharedcodedir} |
mkdir -p %{buildroot}%{sharedcodedir} |
105 |
cp -a * %{buildroot}%{sharedcodedir}/ |
cp -a * %{buildroot}%{sharedcodedir}/ |
147 |
%files |
%files |
148 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
149 |
%{docdir} |
%{docdir} |
150 |
|
|
151 |
|
%{_datadir}/mediawiki/composer.json |
152 |
%dir %{sharedcodedir} |
%dir %{sharedcodedir} |
153 |
%{sharedcodedir}/*.php |
%{sharedcodedir}/*.php |
154 |
%{sharedcodedir}/*.php5 |
%{sharedcodedir}/*.php5 |