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