]> git.pld-linux.org Git - SPECS.git/blob - dokuwiki-plugin-xref.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / dokuwiki-plugin-xref.spec
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
14 Requires:       phpxref >= 0.7-1
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         dokuconf        /etc/webapps/dokuwiki
19 %define         dokudir         /usr/share/dokuwiki
20 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
21
22 %description
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.
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
46 %post
47 # force css cache refresh
48 if [ -f %{dokuconf}/local.php ]; then
49         touch %{dokuconf}/local.php
50 fi
51
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
This page took 0.178077 seconds and 3 git commands to generate.