2 Summary: Google Chart Plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://dev.splitbrain.org/download/snapshots/gchart-plugin-latest.tgz
9 # Source0-md5: cfa58e4bc6b06e388ceca8713f5f10b2
10 Source1: dokuwiki-find-lang.sh
11 URL: http://www.dokuwiki.org/plugin:gchart
12 Requires: dokuwiki >= 20080505
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define dokuconf /etc/webapps/dokuwiki
17 %define dokudir /usr/share/dokuwiki
18 %define plugindir %{dokudir}/lib/plugins/%{plugin}
21 Allows to embed simple chart graphics using the Google Chart API.
24 %setup -q -n %{plugin}
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{plugindir}
29 cp -a . $RPM_BUILD_ROOT%{plugindir}
30 rm -f $RPM_BUILD_ROOT%{plugindir}/{CREDITS,changelog}
33 sh %{SOURCE1} %{name}.lang
36 rm -rf $RPM_BUILD_ROOT
39 # force css cache refresh
40 if [ -f %{dokuconf}/local.php ]; then
41 touch %{dokuconf}/local.php
44 %files -f %{name}.lang
45 %defattr(644,root,root,755)