]>
Commit | Line | Data |
---|---|---|
1 | %define _plugin include | |
2 | Summary: Dokuwiki Include Plugin | |
3 | Name: dokuwiki-plugin-%{_plugin} | |
4 | Version: 20070822 | |
5 | Release: 0.3 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://www.qwik.ch/media/include.tgz | |
9 | # Source0-md5: 7487acd2765cdfd7eaf38b52e48508b6 | |
10 | Source1: dokuwiki-find-lang.sh | |
11 | URL: http://www.wikidesign.ch/en/plugin/include/start | |
12 | Requires: dokuwiki >= 20061106 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _dokudir /usr/share/dokuwiki | |
17 | %define _plugindir %{_dokudir}/lib/plugins/%{_plugin} | |
18 | ||
19 | %description | |
20 | This is a very simple yet handy plugin with which you can include | |
21 | another wiki page into the current one. | |
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}/{COPYING,README,VERSION} | |
31 | ||
32 | # find locales | |
33 | sh %{SOURCE1} %{name}.lang | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files -f %{name}.lang | |
39 | %defattr(644,root,root,755) | |
40 | %doc README | |
41 | %dir %{_plugindir} | |
42 | %{_plugindir}/*.php | |
43 | %{_plugindir}/*.css | |
44 | %{_plugindir}/conf | |
45 | %{_plugindir}/images |