2 Summary: DokuWiki XRef Plugin
3 Summary(pl.UTF-8): Wtyczka Include (dołączania) dla DokuWiki
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://dev.splitbrain.org/download/snapshots/xref-plugin-latest.tgz
10 # Source0-md5: 78d5f9a0f733123e0252d0597546555a
11 Source1: dokuwiki-find-lang.sh
12 URL: http://www.dokuwiki.org/plugin:xref
13 Requires: dokuwiki >= 20080505
14 Requires: phpxref >= 0.7-1
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define dokuconf /etc/webapps/dokuwiki
19 %define dokudir /usr/share/dokuwiki
20 %define plugindir %{dokudir}/lib/plugins/%{plugin}
23 This plugin makes linking to a PHPXref generated documentation easy.
24 You can link to functions, constants, variables, classes tables and
25 filenames. The plugin will figure out what you meant automatically.
26 The XRef documentation needs to be available on the same server as the
27 DokuWiki install running this plugin.
30 %setup -q -n %{plugin}
32 rm -f phpxref-0.7-javascriptfix.patch
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{plugindir}
37 cp -a . $RPM_BUILD_ROOT%{plugindir}
38 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,VERSION}
41 sh %{SOURCE1} %{name}.lang
44 rm -rf $RPM_BUILD_ROOT
47 # force css cache refresh
48 if [ -f %{dokuconf}/local.php ]; then
49 touch %{dokuconf}/local.php
52 %files -f %{name}.lang
53 %defattr(644,root,root,755)