1 %define plugin backlinks
2 Summary: DokuWiki Backlinks Plugin
3 Summary(pl.UTF-8): Wtyczka backlinks dla DokuWiki
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://www.chimeric.de/_src/plugin-backlinks.tgz
10 # Source0-md5: 5ff0ac61d1f7438c13e64395a51364fe
11 URL: http://www.dokuwiki.org/plugin:backlinks2
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 Lists all pages that link back to a given page using the first headline as link title.
24 %setup -q -n %{plugin}
25 if [ $(cat VERSION | tr -d -) != %{version} ]; then
26 : %%{version} mismatch, should be: $(cat VERSION | tr -d -)
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{plugindir}
33 cp -a . $RPM_BUILD_ROOT%{plugindir}
34 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
37 rm -rf $RPM_BUILD_ROOT
40 # force css cache refresh
41 if [ -f %{dokuconf}/local.php ]; then
42 touch %{dokuconf}/local.php
46 %defattr(644,root,root,755)