]>
Commit | Line | Data |
---|---|---|
d0204e8c ER |
1 | %define snap 2005-05-26 |
2 | %define ver %(echo %{snap} | tr -d -) | |
3 | %define plugin actionlink | |
4 | Summary: DokuWiki Actionlink Plugin | |
5 | Name: dokuwiki-plugin-%{plugin} | |
6 | Version: %{ver} | |
7 | Release: 1 | |
8 | License: GPL v2 | |
9 | Group: Applications/WWW | |
10 | Source0: http://mbot.ovh.org/plugin-actionlink-%{snap}.tar.gz | |
11 | # Source0-md5: ff45e9631f70d42d5bf405e5090bc999 | |
12 | URL: http://www.dokuwiki.org/plugin:actionlink | |
13 | Requires: dokuwiki | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
120a8383 | 17 | %define dokuconf /etc/webapps/dokuwiki |
d0204e8c ER |
18 | %define dokudir /usr/share/dokuwiki |
19 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
20 | ||
21 | %description | |
22 | This plugin lets you use actionlinks in your wiki syntax. It's based on the | |
23 | dokuwiki's core function tpl_actionlink(). | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{plugin} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{plugindir} | |
31 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
120a8383 ER |
36 | %post |
37 | # force css cache refresh | |
38 | if [ -f %{dokuconf}/local.php ]; then | |
39 | touch %{dokuconf}/local.php | |
40 | fi | |
41 | ||
d0204e8c ER |
42 | %files |
43 | %defattr(644,root,root,755) | |
44 | %dir %{plugindir} | |
45 | %{plugindir}/syntax.php |