]>
Commit | Line | Data |
---|---|---|
36b5ecb1 | 1 | %define plugin pagemove |
fbff48d7 JB |
2 | Summary: DokuWiki PageMove plugin |
3 | Summary(pl.UTF-8): Wtyczka PageMove dla DokuWiki | |
36b5ecb1 | 4 | Name: dokuwiki-plugin-%{plugin} |
876cb737 | 5 | Version: 20110811 |
36b5ecb1 | 6 | Release: 1 |
5fe0ee92 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
876cb737 ER |
9 | Source0: http://github.com/desolat/DokuWiki-Pagemove-Plugin/tarball/master/%{plugin}-%{version}.tgz |
10 | # Source0-md5: eff88e845739a9052ac9620d8d2a5056 | |
9781783a | 11 | Patch0: %{name}-redirectlinks.patch |
4e6df534 | 12 | Patch1: %{name}-selflinks.patch |
876cb737 | 13 | URL: http://www.dokuwiki.org/plugin:pagemove |
5fe0ee92 | 14 | BuildRequires: sed >= 4.0 |
637315e9 | 15 | BuildRequires: unzip |
5fe0ee92 ER |
16 | Requires: dokuwiki >= 20060309 |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
37005855 | 20 | %define dokuconf /etc/webapps/dokuwiki |
36b5ecb1 ER |
21 | %define dokudir /usr/share/dokuwiki |
22 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
5fe0ee92 ER |
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 | ||
fbff48d7 JB |
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 | ||
5fe0ee92 | 44 | %prep |
876cb737 ER |
45 | %setup -qc |
46 | mv *-DokuWiki-Pagemove-Plugin-*/* . | |
47 | rm -f *-DokuWiki-Pagemove-Plugin-*/.git* | |
48 | %undos -f php | |
5fe0ee92 | 49 | |
9781783a | 50 | %patch0 -p1 |
4e6df534 | 51 | %patch1 -p1 |
44522ebd ER |
52 | mv lang/cs/pagemove.txt{.txt,} |
53 | mv lang/es/pagemove.txt{.txt,} | |
54 | mv lang/pl/pagemove.txt{.txt,} | |
55 | ||
196e1755 ER |
56 | # cleanup backups after patching |
57 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
58 | ||
5fe0ee92 ER |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
36b5ecb1 ER |
61 | install -d $RPM_BUILD_ROOT%{plugindir} |
62 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
5fe0ee92 | 63 | |
876cb737 ER |
64 | %{__rm} $RPM_BUILD_ROOT%{plugindir}/README |
65 | %{__rm} -r $RPM_BUILD_ROOT%{plugindir}/_test | |
66 | ||
5fe0ee92 ER |
67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
876cb737 | 72 | %doc README |
36b5ecb1 | 73 | %dir %{plugindir} |
876cb737 ER |
74 | %{plugindir}/*.php |
75 | %{plugindir}/*.txt | |
36b5ecb1 ER |
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 |