Author: blues                        Date: Wed Apr 26 20:23:02 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- cache_dir patch added - moved default cache dir to /var/cache

---- Files affected:
SPECS:
   Apache-Gallery.spec (1.20 -> 1.21) 

---- Diffs:

================================================================
Index: SPECS/Apache-Gallery.spec
diff -u SPECS/Apache-Gallery.spec:1.20 SPECS/Apache-Gallery.spec:1.21
--- SPECS/Apache-Gallery.spec:1.20      Tue Apr 25 16:05:23 2006
+++ SPECS/Apache-Gallery.spec   Wed Apr 26 22:22:56 2006
@@ -12,12 +12,13 @@
 Summary(pl):   ModuĊ‚ Apache'a do tworzenia galerii online
 Name:          Apache-Gallery
 Version:       1.0
-Release:       0.%{_rc}.1
+Release:       0.%{_rc}.1.1
 License:       Artistic
 Group:         Applications/Graphics
 Source0:       http://apachegallery.dk/download/%{name}-%{version}%{_rc}.tar.gz
 # Source0-md5: a705cbecf2f124d18a3bde3fc36384e8
 Source1:       %{name}.conf
+Patch0:                %{name}-cache_dir.patch
 URL:           http://apachegallery.dk/
 BuildRequires: apache-mod_perl-devel >= 1:1.99
 %{?with_tests:BuildRequires:   apache1-mod_perl}
@@ -38,6 +39,7 @@
 %define                _noautoreq      'perl(APR::Table)' 'perl(Apache2)' 
'perl(Apache::Const)' 'perl(Apache::RequestIO)' 'perl(Apache::RequestRec)' 
'perl(Apache::SubRequest)'
 %define                _appdir         %{_datadir}/%{name}
 %define                _apacheicons    %{_appdir}/icons
+%define                _cachedir       /var/cache/%{name}
 
 %description
 Apache::Gallery is a mod_perl handler that sits on top of your
@@ -55,6 +57,7 @@
 
 %prep
 %setup -q -n %{name}-%{version}%{_rc}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
@@ -67,7 +70,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d 
$RPM_BUILD_ROOT{%{_appdir}/templates/{new,default},%{_apacheicons},/etc/httpd/httpd.conf}
+install -d 
$RPM_BUILD_ROOT{%{_appdir}/templates/{new,default},%{_apacheicons},/etc/httpd/httpd.conf,%{_cachedir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -84,6 +87,12 @@
 %post
 %service -q httpd reload
 
+%triggerpostun -- Apache-Gallery < 1.0-0.RC3.2
+if [ -d "/var/tmp/Apache-Gallery" ]; then
+       echo "Removing old cache /var/tmp/Apache-Gallery. New location: 
%{_cachedir}"
+       rm -rf /var/tmp/Apache-Gallery
+fi
+
 %preun
 if [ "$1" = "0" ]; then
        %service -q httpd reload
@@ -104,6 +113,7 @@
 %{_appdir}/templates/default/*.css
 %dir %{_apacheicons}
 %{_apacheicons}/*.png
+%attr(770,root,http) %dir %{_cachedir}
 %{_mandir}/man3/*.3*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -112,6 +122,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.21  2006/04/26 20:22:56  blues
+- cache_dir patch added - moved default cache dir to /var/cache
+
 Revision 1.20  2006/04/25 14:05:23  blues
 - 1.0RC3 - maybe STBR to AC with fixed config?
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/Apache-Gallery.spec?r1=1.20&r2=1.21&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to