1 %define plugin pagemoveng
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: https://github.com/dokufreaks/plugin-%{plugin}/tarball/master#/%{plugin}.tgz
10 # Source0-md5: 9355168bf7f2526dbdce0a33fc3ff2a2
11 URL: https://github.com/dokufreaks/plugin-pagemoveng
12 BuildRequires: sed >= 4.0
13 Requires: dokuwiki >= 20060309
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokuconf /etc/webapps/dokuwiki
18 %define dokudir /usr/share/dokuwiki
19 %define plugindir %{dokudir}/lib/plugins/%{plugin}
20 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
23 This plugin is designed for moving and renaming pages within your Wiki
24 whilst maintaining the integrity of links to and from the page.
28 - Move a page to an existing namspace.
29 - Move a page to a new namespace.
30 - A combination of the above.
32 %description -l pl.UTF-8
33 Ta wtyczka służy do przesuwania i zmiany nazw stron wewnątrz Wiki z
34 zachowaniem integralności odnośników z i do strony.
38 - przenieść stronę do istniejącej przestrzeni nazw,
39 - przenieść stronę do nowej przestrzeni nazw,
40 - wykonać połączenie powyższych.
46 %{__rm} *-%{plugin}-*/.gitignore
48 version=$(awk '/^date/{print $2}' plugin.info.txt)
49 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
50 : %%{version} mismatch
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{plugindir}
57 cp -a . $RPM_BUILD_ROOT%{plugindir}
59 %find_lang %{name}.lang
62 rm -rf $RPM_BUILD_ROOT
65 # force css cache refresh
66 if [ -f %{dokuconf}/local.php ]; then
67 touch %{dokuconf}/local.php
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)