]> git.pld-linux.org Git - packages/dokuwiki-tpl-multitemplate.git/blob - dokuwiki-tpl-multitemplate.spec
- unify
[packages/dokuwiki-tpl-multitemplate.git] / dokuwiki-tpl-multitemplate.spec
1 %define         _snap   01022007
2 %define         _ver    %(echo %{_snap} | sed -e 's,\\(..\\)\\(..\\)\\(....\\),\\3\\1\\2,')
3 %define         tpl     multitemplate
4 Summary:        Multitemplate for DokuWiki
5 Summary(pl.UTF-8):      Wielokrotne szablony dla DokuWiki
6 Name:           dokuwiki-tpl-multitemplate
7 Version:        %{_ver}
8 Release:        1
9 License:        GPL v2
10 Group:          Applications/WWW
11 Source0:        http://tatewake.com/wiki/_media/projects:multitemplate-%{_snap}.zip
12 # Source0-md5:  b1d36f8b69439c8e0c67703fa0425238
13 URL:            http://tatewake.com/wiki/projects:multitemplate_for_dokuwiki
14 Requires:       dokuwiki
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         dokudir         /usr/share/dokuwiki
19 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
20
21 %description
22 This template allows you to use any templates you wish for any
23 namespace (or page) you wish.
24
25 %description -l pl.UTF-8
26 Ten szablon pozwala na używanie dowolnie wybranych szablonów dla
27 dowolnej przestrzeni nazw (lub strony).
28
29 %prep
30 %setup -q -n %{tpl}
31
32 cat > INSTALL <<'EOF'
33 To activate this template add something like this to your conf/local.php file:
34
35 $conf['template'] = '%{tpl}';
36
37 and configure defaults:
38 $multitemplate['playground'] = 'default';
39 $multitemplate[''] = 'monobook';
40
41 EOF
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{tpldir}
46 cp -a . $RPM_BUILD_ROOT%{tpldir}
47 rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc INSTALL
55 %{tpldir}
This page took 0.059142 seconds and 3 git commands to generate.