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://github.com/desolat/DokuWiki-Pagemove-Plugin/tarball/master/%{plugin}-%{version}.tgz
10 # Source0-md5: eff88e845739a9052ac9620d8d2a5056
11 Patch0: %{name}-redirectlinks.patch
12 Patch1: %{name}-selflinks.patch
13 URL: http://www.dokuwiki.org/plugin:pagemove
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.
46 mv *-DokuWiki-Pagemove-Plugin-*/* .
47 rm -f *-DokuWiki-Pagemove-Plugin-*/.git*
52 mv lang/cs/pagemove.txt{.txt,}
53 mv lang/es/pagemove.txt{.txt,}
54 mv lang/pl/pagemove.txt{.txt,}
56 # cleanup backups after patching
57 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{plugindir}
62 cp -a . $RPM_BUILD_ROOT%{plugindir}
64 %{__rm} $RPM_BUILD_ROOT%{plugindir}/README
65 %{__rm} -r $RPM_BUILD_ROOT%{plugindir}/_test
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
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