]>
Commit | Line | Data |
---|---|---|
38706a57 ER |
1 | %define snap 2009-01-26 |
2 | %define ver %(echo %{snap} | tr -d -) | |
f4ddca9e | 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 | 6 | Name: dokuwiki-tpl-sidebar |
38706a57 | 7 | Version: %{ver} |
381f50d9 | 8 | Release: 2 |
e60f157a ER |
9 | License: GPL |
10 | Group: Applications/WWW | |
38706a57 ER |
11 | Source0: http://dokuwiki.jalakai.co.uk/template-sidebar-rc%{snap}.zip |
12 | # Source0-md5: 7a36b63e86d00f72eecae2ba80334fdd | |
5447f30c | 13 | Patch0: backlink-rightside.patch |
381f50d9 ER |
14 | Patch1: more-buttons.patch |
15 | URL: http://www.dokuwiki.org/template:sidebar | |
e60f157a | 16 | BuildRequires: rpmbuild(macros) >= 1.268 |
38706a57 | 17 | Requires: dokuwiki >= 20090126 |
e60f157a ER |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
53465498 | 21 | %define dokuconf /etc/webapps/dokuwiki |
f4ddca9e ER |
22 | %define dokudir /usr/share/dokuwiki |
23 | %define tpldir %{dokudir}/lib/tpl/%{tpl} | |
e60f157a ER |
24 | |
25 | %description | |
26 | Better navigation with DokuWiki. Features a navigation sidebar, a | |
27 | tagline, highlighting the current page in the sidebar (unique | |
28 | feature!), using the page heading as link text automatically. Retains | |
42b07ca0 JB |
29 | the default DokuWiki look and feel as much as possible. |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze | |
38706a57 ER |
33 | nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze (co |
34 | jest unikalną cechą!), przy automatycznym użyciu nagłówka strony jako | |
35 | tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki na | |
36 | ile to możliwe. | |
e60f157a ER |
37 | |
38 | %prep | |
f4ddca9e | 39 | %setup -q -n %{tpl} |
5447f30c | 40 | %patch0 -p1 |
381f50d9 | 41 | %patch1 -p1 |
e60f157a ER |
42 | |
43 | cat > INSTALL <<'EOF' | |
d50b6570 | 44 | To activate this template add the following to your conf/local.php file: |
f4ddca9e | 45 | $conf['template'] = '%{tpl}'; |
e60f157a | 46 | |
d50b6570 | 47 | If you want a tagline, you can define it as follows: |
e60f157a ER |
48 | $conf['tagline'] = 'Your own tagline'; |
49 | EOF | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
f4ddca9e ER |
53 | install -d $RPM_BUILD_ROOT%{tpldir} |
54 | cp -a . $RPM_BUILD_ROOT%{tpldir} | |
55 | rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL | |
e60f157a ER |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
c36d6202 | 60 | %post |
e08ea0bf | 61 | # force css cache refresh |
53465498 ER |
62 | if [ -f %{dokuconf}/local.php ]; then |
63 | touch %{dokuconf}/local.php | |
c36d6202 ER |
64 | fi |
65 | ||
e60f157a ER |
66 | %files |
67 | %defattr(644,root,root,755) | |
68 | %doc INSTALL | |
f4ddca9e | 69 | %{tpldir} |