]> git.pld-linux.org Git - packages/dokuwiki-tpl-monobook.git/blob - dokuwiki-tpl-monobook.spec
- up to 2009-01-26 rc
[packages/dokuwiki-tpl-monobook.git] / dokuwiki-tpl-monobook.spec
1 %define         _snap   2008-07-30
2 %define         _ver    %(echo %{_snap} | tr -d -)
3 %define         tpl     monobook
4 Summary:        Monobook template for DokuWiki
5 Summary(pl.UTF-8):      Szablon Monobook dla DokuWiki
6 Name:           dokuwiki-tpl-%{tpl}
7 Version:        %{_ver}
8 Release:        1
9 License:        GPL v2
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
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dokudir         /usr/share/dokuwiki
21 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
22
23 %description
24 Gives DokuWiki the Wikipedia/Mediawiki look and feel, as well as more
25 functionality. Includes discussions without using a plugin and the
26 navigation can be edited like a wiki page.
27
28 %description -l pl.UTF-8
29 Ten szablon nadaje DokuWiki wygląd i zachowanie Wikipedii/Mediawiki, a
30 także trochę większą funkcjonalność. Zawiera dyskusje bez użycia
31 osobnej wtyczki, a nawigację można modyfikować podobnie jak stronę
32 wiki.
33
34 %prep
35 %setup -q -n %{tpl}
36
37 rm -f LICENSE # GPL v2
38
39 cat > INSTALL <<'EOF'
40 To activate this template add the following to your conf/local.php file:
41 $conf['template'] = '%{tpl}';
42 EOF
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{tpldir}
47 cp -a . $RPM_BUILD_ROOT%{tpldir}
48 rm -f $RPM_BUILD_ROOT%{tpldir}/{INSTALL,README}
49
50 # find locales
51 sh %{SOURCE1} %{name}.lang
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files -f %{name}.lang
57 %defattr(644,root,root,755)
58 %doc INSTALL README
59 %dir %{tpldir}
60 %{tpldir}/*.php
61 %{tpldir}/style.ini
62 %{tpldir}/common
63 %{tpldir}/conf
64 %{tpldir}/dokuwiki
65 %{tpldir}/monobook
66 %{tpldir}/user
67 # TODO: lang dirs inside. check if these can be also rpm lang tagged
68 %{tpldir}/wikipedia
This page took 0.04016 seconds and 3 git commands to generate.