]> git.pld-linux.org Git - packages/dokuwiki-tpl-arctic.git/blob - dokuwiki-tpl-arctic.spec
- unified preamble in %changelog
[packages/dokuwiki-tpl-arctic.git] / dokuwiki-tpl-arctic.spec
1 %define         snap    2009-03-25
2 %define         ver     %(echo %{snap} | tr -d -)
3 %define         tpl     arctic
4 Summary:        Arctic template for DokuWiki
5 Summary(pl.UTF-8):      Szablon Arctic dla Dokuwiki
6 Name:           dokuwiki-tpl-%{tpl}
7 Version:        %{ver}
8 Release:        1
9 License:        GPL v2
10 Group:          Applications/WWW
11 Source0:        http://www.chimeric.de/_media/projects/dokuwiki/template/arctic/download/template-arctic-%{snap}.tgz
12 # Source0-md5:  09debac544fd40d8f95a721ef724f20f
13 Source1:        dokuwiki-find-lang.sh
14 URL:            http://www.chimeric.de/projects/dokuwiki/template/arctic
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 Requires:       dokuwiki >= 20080505
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 Yet Another Sidebar Template. ;-) Features: sidebar
26 (left/right/both/none), definable User-/Group-/Namespace-Sidebars,
27 fully configurable via configuration manager, TOC inside sidebar, user
28 defined sidebar actions.
29
30 %prep
31 %setup -q -n %{tpl}
32 cat > INSTALL <<'EOF'
33 To activate this template add the following to your conf/local.php file:
34 $conf['template'] = '%{tpl}';
35 EOF
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{tpldir}
40 cp -a . $RPM_BUILD_ROOT%{tpldir}
41 rm -f $RPM_BUILD_ROOT%{tpldir}/{COPYING,VERSION,INSTALL,README,style.ini.dist}
42
43 # find locales
44 sh %{SOURCE1} %{name}.lang
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 # force css cache refresh
51 if [ -f %{dokuconf}/local.php ]; then
52         touch %{dokuconf}/local.php
53 fi
54
55 %files -f %{name}.lang
56 %defattr(644,root,root,755)
57 %doc INSTALL README VERSION
58 %dir %{tpldir}
59 %{tpldir}/*.php
60 %{tpldir}/*.css
61 %{tpldir}/*.html
62 %{tpldir}/script.js
63 %{tpldir}/style.ini
64 %{tpldir}/conf
65 %{tpldir}/images
This page took 0.05961 seconds and 3 git commands to generate.