]>
Commit | Line | Data |
---|---|---|
c27577b7 ER |
1 | %define _snap 07202007 |
2 | %define _ver %(echo %{_snap} | sed -e 's,\\(..\\)\\(..\\)\\(....\\),\\3\\1\\2,') | |
3 | %define _tpl monobook | |
4 | Summary: Monobook template for DokuWiki | |
5 | Name: dokuwiki-tpl-%{_tpl} | |
6 | Version: %{_ver} | |
436f811c | 7 | Release: 0.2 |
c27577b7 ER |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
10 | Source0: http://tatewake.com/wiki/_media/projects:monobook-%{_snap}.zip | |
11 | # Source0-md5: 69f0dfd21dc921f86be4fd9f8ec9ea4f | |
436f811c | 12 | Source1: dokuwiki-find-lang.sh |
c27577b7 ER |
13 | URL: http://tatewake.com/wiki/projects:monobook_for_dokuwiki |
14 | BuildRequires: rpmbuild(macros) >= 1.268 | |
15 | Requires: dokuwiki >= 20070626 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _dokudir /usr/share/dokuwiki | |
20 | %define _tpldir %{_dokudir}/lib/tpl/%{_tpl} | |
21 | ||
22 | %description | |
23 | Gives DokuWiki the Wikipedia/Mediawiki look and feel, as well as more | |
24 | functionality. Includes discussions without using a plugin and the | |
25 | navigation can be edited like a wiki page. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{_tpl} | |
29 | ||
30 | rm -f LICENSE # GPL v2 | |
31 | ||
32 | cat > INSTALL <<'EOF' | |
33 | To activate this template add the following to your conf/local.php file: | |
34 | $conf['template'] = '%{_tpl}'; | |
35 | EOF | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{_tpldir} | |
40 | cp -a . $RPM_BUILD_ROOT%{_tpldir} | |
41 | rm -f $RPM_BUILD_ROOT%{_tpldir}/{INSTALL,README} | |
42 | ||
436f811c ER |
43 | # find locales |
44 | sh %{SOURCE1} %{name}.lang | |
45 | ||
c27577b7 ER |
46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
436f811c | 49 | %files -f %{name}.lang |
c27577b7 ER |
50 | %defattr(644,root,root,755) |
51 | %doc INSTALL README | |
436f811c ER |
52 | %dir %{_tpldir} |
53 | %{_tpldir}/*.php | |
54 | %{_tpldir}/style.ini | |
55 | %{_tpldir}/common | |
56 | %{_tpldir}/conf | |
57 | %{_tpldir}/dokuwiki | |
58 | %{_tpldir}/monobook | |
59 | %{_tpldir}/user | |
60 | # TODO: lang dirs inside. check if these can be also rpm lang tagged | |
61 | %{_tpldir}/wikipedia |