/[packages]/cauldron/mediawiki/current/SPECS/mediawiki.spec
ViewVC logotype

Diff of /cauldron/mediawiki/current/SPECS/mediawiki.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 389214 by pterjan, Thu Jan 17 21:30:27 2013 UTC revision 409801 by kharec, Fri Apr 12 05:05:15 2013 UTC
# Line 1  Line 1 
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
# Line 9  Line 9 
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
# Line 18  Url:           http://www.mediawiki.org/wiki/Medi Line 18  Url:           http://www.mediawiki.org/wiki/Medi
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
# Line 91  If you are using sqlite you can't use a Line 88  If you are using sqlite you can't use a
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}/
# Line 152  touch %{buildroot}%{_sysconfdir}/mediawi Line 147  touch %{buildroot}%{_sysconfdir}/mediawi
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

Legend:
Removed from v.389214  
changed lines
  Added in v.409801

  ViewVC Help
Powered by ViewVC 1.1.30