packages: mediawiki/mediawiki.spec - place cache and images in writeable lo...
kosmo
kosmo at pld-linux.org
Fri Feb 17 10:56:33 CET 2012
Author: kosmo Date: Fri Feb 17 09:56:33 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- place cache and images in writeable location.
- release 1
---- Files affected:
packages/mediawiki:
mediawiki.spec (1.64 -> 1.65)
---- Diffs:
================================================================
Index: packages/mediawiki/mediawiki.spec
diff -u packages/mediawiki/mediawiki.spec:1.64 packages/mediawiki/mediawiki.spec:1.65
--- packages/mediawiki/mediawiki.spec:1.64 Wed Feb 8 12:07:34 2012
+++ packages/mediawiki/mediawiki.spec Fri Feb 17 10:56:28 2012
@@ -9,7 +9,7 @@
Summary(pl.UTF-8): MediaWiki - oprogramowanie do wspólnej edycji, na którym działa Wikipedia
Name: mediawiki
Version: 1.18.1
-Release: 0
+Release: 1
License: GPL
Group: Applications/WWW
Source0: http://download.wikimedia.org/mediawiki/1.18/%{name}-%{version}.tar.gz
@@ -41,6 +41,7 @@
%define _noautoreq ^/usr/bin/hphpi$
%define _appdir %{_datadir}/%{name}
+%define _vardir %{_sharedstatedir}/%{name}
%define _webapps /etc/webapps
%define _webapp %{name}
%define _sysconfdir %{_webapps}/%{_webapp}
@@ -81,11 +82,15 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_vardir}}
-cp -a mw-config extensions images includes languages maintenance resources skins $RPM_BUILD_ROOT%{_appdir}
+cp -a mw-config extensions includes languages maintenance resources skins $RPM_BUILD_ROOT%{_appdir}
+cp -a cache images $RPM_BUILD_ROOT%{_vardir}
cp *.php $RPM_BUILD_ROOT%{_appdir}
+ln -s %{_vardir}/cache $RPM_BUILD_ROOT%{_appdir}
+ln -s %{_vardir}/images $RPM_BUILD_ROOT%{_appdir}
+
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
@@ -193,6 +198,7 @@
%dir %{_appdir}
%{_appdir}/*.php
%{_appdir}/languages
+%{_appdir}/cache
%{_appdir}/images
%{_appdir}/extensions
%{_appdir}/resources
@@ -200,6 +206,13 @@
%{_appdir}/includes
%{_appdir}/maintenance
+%dir %attr(750,root,http) %{_vardir}
+%dir %attr(770,root,http) %{_vardir}/cache
+%{_vardir}/cache/.htaccess
+%dir %attr(770,root,http) %{_vardir}/images
+%{_vardir}/images/.htaccess
+%{_vardir}/images/README
+
%files setup
%defattr(644,root,root,755)
%dir %attr(775,root,http) %{_appdir}/mw-config
@@ -211,6 +224,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.65 2012/02/17 09:56:28 kosmo
+- place cache and images in writeable location.
+- release 1
+
Revision 1.64 2012/02/08 11:07:34 kosmo
- updated to 1.18.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mediawiki/mediawiki.spec?r1=1.64&r2=1.65&f=u
More information about the pld-cvs-commit
mailing list