SPECS: dokuwiki-plugin-code.spec - flush dw cache on install
glen
glen at pld-linux.org
Wed Jan 28 15:19:50 CET 2009
Author: glen Date: Wed Jan 28 14:19:50 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- flush dw cache on install
---- Files affected:
SPECS:
dokuwiki-plugin-code.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/dokuwiki-plugin-code.spec
diff -u SPECS/dokuwiki-plugin-code.spec:1.1 SPECS/dokuwiki-plugin-code.spec:1.2
--- SPECS/dokuwiki-plugin-code.spec:1.1 Wed Jan 28 15:03:43 2009
+++ SPECS/dokuwiki-plugin-code.spec Wed Jan 28 15:19:45 2009
@@ -14,8 +14,9 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _dokudir /usr/share/dokuwiki
-%define _plugindir %{_dokudir}/lib/plugins/%{plugin}
+%define dokuconf /etc/webapps/dokuwiki
+%define dokudir /usr/share/dokuwiki
+%define plugindir %{dokudir}/lib/plugins/%{plugin}
%description
DokuWiki pluging that extends hiliting of code fragments by adding
@@ -27,20 +28,26 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_plugindir}
-cp -a . $RPM_BUILD_ROOT%{_plugindir}
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+# force css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+ touch %{dokuconf}/local.php
+fi
+
%files
%defattr(644,root,root,755)
-%dir %{_plugindir}
-%{_plugindir}/img
-%{_plugindir}/*.php
-%{_plugindir}/*.css
-%{_plugindir}/*.js
-%{_plugindir}/*.xml
+%dir %{plugindir}
+%{plugindir}/img
+%{plugindir}/*.php
+%{plugindir}/*.css
+%{plugindir}/*.js
+%{plugindir}/*.xml
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -48,5 +55,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2009/01/28 14:19:45 glen
+- flush dw cache on install
+
Revision 1.1 2009/01/28 14:03:43 glen
- new
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dokuwiki-plugin-code.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list