]>
Commit | Line | Data |
---|---|---|
0a51a39f | 1 | %define _snap 2008-07-30 |
2 | %define _ver %(echo %{_snap} | tr -d -) | |
54dae784 | 3 | %define tpl monobook |
c27577b7 | 4 | Summary: Monobook template for DokuWiki |
8bbb6bd7 | 5 | Summary(pl.UTF-8): Szablon Monobook dla DokuWiki |
54dae784 | 6 | Name: dokuwiki-tpl-%{tpl} |
c27577b7 | 7 | Version: %{_ver} |
f92997fe | 8 | Release: 1 |
c27577b7 ER |
9 | License: GPL v2 |
10 | Group: Applications/WWW | |
0a51a39f | 11 | Source0: http://tatewake.com/wiki/_media/projects:monobook-%{_snap}.tar.bz2 |
12 | # Source0-md5: 35608ad64b14c0ac2f61c0477609e3ab | |
436f811c | 13 | Source1: dokuwiki-find-lang.sh |
c27577b7 ER |
14 | URL: http://tatewake.com/wiki/projects:monobook_for_dokuwiki |
15 | BuildRequires: rpmbuild(macros) >= 1.268 | |
0a51a39f | 16 | Requires: dokuwiki >= 20080505 |
c27577b7 ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
54dae784 ER |
20 | %define dokudir /usr/share/dokuwiki |
21 | %define tpldir %{dokudir}/lib/tpl/%{tpl} | |
c27577b7 ER |
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 | ||
8bbb6bd7 JB |
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 | ||
c27577b7 | 34 | %prep |
54dae784 | 35 | %setup -q -n %{tpl} |
c27577b7 ER |
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: | |
54dae784 | 41 | $conf['template'] = '%{tpl}'; |
c27577b7 ER |
42 | EOF |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
54dae784 ER |
46 | install -d $RPM_BUILD_ROOT%{tpldir} |
47 | cp -a . $RPM_BUILD_ROOT%{tpldir} | |
48 | rm -f $RPM_BUILD_ROOT%{tpldir}/{INSTALL,README} | |
c27577b7 | 49 | |
436f811c ER |
50 | # find locales |
51 | sh %{SOURCE1} %{name}.lang | |
52 | ||
c27577b7 ER |
53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
436f811c | 56 | %files -f %{name}.lang |
c27577b7 ER |
57 | %defattr(644,root,root,755) |
58 | %doc INSTALL README | |
54dae784 ER |
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 | |
436f811c | 67 | # TODO: lang dirs inside. check if these can be also rpm lang tagged |
54dae784 | 68 | %{tpldir}/wikipedia |