]>
Commit | Line | Data |
---|---|---|
9e992c14 ER |
1 | %define plugin pageredirect |
2 | Summary: DokuWiki Page Redirect Plugin | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 2 | |
0a4a960e | 5 | Release: 0.2 |
9e992c14 ER |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
8 | Source0: http://wiki.zyberdog.dk/_media/php/dw/pageredirect/pageredirect_current.zip | |
9 | # Source0-md5: ee8fbe1f5686c43441e07e2dc4c82e37 | |
10 | Source1: dokuwiki-find-lang.sh | |
0a4a960e | 11 | Patch0: %{name}-pagematch.patch |
9e992c14 ER |
12 | URL: http://wiki.splitbrain.org/plugin:page_redirector |
13 | Requires: dokuwiki >= 20061106 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _dokudir /usr/share/dokuwiki | |
18 | %define _plugindir %{_dokudir}/lib/plugins/%{plugin} | |
19 | ||
20 | %description | |
21 | This plugin allows you to redirect users between pages and namespaces | |
22 | by adding a particular pattern to a page. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{plugin} | |
0a4a960e | 26 | %patch0 -p1 |
9e992c14 ER |
27 | |
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_plugindir} | |
31 | cp -a . $RPM_BUILD_ROOT%{_plugindir} | |
32 | ||
33 | # find locales | |
34 | sh %{SOURCE1} %{name}.lang | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files -f %{name}.lang | |
40 | %defattr(644,root,root,755) | |
41 | %dir %{_plugindir} | |
42 | %{_plugindir}/*.php | |
43 | %{_plugindir}/*.css | |
44 | %{_plugindir}/conf | |
45 | %{_plugindir}/images |