/[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 72114 by boklm, Tue Mar 15 18:14:05 2011 UTC revision 72115 by boklm, Tue Mar 15 19:59:20 2011 UTC
# Line 4  Line 4 
4  %define version                         %{basever}.2  %define version                         %{basever}.2
5  %define release                         %mkrel 4  %define release                         %mkrel 4
6  %define _requires_exceptions            pear(HTML/Template/PHPTAL.php)\\|pear(MogileFS.php)\\|pear(extensions\\|pear(PHPUnit.php  %define _requires_exceptions            pear(HTML/Template/PHPTAL.php)\\|pear(MogileFS.php)\\|pear(extensions\\|pear(PHPUnit.php
7  %define mediawiki_path                  %{_var}/www/%{name}  %define mediawiki_path                  %{_datadir}/%{name}
8  %define mediawiki_mm_public_path        %{mediawiki_path}/public  %define mediawiki_var_path              %{_localstatedir}/lib/%{name}
9  %define mediawiki_mm_var_path           %{mediawiki_path}/var  %define mediawiki_images_path           %{mediawiki_var_path}/images
10  %define mediawiki_mm_source_path        %{mediawiki_mm_public_path}/base/wiki  %define mediawiki_config_path           %{_sysconfdir}/%{name}
11    
12    
13  Name:           %{name}  Name:           %{name}
# Line 58  perl -pi -e 's/\015$//' languages/Langua Line 58  perl -pi -e 's/\015$//' languages/Langua
58  rm -rf %{buildroot}  rm -rf %{buildroot}
59    
60  #install files  #install files
61  %__install -d -m 755 %{buildroot}%{mediawiki_mm_source_path}  %__install -d -m 755 %{buildroot}%{mediawiki_path}
62  %__cp -pR *.php %{buildroot}%{mediawiki_mm_source_path}  %__cp -pR *.php %{buildroot}%{mediawiki_path}
63  %__cp -pR *.phtml %{buildroot}%{mediawiki_mm_source_path}  %__cp -pR *.phtml %{buildroot}%{mediawiki_path}
64  %__cp -pR *.sample %{buildroot}%{mediawiki_mm_source_path}  %__cp -pR *.sample %{buildroot}%{mediawiki_path}
65  %__cp -pR bin %{buildroot}%{mediawiki_mm_source_path}  %__cp -pR bin config extensions includes languages maintenance math \
66  %__cp -pR config %{buildroot}%{mediawiki_mm_source_path}          skins serialized %{buildroot}%{mediawiki_path}
67  %__cp -pR extensions %{buildroot}%{mediawiki_mm_source_path}  %__install -d -m 755 %{buildroot}%{mediawiki_var_path}
68  %__cp -pR images %{buildroot}%{mediawiki_mm_source_path}  %__install -d -m 755 %{buildroot}%{mediawiki_images_path}
69  %__install -d -m 755 %{buildroot}%{mediawiki_mm_source_path}/includes  ln -s %{mediawiki_config_path}/LocalSettings.php %{buildroot}%{mediawiki_path}/LocalSettings.php
 %__cp -pR includes/* %{buildroot}%{mediawiki_mm_source_path}/includes  
 %__cp -pR languages %{buildroot}%{mediawiki_mm_source_path}  
 %__cp -pR maintenance %{buildroot}%{mediawiki_mm_source_path}  
 %__cp -pR math %{buildroot}%{mediawiki_mm_source_path}  
 %__cp -pR skins %{buildroot}%{mediawiki_mm_source_path}  
 %__install -d -m 755 %{buildroot}%{mediawiki_mm_source_path}/serialized  
 %__cp -pR serialized/*.* %{buildroot}%{mediawiki_mm_source_path}/serialized  
 %__install -d -m 755 %{buildroot}%{mediawiki_mm_var_path}  
70    
71  # create apache configuration file  # create apache configuration file
72  %{__install} -d -m 755 %{buildroot}%{webappconfdir}  %{__install} -d -m 755 %{buildroot}%{webappconfdir}
73  cat >>  %{buildroot}%{webappconfdir}/%{name}_mm.conf <<EOF  cat >>  %{buildroot}%{webappconfdir}/%{name}.conf <<EOF
74  Alias /%{name} %{mediawiki_mm_public_path}  Alias /%{name} %{mediawiki_path}
75  <Directory "%{mediawiki_mm_public_path}">  Alias /%{name}-images %{mediawiki_images_path}
76    <Directory "%{mediawiki_path}">
77    Options -Indexes FollowSymLinks MultiViews    Options -Indexes FollowSymLinks MultiViews
78    Order allow,deny    Order allow,deny
79    Allow from All    Allow from All
80  </Directory>  </Directory>
81    <Directory "%{mediawiki_images_path}">
82  <Directory "%{mediawiki_mm_source_path}/bin">    Options -Indexes FollowSymLinks MultiViews
83    Order allow,deny    Order allow,deny
84    Deny from All    Allow from All
85  </Directory>  </Directory>
86  EOF  EOF
87    
# Line 106  rm -rf %{buildroot} Line 99  rm -rf %{buildroot}
99  %files  %files
100  %defattr(-,root,root)  %defattr(-,root,root)
101  %dir %{mediawiki_path}  %dir %{mediawiki_path}
102  %dir %{mediawiki_mm_var_path}  %{mediawiki_path}/*.php
103  %{mediawiki_mm_source_path}/*.php  %{mediawiki_path}/*.phtml
104  %{mediawiki_mm_source_path}/*.phtml  %{mediawiki_path}/*.sample
105  %{mediawiki_mm_source_path}/*.sample  %{mediawiki_path}/bin
106  %{mediawiki_mm_source_path}/bin  %{mediawiki_path}/config
107  %attr(-,apache,apache) %{mediawiki_mm_source_path}/config  %{mediawiki_path}/extensions
108  %{mediawiki_mm_source_path}/extensions  %attr(-,apache,apache) %{mediawiki_images_path}
109  %attr(-,apache,apache) %{mediawiki_mm_source_path}/images  %{mediawiki_path}/includes
110  %{mediawiki_mm_source_path}/includes  %{mediawiki_path}/languages
111  %{mediawiki_mm_source_path}/languages  %{mediawiki_path}/maintenance
112  %{mediawiki_mm_source_path}/maintenance  %{mediawiki_path}/math
113  %{mediawiki_mm_source_path}/math  %{mediawiki_path}/serialized
114  %{mediawiki_mm_source_path}/serialized  %{mediawiki_path}/skins
 %{mediawiki_mm_source_path}/skins  
 %exclude %{mediawiki_mm_source_path}/includes/normal/CleanUpTest.php  
115    
116  %config(noreplace) %{_webappconfdir}/%{name}_mm.conf  %config(noreplace) %{_webappconfdir}/%{name}.conf
117    
118  %doc FAQ HISTORY README RELEASE-NOTES UPGRADE  %doc FAQ HISTORY README RELEASE-NOTES UPGRADE
119  %doc docs  %doc docs

Legend:
Removed from v.72114  
changed lines
  Added in v.72115

  ViewVC Help
Powered by ViewVC 1.1.28