1 %define snap 2008-07-30
2 %define ver %(echo %{snap} | tr -d -)
4 Summary: Monobook template for DokuWiki
5 Summary(pl.UTF-8): Szablon Monobook dla DokuWiki
6 Name: dokuwiki-tpl-%{tpl}
10 Group: Applications/WWW
11 Source0: http://tatewake.com/wiki/_media/projects:monobook-%{snap}.tar.bz2
12 # Source0-md5: 35608ad64b14c0ac2f61c0477609e3ab
13 Source1: dokuwiki-find-lang.sh
14 URL: http://tatewake.com/wiki/projects:monobook_for_dokuwiki
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires: dokuwiki >= 20080505
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dokuconf /etc/webapps/dokuwiki
21 %define dokudir /usr/share/dokuwiki
22 %define tpldir %{dokudir}/lib/tpl/%{tpl}
25 Gives DokuWiki the Wikipedia/Mediawiki look and feel, as well as more
26 functionality. Includes discussions without using a plugin and the
27 navigation can be edited like a wiki page.
29 %description -l pl.UTF-8
30 Ten szablon nadaje DokuWiki wygląd i zachowanie Wikipedii/Mediawiki, a
31 także trochę większą funkcjonalność. Zawiera dyskusje bez użycia
32 osobnej wtyczki, a nawigację można modyfikować podobnie jak stronę
38 rm -f LICENSE # GPL v2
41 To activate this template add the following to your conf/local.php file:
42 $conf['template'] = '%{tpl}';
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{tpldir}
48 cp -a . $RPM_BUILD_ROOT%{tpldir}
49 rm -f $RPM_BUILD_ROOT%{tpldir}/{INSTALL,README}
52 sh %{SOURCE1} %{name}.lang
55 rm -rf $RPM_BUILD_ROOT
58 # force css cache refresh
59 if [ -f %{dokuconf}/local.php ]; then
60 touch %{dokuconf}/local.php
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
74 # TODO: lang dirs inside. check if these can be also rpm lang tagged