]>
Commit | Line | Data |
---|---|---|
5fe0ee92 | 1 | %define _plugin pagemove |
fbff48d7 JB |
2 | Summary: DokuWiki PageMove plugin |
3 | Summary(pl.UTF-8): Wtyczka PageMove dla DokuWiki | |
5fe0ee92 ER |
4 | Name: dokuwiki-plugin-%{_plugin} |
5 | Version: 0.9.15a | |
9781783a | 6 | Release: 0.2 |
5fe0ee92 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://www.isection.co.uk/lib/exe/fetch.php?media=pagemove_20070722.zip | |
10 | # Source0-md5: f2cc2a57d40b877a335b52009e4cc072 | |
9781783a | 11 | Patch0: %{name}-redirectlinks.patch |
5fe0ee92 ER |
12 | URL: http://www.isection.co.uk/doku.php |
13 | BuildRequires: sed >= 4.0 | |
14 | Requires: dokuwiki >= 20060309 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _dokudir /usr/share/dokuwiki | |
19 | %define _plugindir %{_dokudir}/lib/plugins/%{_plugin} | |
20 | ||
21 | %description | |
22 | This plugin is designed for moving and renaming pages within your Wiki | |
23 | whilst maintaining the integrity of links to and from the page. | |
24 | ||
25 | In full you can: | |
26 | - Rename a page. | |
27 | - Move a page to an existing namspace. | |
28 | - Move a page to a new namespace. | |
29 | - A combination of the above. | |
30 | ||
fbff48d7 JB |
31 | %description -l pl.UTF-8 |
32 | Ta wtyczka służy do przesuwania i zmiany nazw stron wewnątrz Wiki z | |
33 | zachowaniem integralności odnośników z i do strony. | |
34 | ||
35 | W zupełności można: | |
36 | - usunąć stronę, | |
37 | - przenieść stronę do istniejącej przestrzeni nazw, | |
38 | - przenieść stronę do nowej przestrzeni nazw, | |
39 | - wykonać połączenie powyższych. | |
40 | ||
5fe0ee92 ER |
41 | %prep |
42 | %setup -q -n %{_plugin} | |
5fe0ee92 ER |
43 | # undos the source |
44 | %{__sed} -i -e 's,\r$,,' admin.php | |
45 | ||
9781783a | 46 | %patch0 -p1 |
44522ebd ER |
47 | mv lang/cs/pagemove.txt{.txt,} |
48 | mv lang/es/pagemove.txt{.txt,} | |
49 | mv lang/pl/pagemove.txt{.txt,} | |
50 | ||
5fe0ee92 ER |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{_plugindir} | |
54 | cp -a . $RPM_BUILD_ROOT%{_plugindir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %dir %{_plugindir} | |
62 | %{_plugindir}/admin.php | |
63 | %dir %{_plugindir}/lang | |
64 | %{_plugindir}/lang/en | |
65 | %lang(cs) %{_plugindir}/lang/cs | |
66 | %lang(de) %{_plugindir}/lang/de | |
67 | %lang(es) %{_plugindir}/lang/es | |
68 | %lang(fr) %{_plugindir}/lang/fr | |
69 | %lang(lv) %{_plugindir}/lang/lv | |
70 | %lang(nl) %{_plugindir}/lang/nl | |
71 | %lang(pl) %{_plugindir}/lang/pl | |
72 | %lang(ru) %{_plugindir}/lang/ru | |
73 | %lang(sl) %{_plugindir}/lang/sl | |
fbff48d7 | 74 | %lang(zh_CN) %{_plugindir}/lang/zh |