]>
Commit | Line | Data |
---|---|---|
479191da ER |
1 | %define plugin gchart |
2 | Summary: Google Chart Plugin | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 20081209 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
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 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define dokuconf /etc/webapps/dokuwiki | |
17 | %define dokudir /usr/share/dokuwiki | |
18 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
19 | ||
20 | %description | |
21 | Allows to embed simple chart graphics using the Google Chart API. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{plugin} | |
25 | ||
26 | %install | |
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} | |
31 | ||
32 | # find locales | |
33 | sh %{SOURCE1} %{name}.lang | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %post | |
39 | # force css cache refresh | |
40 | if [ -f %{dokuconf}/local.php ]; then | |
41 | touch %{dokuconf}/local.php | |
42 | fi | |
43 | ||
44 | %files -f %{name}.lang | |
45 | %defattr(644,root,root,755) | |
46 | %dir %{plugindir} | |
47 | %{plugindir}/*.php | |
48 | %{plugindir}/conf |