]>
Commit | Line | Data |
---|---|---|
064058eb | 1 | %define plugin fullindex |
09f7f31e JB |
2 | Summary: DokuWiki Full Index plugin |
3 | Summary(pl.UTF-8): Wtyczka Full Index (pełnego indeksu) dla DokuWiki | |
064058eb | 4 | Name: dokuwiki-plugin-%{plugin} |
3def4e81 | 5 | Version: 1.0 |
064058eb | 6 | Release: 1 |
3def4e81 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://mtbrains.home.comcast.net/~mtbrains/products/DWAdds/fullindex.zip | |
10 | # Source0-md5: 394239765433d4a418e2a8e21d73d19d | |
11 | URL: http://mtbrains.home.comcast.net/~mtbrains/products/DWAdds/index.html | |
12 | Requires: dokuwiki >= 20061106 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
1dd74c55 | 16 | %define dokuconf /etc/webapps/dokuwiki |
064058eb ER |
17 | %define dokudir /usr/share/dokuwiki |
18 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
3def4e81 ER |
19 | |
20 | %description | |
21 | A replacement for the built in index action of DokuWiki. | |
22 | - Assign a unique page title and number to each page and namespace. | |
23 | - Sort pages and namespaces by assigned numbers. | |
24 | - Shows all pages in expanded view (may be too much for large wikis). | |
09f7f31e JB |
25 | - Includes a 'level' navigation to show or hide namespaces up to a certain |
26 | level. | |
27 | - Graphics in front of the namespaces are clickable to collapse/expand | |
28 | namespaces. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Zamiennik dla wbudowanego indeksu z DokuWiki: | |
32 | - przyporządkowuje unikalny tytuł i numer strony do każdej strony i | |
33 | przestrzeni nazw; | |
34 | - sortuje strony i przestrzenie nazw po przypisanych numerach; | |
35 | - pokazuje wszystkie strony w rozwiniętym widoku (może być zbyt duży | |
36 | dla wielkich wiki); | |
37 | - zawiera nawigację "poziomową" pokazującą lub ukrywającą przestrzenie | |
38 | nazw do określonego poziomu; | |
39 | - obrazki przed przestrzeniami nazw służą do zwijania i rozwijania | |
40 | przestrzeni nazw. | |
3def4e81 ER |
41 | |
42 | %prep | |
43 | %setup -qc | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
064058eb ER |
47 | cd %{plugin} |
48 | install -d $RPM_BUILD_ROOT%{plugindir} | |
49 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
3def4e81 ER |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
1dd74c55 ER |
54 | %post |
55 | # force css cache refresh | |
56 | if [ -f %{dokuconf}/local.php ]; then | |
57 | touch %{dokuconf}/local.php | |
58 | fi | |
59 | ||
3def4e81 ER |
60 | %files |
61 | %defattr(644,root,root,755) | |
064058eb | 62 | %{plugindir} |