]>
Commit | Line | Data |
---|---|---|
37caec69 ER |
1 | %define plugin code |
2 | Summary: DokuWiki plugin: Syntax highlighting with optional line numbers | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 20080722 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://dev.mwat.de/dw/syntax_plugin_code.zip | |
9 | # Source0-md5: 79c8f4333dd9627f468062ce5309e06f | |
10 | Patch0: %{name}-geshi.patch | |
11 | URL: http://www.dokuwiki.org/plugin:code2 | |
ea3d05a8 | 12 | BuildRequires: unzip |
37caec69 ER |
13 | Requires: dokuwiki >= 20050713 |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
b0cbe3e5 ER |
17 | %define dokuconf /etc/webapps/dokuwiki |
18 | %define dokudir /usr/share/dokuwiki | |
19 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
37caec69 ER |
20 | |
21 | %description | |
22 | DokuWiki pluging that extends hiliting of code fragments by adding | |
23 | caption/footer and line numbers support. | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{plugin} | |
27 | %patch0 -p1 | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
b0cbe3e5 ER |
31 | install -d $RPM_BUILD_ROOT%{plugindir} |
32 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
37caec69 ER |
33 | |
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
b0cbe3e5 ER |
37 | %post |
38 | # force css cache refresh | |
39 | if [ -f %{dokuconf}/local.php ]; then | |
40 | touch %{dokuconf}/local.php | |
41 | fi | |
42 | ||
37caec69 ER |
43 | %files |
44 | %defattr(644,root,root,755) | |
b0cbe3e5 ER |
45 | %dir %{plugindir} |
46 | %{plugindir}/img | |
47 | %{plugindir}/*.php | |
48 | %{plugindir}/*.css | |
49 | %{plugindir}/*.js | |
50 | %{plugindir}/*.xml |