]>
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 | |
6 | Release: 0.1 | |
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 | |
11 | URL: http://www.isection.co.uk/doku.php | |
12 | BuildRequires: sed >= 4.0 | |
13 | Requires: dokuwiki >= 20060309 | |
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 is designed for moving and renaming pages within your Wiki | |
22 | whilst maintaining the integrity of links to and from the page. | |
23 | ||
24 | In full you can: | |
25 | - Rename a page. | |
26 | - Move a page to an existing namspace. | |
27 | - Move a page to a new namespace. | |
28 | - A combination of the above. | |
29 | ||
fbff48d7 JB |
30 | %description -l pl.UTF-8 |
31 | Ta wtyczka służy do przesuwania i zmiany nazw stron wewnątrz Wiki z | |
32 | zachowaniem integralności odnośników z i do strony. | |
33 | ||
34 | W zupełności można: | |
35 | - usunąć stronę, | |
36 | - przenieść stronę do istniejącej przestrzeni nazw, | |
37 | - przenieść stronę do nowej przestrzeni nazw, | |
38 | - wykonać połączenie powyższych. | |
39 | ||
5fe0ee92 ER |
40 | %prep |
41 | %setup -q -n %{_plugin} | |
42 | ||
43 | # undos the source | |
44 | %{__sed} -i -e 's,\r$,,' admin.php | |
45 | ||
44522ebd ER |
46 | mv lang/cs/pagemove.txt{.txt,} |
47 | mv lang/es/pagemove.txt{.txt,} | |
48 | mv lang/pl/pagemove.txt{.txt,} | |
49 | ||
5fe0ee92 ER |
50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{_plugindir} | |
53 | cp -a . $RPM_BUILD_ROOT%{_plugindir} | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %dir %{_plugindir} | |
61 | %{_plugindir}/admin.php | |
62 | %dir %{_plugindir}/lang | |
63 | %{_plugindir}/lang/en | |
64 | %lang(cs) %{_plugindir}/lang/cs | |
65 | %lang(de) %{_plugindir}/lang/de | |
66 | %lang(es) %{_plugindir}/lang/es | |
67 | %lang(fr) %{_plugindir}/lang/fr | |
68 | %lang(lv) %{_plugindir}/lang/lv | |
69 | %lang(nl) %{_plugindir}/lang/nl | |
70 | %lang(pl) %{_plugindir}/lang/pl | |
71 | %lang(ru) %{_plugindir}/lang/ru | |
72 | %lang(sl) %{_plugindir}/lang/sl | |
fbff48d7 | 73 | %lang(zh_CN) %{_plugindir}/lang/zh |