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