]>
Commit | Line | Data |
---|---|---|
bab45cd2 | 1 | %define _snap 01022007 |
1148f21d | 2 | %define _ver %(echo %{_snap} | sed -e 's,\\(..\\)\\(..\\)\\(....\\),\\3\\1\\2,') |
bab45cd2 ER |
3 | Summary: Multitemplate for DokuWiki |
4 | Name: dokuwiki-tpl-multitemplate | |
5 | Version: %{_ver} | |
5ee0776e | 6 | Release: 0.3 |
bab45cd2 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://tatewake.com/wiki/_media/projects:multitemplate-%{_snap}.zip | |
10 | # Source0-md5: b1d36f8b69439c8e0c67703fa0425238 | |
11 | URL: http://tatewake.com/wiki/projects:multitemplate_for_dokuwiki | |
12 | Requires: dokuwiki | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _dokudir /usr/share/dokuwiki | |
17 | %define _tpldir %{_dokudir}/lib/tpl/%{_tpl} | |
18 | %define _tpl multitemplate | |
19 | ||
20 | %description | |
21 | This template allows you to use any templates you wish for any | |
22 | namespace (or page) you wish. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{_tpl} | |
26 | ||
5ee0776e ER |
27 | cat > INSTALL <<'EOF' |
28 | To activate this template add something like this to your conf/local.php file: | |
29 | ||
30 | $multitemplate['playground'] = 'default'; | |
31 | $multitemplate[''] = 'monobook'; | |
32 | ||
33 | and | |
34 | $conf['template'] = 'multitemplate'; | |
35 | ||
36 | EOF | |
37 | ||
bab45cd2 ER |
38 | %install |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{_tpldir} | |
41 | cp -a . $RPM_BUILD_ROOT%{_tpldir} | |
5ee0776e | 42 | rm -f $RPM_BUILD_ROOT%{_tpldir}/INSTALL |
bab45cd2 ER |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
5ee0776e | 49 | %doc INSTALL |
bab45cd2 | 50 | %{_tpldir} |