]> git.pld-linux.org Git - packages/dokuwiki-tpl-multitemplate.git/blob - dokuwiki-tpl-multitemplate.spec
- pl
[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 Summary:        Multitemplate for DokuWiki
4 Summary(pl.UTF-8):      Wielokrotne szablony dla DokuWiki
5 Name:           dokuwiki-tpl-multitemplate
6 Version:        %{_ver}
7 Release:        0.3
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://tatewake.com/wiki/_media/projects:multitemplate-%{_snap}.zip
11 # Source0-md5:  b1d36f8b69439c8e0c67703fa0425238
12 URL:            http://tatewake.com/wiki/projects:multitemplate_for_dokuwiki
13 Requires:       dokuwiki
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _dokudir        /usr/share/dokuwiki
18 %define         _tpl            multitemplate
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 $multitemplate['playground'] = 'default';
36 $multitemplate[''] = 'monobook';
37
38 and
39 $conf['template'] = 'multitemplate';
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.117888 seconds and 3 git commands to generate.