]> git.pld-linux.org Git - packages/dokuwiki-tpl-sidebar.git/blob - dokuwiki-tpl-sidebar.spec
e20b3d50caebebb7979db38df6f84c44fcbe9254
[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:        1
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 URL:            http://wiki.jalakai.co.uk/dokuwiki/
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 Requires:       dokuwiki >= 20090126
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dokuconf        /etc/webapps/dokuwiki
21 %define         dokudir         /usr/share/dokuwiki
22 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
23
24 %description
25 Better navigation with DokuWiki. Features a navigation sidebar, a
26 tagline, highlighting the current page in the sidebar (unique
27 feature!), using the page heading as link text automatically. Retains
28 the default DokuWiki look and feel as much as possible.
29
30 %description -l pl.UTF-8
31 Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze
32 nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze (co
33 jest unikalną cechą!), przy automatycznym użyciu nagłówka strony jako
34 tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki na
35 ile to możliwe.
36
37 %prep
38 %setup -q -n %{tpl}
39 %patch0 -p1
40
41 cat > INSTALL <<'EOF'
42 To activate this template add the following to your conf/local.php file:
43 $conf['template']    = '%{tpl}';
44
45 If you want a tagline, you can define it as follows:
46 $conf['tagline']    = 'Your own tagline';
47 EOF
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{tpldir}
52 cp -a . $RPM_BUILD_ROOT%{tpldir}
53 rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 # force css cache refresh
60 if [ -f %{dokuconf}/local.php ]; then
61         touch %{dokuconf}/local.php
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc INSTALL
67 %{tpldir}
This page took 0.060716 seconds and 2 git commands to generate.