]>
Commit | Line | Data |
---|---|---|
09e9b04a ER |
1 | %define _plugin pagemove |
2 | Summary: DokuWiki PageMove Plugin | |
3 | Name: dokuwiki-plugin-%{_plugin} | |
4 | Version: 0.9.15a | |
5 | Release: 0.1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://www.isection.co.uk/lib/exe/fetch.php?media=pagemove_20070722.zip | |
9 | # Source0-md5: f2cc2a57d40b877a335b52009e4cc072 | |
10 | URL: http://www.isection.co.uk/doku.php | |
11 | BuildRequires: sed >= 4.0 | |
12 | Requires: dokuwiki >= 20060309 | |
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 is designed for moving and renaming pages within your Wiki | |
21 | whilst maintaining the integrity of links to and from the page. | |
22 | ||
23 | In full you can: | |
24 | - Rename a page. | |
25 | - Move a page to an existing namspace. | |
26 | - Move a page to a new namespace. | |
27 | - A combination of the above. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{_plugin} | |
31 | ||
32 | # undos the source | |
33 | %{__sed} -i -e 's,\r$,,' admin.php | |
34 | ||
130ce60b ER |
35 | mv lang/cs/pagemove.txt{.txt,} |
36 | mv lang/es/pagemove.txt{.txt,} | |
37 | mv lang/pl/pagemove.txt{.txt,} | |
38 | ||
09e9b04a ER |
39 | %install |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{_plugindir} | |
42 | cp -a . $RPM_BUILD_ROOT%{_plugindir} | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %dir %{_plugindir} | |
50 | %{_plugindir}/admin.php | |
51 | %dir %{_plugindir}/lang | |
52 | %{_plugindir}/lang/en | |
53 | %lang(cs) %{_plugindir}/lang/cs | |
54 | %lang(de) %{_plugindir}/lang/de | |
55 | %lang(es) %{_plugindir}/lang/es | |
56 | %lang(fr) %{_plugindir}/lang/fr | |
57 | %lang(lv) %{_plugindir}/lang/lv | |
58 | %lang(nl) %{_plugindir}/lang/nl | |
59 | %lang(pl) %{_plugindir}/lang/pl | |
60 | %lang(ru) %{_plugindir}/lang/ru | |
61 | %lang(sl) %{_plugindir}/lang/sl | |
62 | %lang(zh) %{_plugindir}/lang/zh |