]> git.pld-linux.org Git - packages/dokuwiki-plugin-pagemoveng.git/blob - dokuwiki-plugin-pagemoveng.spec
5542cb99197e8bee220e97d40a99b65f97cb7223
[packages/dokuwiki-plugin-pagemoveng.git] / dokuwiki-plugin-pagemoveng.spec
1 %define         plugin          pagemove
2 Summary:        DokuWiki PageMove plugin
3 Summary(pl.UTF-8):      Wtyczka PageMove dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        0.10.0
6 Release:        1
7 License:        GPL v2
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
15 BuildRequires:  unzip
16 Requires:       dokuwiki >= 20060309
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dokuconf        /etc/webapps/dokuwiki
21 %define         dokudir         /usr/share/dokuwiki
22 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
23
24 %description
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.
27
28 In full you can:
29 - Rename a page.
30 - Move a page to an existing namspace.
31 - Move a page to a new namespace.
32 - A combination of the above.
33
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.
37
38 W zupełności można:
39 - usunąć stronę,
40 - przenieść stronę do istniejącej przestrzeni nazw,
41 - przenieść stronę do nowej przestrzeni nazw,
42 - wykonać połączenie powyższych.
43
44 %prep
45 %setup -q -n %{plugin}
46 # undos the source
47 %{__sed} -i -e 's,\r$,,' admin.php
48
49 %patch0 -p1
50 %patch1 -p1
51 mv lang/cs/pagemove.txt{.txt,}
52 mv lang/es/pagemove.txt{.txt,}
53 mv lang/pl/pagemove.txt{.txt,}
54
55 # cleanup backups after patching
56 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{plugindir}
61 cp -a . $RPM_BUILD_ROOT%{plugindir}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 # force css cache refresh
68 if [ -f %{dokuconf}/local.php ]; then
69         touch %{dokuconf}/local.php
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %dir %{plugindir}
75 %{plugindir}/admin.php
76 %dir %{plugindir}/lang
77 %{plugindir}/lang/en
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
This page took 0.049323 seconds and 2 git commands to generate.