]> git.pld-linux.org Git - SPECS.git/blob - dokuwiki-tpl-sidebar.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.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:        20111110
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 Patch6:         %{name}-20111110.patch
18 URL:            http://www.dokuwiki.org/template:sidebar
19 BuildRequires:  rpmbuild(macros) >= 1.268
20 BuildRequires:  unzip
21 Requires:       dokuwiki >= 20090126
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         dokuconf        /etc/webapps/dokuwiki
26 %define         dokudir         /usr/share/dokuwiki
27 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
28
29 %description
30 Better navigation with DokuWiki. Features a navigation sidebar, a
31 tagline, highlighting the current page in the sidebar (unique
32 feature!), using the page heading as link text automatically. Retains
33 the default DokuWiki look and feel as much as possible.
34
35 %description -l pl.UTF-8
36 Lepsza nawigacja przy użyciu DokuWiki. Opiera się na sidebarze
37 nawigacyjnym, pasku podświetlającym aktualną stronę na sidebarze (co
38 jest unikalną cechą!), przy automatycznym użyciu nagłówka strony jako
39 tekstu odnośnika. Zachowuje domyślny wygląd i zachowanie DokuWiki na
40 ile to możliwe.
41
42 %prep
43 %setup -q -n %{tpl}
44 %patch3 -p4
45 %patch4 -p1
46 %patch5 -p6
47 %patch6 -p4
48 %patch0 -p1
49 %patch1 -p1
50 %patch2 -p1
51
52 cat > INSTALL <<'EOF'
53 To activate this template add the following to your conf/local.php file:
54
55 $conf['template']    = '%{tpl}';
56
57 If you want a tagline, you can define it as follows:
58 $conf['tagline']    = 'Your own tagline';
59 EOF
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{tpldir}
64 cp -a . $RPM_BUILD_ROOT%{tpldir}
65 rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
66
67 while read file; do
68         ln -sf ../../default/$file $RPM_BUILD_ROOT%{tpldir}/$file
69 done <<EOF
70 images/UWEB.png
71 images/apple-touch-icon.png
72 images/button-cc.gif
73 images/button-rss.png
74 images/link_icon.gif
75 images/mail_icon.gif
76 images/resizecol.png
77 images/tocdot2.gif
78 images/windows.gif
79 images/button-pld.png
80 EOF
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 # force css cache refresh
87 if [ -f %{dokuconf}/local.php ]; then
88         touch %{dokuconf}/local.php
89 fi
90
91 %files
92 %defattr(644,root,root,755)
93 %doc INSTALL
94 %{tpldir}
This page took 0.187498 seconds and 3 git commands to generate.