]> git.pld-linux.org Git - packages/dokuwiki-tpl-sidebar.git/blob - dokuwiki-tpl-sidebar.spec
- too much copy paste; spaces
[packages/dokuwiki-tpl-sidebar.git] / dokuwiki-tpl-sidebar.spec
1 %define         snap    2009-01-26
2 %define         ver     %(echo %{snap} | tr -d -)
3 %define         tpl     sidebar
4 Summary:        Sidebar navigation with DokuWiki
5 Summary(pl.UTF-8):      Nawigacja po sidebarze przy użyciu DokuWiki
6 Name:           dokuwiki-tpl-sidebar
7 Version:        %{ver}
8 Release:        2
9 License:        GPL
10 Group:          Applications/WWW
11 Source0:        http://dokuwiki.jalakai.co.uk/template-sidebar-rc%{snap}.zip
12 # Source0-md5:  7a36b63e86d00f72eecae2ba80334fdd
13 Patch0:         backlink-rightside.patch
14 Patch1:         more-buttons.patch
15 URL:            http://www.dokuwiki.org/template:sidebar
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 Requires:       dokuwiki >= 20090126
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         dokuconf        /etc/webapps/dokuwiki
22 %define         dokudir         /usr/share/dokuwiki
23 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
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
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
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.
37
38 %prep
39 %setup -q -n %{tpl}
40 %patch0 -p1
41 %patch1 -p1
42
43 cat > INSTALL <<'EOF'
44 To activate this template add the following to your conf/local.php file:
45 $conf['template']    = '%{tpl}';
46
47 If you want a tagline, you can define it as follows:
48 $conf['tagline']    = 'Your own tagline';
49 EOF
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{tpldir}
54 cp -a . $RPM_BUILD_ROOT%{tpldir}
55 rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 # force css cache refresh
62 if [ -f %{dokuconf}/local.php ]; then
63         touch %{dokuconf}/local.php
64 fi
65
66 %files
67 %defattr(644,root,root,755)
68 %doc INSTALL
69 %{tpldir}
This page took 0.064412 seconds and 3 git commands to generate.