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