]> git.pld-linux.org Git - packages/dokuwiki-plugin-pagemove.git/blob - dokuwiki-plugin-pagemove.spec
- update to 20110811
[packages/dokuwiki-plugin-pagemove.git] / dokuwiki-plugin-pagemove.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:        20110811
6 Release:        1
7 License:        GPL v2
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
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 -qc
46 mv *-DokuWiki-Pagemove-Plugin-*/* .
47 rm -f *-DokuWiki-Pagemove-Plugin-*/.git*
48 %undos -f php
49
50 %patch0 -p1
51 %patch1 -p1
52 mv lang/cs/pagemove.txt{.txt,}
53 mv lang/es/pagemove.txt{.txt,}
54 mv lang/pl/pagemove.txt{.txt,}
55
56 # cleanup backups after patching
57 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{plugindir}
62 cp -a . $RPM_BUILD_ROOT%{plugindir}
63
64 %{__rm} $RPM_BUILD_ROOT%{plugindir}/README
65 %{__rm} -r $RPM_BUILD_ROOT%{plugindir}/_test
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc README
73 %dir %{plugindir}
74 %{plugindir}/*.php
75 %{plugindir}/*.txt
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.049503 seconds and 3 git commands to generate.