]>
Commit | Line | Data |
---|---|---|
e5446d7d | 1 | %define plugin indexmenu |
c66a304f JB |
2 | Summary: DokuWiki IndexMenu plugin |
3 | Summary(pl.UTF-8): Wtyczka IndexMenu dla DokuWiki | |
e5446d7d | 4 | Name: dokuwiki-plugin-%{plugin} |
a3ec8f10 | 5 | Version: 20090104 |
2d5641c9 | 6 | Release: 1 |
e5446d7d ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://samuele.netsons.org/dokuwiki/media/indexmenu.zip | |
a3ec8f10 JK |
10 | # Source0-md5: cf834e60e96f9ce76697989c899444c8 |
11 | # fixes wrong version number inside the ZIP file | |
12 | Patch0: %{name}-version.patch | |
e5446d7d | 13 | URL: http://wiki.splitbrain.org/plugin:indexmenu |
7c58830f | 14 | BuildRequires: unzip |
e5446d7d ER |
15 | Requires: dokuwiki >= 20061106 |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
85c38970 | 19 | %define dokuconf /etc/webapps/dokuwiki |
2d5641c9 ER |
20 | %define dokudir /usr/share/dokuwiki |
21 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
e5446d7d ER |
22 | |
23 | %description | |
c66a304f JB |
24 | This plugin allows you to insert a customizable index or a list of |
25 | pages starting from a specified namespace. It should be useful in | |
26 | DokuWiki sites where pages are organized by namespaces. | |
e5446d7d ER |
27 | |
28 | Main features are: | |
c66a304f JB |
29 | - Customizable JavaScript themes. |
30 | - Sortable by date, title and metadata infos. | |
6a7b22f1 | 31 | - AJAX support in order to speed it up in sites with many pages. |
e5446d7d ER |
32 | - Customizable context mouse menu for common page actions. |
33 | - Toc pages preview. | |
c66a304f JB |
34 | - Hide namespaces/pages according to your site ACLs settings |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Ta wtyczka pozwala na umieszczenie konfigurowalnego indeksu lub listy | |
38 | stron rozpoczynającej się od określonej przestrzeni nazw. Powinna być | |
39 | przydatna w serwisach DokuWiki, w których strony są zorganizowane w | |
40 | przestrzenie nazw. | |
41 | ||
42 | Główne możliwości obejmują: | |
43 | - konfigurowalne motywy w JavaScripcie, | |
44 | - sortowanie po dacie, tytule i metadanych, | |
6a7b22f1 | 45 | - obsługa AJAX-a w celu przyspieszenia serwisów z wieloma stronami, |
c66a304f JB |
46 | - konfigurowalne menu kontekstowe myszy z często wykonywanymi |
47 | czynnościami dla strony, | |
48 | - podgląd stron spisu treści, | |
49 | - ukrywanie przestrzeni nazw i stron zgodnie z ustawieniami ACL | |
50 | serwisu. | |
e5446d7d ER |
51 | |
52 | %prep | |
53 | %setup -q -n %{plugin} | |
a3ec8f10 | 54 | %patch0 -p1 |
e5446d7d ER |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
2d5641c9 ER |
58 | install -d $RPM_BUILD_ROOT%{plugindir} |
59 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
60 | rm -f $RPM_BUILD_ROOT%{plugindir}/{CREDITS,changelog} | |
e5446d7d ER |
61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
85c38970 ER |
65 | %post |
66 | # force css cache refresh | |
67 | if [ -f %{dokuconf}/local.php ]; then | |
68 | touch %{dokuconf}/local.php | |
69 | fi | |
70 | ||
e5446d7d ER |
71 | %files |
72 | %defattr(644,root,root,755) | |
73 | %doc CREDITS changelog | |
2d5641c9 | 74 | %{plugindir} |