1 %define plugin pagemove
2 Summary: DokuWiki PageMove plugin
3 Summary(pl.UTF-8): Wtyczka PageMove dla DokuWiki
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://acodeas.de/plugins/Version%{version}-pagemove_20100218.zip
10 # Source0-md5: 48d2d8dde2794a9a5af5344623d608e8
11 Patch0: %{name}-redirectlinks.patch
12 Patch1: %{name}-selflinks.patch
13 URL: http://www.isection.co.uk/doku.php
14 BuildRequires: sed >= 4.0
16 Requires: dokuwiki >= 20060309
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dokuconf /etc/webapps/dokuwiki
21 %define dokudir /usr/share/dokuwiki
22 %define plugindir %{dokudir}/lib/plugins/%{plugin}
25 This plugin is designed for moving and renaming pages within your Wiki
26 whilst maintaining the integrity of links to and from the page.
30 - Move a page to an existing namspace.
31 - Move a page to a new namespace.
32 - A combination of the above.
34 %description -l pl.UTF-8
35 Ta wtyczka służy do przesuwania i zmiany nazw stron wewnątrz Wiki z
36 zachowaniem integralności odnośników z i do strony.
40 - przenieść stronę do istniejącej przestrzeni nazw,
41 - przenieść stronę do nowej przestrzeni nazw,
42 - wykonać połączenie powyższych.
45 %setup -q -n %{plugin}
47 %{__sed} -i -e 's,\r$,,' admin.php
51 mv lang/cs/pagemove.txt{.txt,}
52 mv lang/es/pagemove.txt{.txt,}
53 mv lang/pl/pagemove.txt{.txt,}
55 # cleanup backups after patching
56 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{plugindir}
61 cp -a . $RPM_BUILD_ROOT%{plugindir}
64 rm -rf $RPM_BUILD_ROOT
67 # force css cache refresh
68 if [ -f %{dokuconf}/local.php ]; then
69 touch %{dokuconf}/local.php
73 %defattr(644,root,root,755)
75 %{plugindir}/admin.php
76 %dir %{plugindir}/lang
78 %lang(cs) %{plugindir}/lang/cs
79 %lang(de) %{plugindir}/lang/de
80 %lang(es) %{plugindir}/lang/es
81 %lang(fr) %{plugindir}/lang/fr
82 %lang(lv) %{plugindir}/lang/lv
83 %lang(nl) %{plugindir}/lang/nl
84 %lang(pl) %{plugindir}/lang/pl
85 %lang(ru) %{plugindir}/lang/ru
86 %lang(sl) %{plugindir}/lang/sl
87 %lang(zh_CN) %{plugindir}/lang/zh