1 %define plugin pagelist
2 Summary: DokuWiki Pagelist Plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://www.chimeric.de/_src/plugin-pagelist.tgz
9 # Source0-md5: fd632aca9688a48c682a1ebdfe1e2aba
10 Source1: dokuwiki-find-lang.sh
11 URL: http://www.dokuwiki.org/plugin:pagelist
12 Requires: dokuwiki >= 20061106
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 The Pagelist Plugin does – as its name says – list wiki pages in a
22 nice way. Besides its function as a stand-alone syntax plugin, it
23 serves as helper plugin for the Blog, Discussion, Editor, Tag, Task
27 %setup -q -n %{plugin}
28 if [ $(cat VERSION | tr -d -) != %{version} ]; then
29 : %%{version} mismatch, should be: $(cat VERSION | tr -d -)
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{plugindir}
36 cp -a . $RPM_BUILD_ROOT%{plugindir}
37 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
40 sh %{SOURCE1} %{name}.lang
43 rm -rf $RPM_BUILD_ROOT
46 # force css cache refresh
47 if [ -f %{dokuconf}/local.php ]; then
48 touch %{dokuconf}/local.php
52 %files -f %{name}.lang
53 %defattr(644,root,root,755)