]> git.pld-linux.org Git - packages/dokuwiki-tpl-monobook.git/blob - dokuwiki-tpl-monobook.spec
- add ca-va -> ca_VA
[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         dokuconf        /etc/webapps/dokuwiki
21 %define         dokudir         /usr/share/dokuwiki
22 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
23
24 %description
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.
28
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ę
33 wiki.
34
35 %prep
36 %setup -q -n %{tpl}
37
38 rm -f LICENSE # GPL v2
39
40 cat > INSTALL <<'EOF'
41 To activate this template add the following to your conf/local.php file:
42 $conf['template'] = '%{tpl}';
43 EOF
44
45 %install
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}
50
51 # find locales
52 sh %{SOURCE1} %{name}.lang
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 # force css cache refresh
59 if [ -f %{dokuconf}/local.php ]; then
60         touch %{dokuconf}/local.php
61 fi
62
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
65 %doc INSTALL README
66 %dir %{tpldir}
67 %{tpldir}/*.php
68 %{tpldir}/style.ini
69 %{tpldir}/common
70 %{tpldir}/conf
71 %{tpldir}/dokuwiki
72 %{tpldir}/monobook
73 %{tpldir}/user
74 # TODO: lang dirs inside. check if these can be also rpm lang tagged
75 %{tpldir}/wikipedia
This page took 0.091493 seconds and 3 git commands to generate.