]>
Commit | Line | Data |
---|---|---|
e60f157a ER |
1 | %define _snap 2007-03-12 |
2 | %define _ver %(echo %{_snap} | tr -d -) | |
d50b6570 | 3 | %define _tpl sidebar |
e60f157a | 4 | Summary: Sidebar navigation with DokuWiki |
42b07ca0 | 5 | Summary(pl.UTF-8): Nawigacja po sidebarze przy użyciu DokuWiki |
e60f157a ER |
6 | Name: dokuwiki-tpl-sidebar |
7 | Version: %{_ver} | |
136fd9c6 | 8 | Release: 1 |
e60f157a ER |
9 | License: GPL |
10 | Group: Applications/WWW | |
11 | Source0: http://www.jandecaluwe.com/testwiki/lib/exe/fetch.php/navigation:sidebar-%{_snap}.tar.gz | |
12 | # Source0-md5: 297db12e6a4fd2a745f4eb20ced0b09b | |
13 | URL: http://www.jandecaluwe.com/testwiki/doku.php/navigation:intro | |
14 | BuildRequires: rpmbuild(macros) >= 1.268 | |
15 | Requires: dokuwiki >= 20061106 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _dokudir /usr/share/dokuwiki | |
42b07ca0 | 20 | %define _tpldir %{_dokudir}/lib/tpl/%{_tpl} |
e60f157a ER |
21 | |
22 | %description | |
23 | Better navigation with DokuWiki. Features a navigation sidebar, a | |
24 | tagline, highlighting the current page in the sidebar (unique | |
25 | feature!), using the page heading as link text automatically. Retains | |
42b07ca0 JB |
26 | the default DokuWiki look and feel as much as possible. |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze | |
30 | nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze | |
31 | (co jest unikalną cechą!), przy automatycznym użyciu nagłówka strony | |
32 | jako tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki | |
33 | na ile to możliwe. | |
e60f157a ER |
34 | |
35 | %prep | |
36 | %setup -q -n %{_tpl} | |
37 | ||
38 | cat > INSTALL <<'EOF' | |
d50b6570 ER |
39 | To activate this template add the following to your conf/local.php file: |
40 | $conf['template'] = '%{_tpl}'; | |
e60f157a | 41 | |
d50b6570 | 42 | If you want a tagline, you can define it as follows: |
e60f157a ER |
43 | $conf['tagline'] = 'Your own tagline'; |
44 | EOF | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{_tpldir} | |
49 | cp -a . $RPM_BUILD_ROOT%{_tpldir} | |
50 | rm -f $RPM_BUILD_ROOT%{_tpldir}/INSTALL | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc INSTALL | |
58 | %{_tpldir} |