]>
Commit | Line | Data |
---|---|---|
345e2901 ER |
1 | %define plugin backlinks |
2 | Summary: DokuWiki Backlinks Plugin | |
3 | Summary(pl.UTF-8): Wtyczka backlinks dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
d4968189 | 5 | Version: 20090521 |
528b6115 | 6 | Release: 1 |
345e2901 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
d4968189 JK |
9 | Source0: http://cloud.github.com/downloads/chimeric/dokuwiki-plugin-backlinks/plugin-backlinks.tgz |
10 | # Source0-md5: 916d5121fd40fe9a5b5d0a2accb66ce6 | |
345e2901 ER |
11 | URL: http://www.dokuwiki.org/plugin:backlinks2 |
12 | Requires: dokuwiki >= 20061106 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define dokuconf /etc/webapps/dokuwiki | |
1b3be584 | 17 | %define dokudir /usr/share/dokuwiki |
345e2901 ER |
18 | %define plugindir %{dokudir}/lib/plugins/%{plugin} |
19 | ||
20 | %description | |
528b6115 ER |
21 | Lists all pages that link back to a given page using the first |
22 | headline as link title. | |
345e2901 ER |
23 | |
24 | %prep | |
25 | %setup -q -n %{plugin} | |
1b3be584 ER |
26 | version=$(cat VERSION) |
27 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
28 | : %%{version} mismatch | |
345e2901 ER |
29 | exit 1 |
30 | fi | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{plugindir} | |
35 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
36 | rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION} | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %post | |
42 | # force css cache refresh | |
43 | if [ -f %{dokuconf}/local.php ]; then | |
44 | touch %{dokuconf}/local.php | |
45 | fi | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README VERSION | |
50 | %dir %{plugindir} | |
51 | %{plugindir}/*.php |