]> git.pld-linux.org Git - packages/dokuwiki-plugin-pagemoveng.git/blob - dokuwiki-plugin-pagemoveng.spec
a01522e1397fa0e8322f9ef8fa2fffa2d0a64107
[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.9.15a
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 # Source0Download:      http://www.isection.co.uk/lib/exe/fetch.php?media=pagemove_20070722.zip
10 Source0:        pagemove_20070722.zip
11 # Source0-md5:  f2cc2a57d40b877a335b52009e4cc072
12 Patch0:         %{name}-redirectlinks.patch
13 Patch1:         %{name}-selflinks.patch
14 URL:            http://www.isection.co.uk/doku.php
15 BuildRequires:  sed >= 4.0
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 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{plugindir}
58 cp -a . $RPM_BUILD_ROOT%{plugindir}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 # force css cache refresh
65 if [ -f %{dokuconf}/local.php ]; then
66         touch %{dokuconf}/local.php
67 fi
68
69 %files
70 %defattr(644,root,root,755)
71 %dir %{plugindir}
72 %{plugindir}/admin.php
73 %dir %{plugindir}/lang
74 %{plugindir}/lang/en
75 %lang(cs) %{plugindir}/lang/cs
76 %lang(de) %{plugindir}/lang/de
77 %lang(es) %{plugindir}/lang/es
78 %lang(fr) %{plugindir}/lang/fr
79 %lang(lv) %{plugindir}/lang/lv
80 %lang(nl) %{plugindir}/lang/nl
81 %lang(pl) %{plugindir}/lang/pl
82 %lang(ru) %{plugindir}/lang/ru
83 %lang(sl) %{plugindir}/lang/sl
84 %lang(zh_CN) %{plugindir}/lang/zh
This page took 0.065871 seconds and 3 git commands to generate.