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