]>
Commit | Line | Data |
---|---|---|
3448c479 ER |
1 | %define plugin xref |
2 | Summary: DokuWiki XRef Plugin | |
3 | Summary(pl.UTF-8): Wtyczka Include (dołączania) dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 20081003 | |
6 | Release: 1 | |
7 | License: GPL v2 | |
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 | |
49949e96 | 14 | Requires: phpxref >= 0.7-1 |
3448c479 ER |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
8c669aa5 | 18 | %define dokuconf /etc/webapps/dokuwiki |
3448c479 ER |
19 | %define dokudir /usr/share/dokuwiki |
20 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
21 | ||
22 | %description | |
1e52de26 | 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. | |
3448c479 ER |
28 | |
29 | %prep | |
30 | %setup -q -n %{plugin} | |
31 | ||
32 | rm -f phpxref-0.7-javascriptfix.patch | |
33 | ||
34 | %install | |
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} | |
39 | ||
40 | # find locales | |
41 | sh %{SOURCE1} %{name}.lang | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
8c669aa5 ER |
46 | %post |
47 | # force css cache refresh | |
48 | if [ -f %{dokuconf}/local.php ]; then | |
49 | touch %{dokuconf}/local.php | |
50 | fi | |
51 | ||
3448c479 ER |
52 | %files -f %{name}.lang |
53 | %defattr(644,root,root,755) | |
54 | %dir %{plugindir} | |
55 | %{plugindir}/*.php | |
56 | %{plugindir}/*.css | |
57 | %{plugindir}/*.png | |
58 | %{plugindir}/conf |