]> git.pld-linux.org Git - packages/dokuwiki-tpl-sidebar.git/blob - dokuwiki-tpl-sidebar.spec
- apply dw-20101007.patch
[packages/dokuwiki-tpl-sidebar.git] / dokuwiki-tpl-sidebar.spec
1 %define         tpl     sidebar
2 Summary:        Sidebar navigation with DokuWiki
3 Summary(pl.UTF-8):      Nawigacja po sidebarze przy użyciu DokuWiki
4 Name:           dokuwiki-tpl-sidebar
5 Version:        20110525
6 Release:        1
7 License:        GPL
8 Group:          Applications/WWW
9 Source0:        http://dokuwiki.jalakai.co.uk/template-sidebar-rc2009-01-26.zip
10 # Source0-md5:  7a36b63e86d00f72eecae2ba80334fdd
11 Patch0:         backlink-rightside.patch
12 Patch1:         more-buttons.patch
13 Patch2:         acl-check.patch
14 Patch3:         %{name}-20101007.patch
15 Patch4:         dw-20101007.patch
16 Patch5:         %{name}-20110525.patch
17 URL:            http://www.dokuwiki.org/template:sidebar
18 BuildRequires:  rpmbuild(macros) >= 1.268
19 BuildRequires:  unzip
20 Requires:       dokuwiki >= 20090126
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         dokuconf        /etc/webapps/dokuwiki
25 %define         dokudir         /usr/share/dokuwiki
26 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
27
28 %description
29 Better navigation with DokuWiki. Features a navigation sidebar, a
30 tagline, highlighting the current page in the sidebar (unique
31 feature!), using the page heading as link text automatically. Retains
32 the default DokuWiki look and feel as much as possible.
33
34 %description -l pl.UTF-8
35 Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze
36 nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze (co
37 jest unikalną cechą!), przy automatycznym użyciu nagłówka strony jako
38 tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki na
39 ile to możliwe.
40
41 %prep
42 %setup -q -n %{tpl}
43 %patch3 -p4
44 %patch4 -p1
45 %patch5 -p6
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49
50 cat > INSTALL <<'EOF'
51 To activate this template add the following to your conf/local.php file:
52
53 $conf['template']    = '%{tpl}';
54
55 If you want a tagline, you can define it as follows:
56 $conf['tagline']    = 'Your own tagline';
57 EOF
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{tpldir}
62 cp -a . $RPM_BUILD_ROOT%{tpldir}
63 rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 # force css cache refresh
70 if [ -f %{dokuconf}/local.php ]; then
71         touch %{dokuconf}/local.php
72 fi
73
74 %files
75 %defattr(644,root,root,755)
76 %doc INSTALL
77 %{tpldir}
This page took 0.060705 seconds and 3 git commands to generate.