]>
Commit | Line | Data |
---|---|---|
6872074f SP |
1 | %define tpl pldusersorg |
2 | Summary: PLD-Users.org template for DokuWiki | |
3 | Summary(pl.UTF-8): Szablon PLD-users.org dla DokuWiki | |
4 | Name: dokuwiki-tpl-%{tpl} | |
5 | Version: 1.0 | |
6 | Release: 1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: pldusersorg.tar.gz | |
10 | # Source0-md5: c1cc75f5359b2c05fd71eec9c775163a | |
11 | Source1: dokuwiki-find-lang.sh | |
12 | URL: http://pld-users.org | |
13 | BuildRequires: rpmbuild(macros) >= 1.268 | |
14 | Requires: dokuwiki >= 20070626 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
6a6e792a | 18 | %define dokuconf /etc/webapps/dokuwiki |
6872074f SP |
19 | %define dokudir /usr/share/dokuwiki |
20 | %define tpldir %{dokudir}/lib/tpl/%{tpl} | |
21 | ||
22 | %description | |
23 | Default PLD-Users.org template. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Domyślny szablon serwisu PLD-Users.org. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{tpl} | |
30 | ||
31 | rm -f LICENSE # GPL v2 | |
32 | rm -f *~ | |
33 | ||
34 | cat > INSTALL <<'EOF' | |
35 | To activate this template add the following to your conf/local.php file: | |
36 | $conf['template'] = '%{tpl}'; | |
37 | EOF | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{tpldir} | |
42 | cp -a . $RPM_BUILD_ROOT%{tpldir} | |
43 | rm -f $RPM_BUILD_ROOT%{tpldir}/{INSTALL,README} | |
44 | ||
45 | # find locales | |
46 | sh %{SOURCE1} %{name}.lang | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
6a6e792a ER |
51 | %post |
52 | # force css cache refresh | |
53 | if [ -f %{dokuconf}/local.php ]; then | |
54 | touch %{dokuconf}/local.php | |
55 | fi | |
56 | ||
6872074f SP |
57 | %files -f %{name}.lang |
58 | %defattr(644,root,root,755) | |
59 | %doc INSTALL README | |
60 | %dir %{tpldir} | |
61 | %{tpldir}/*.php | |
62 | %{tpldir}/*.css | |
63 | %{tpldir}/*.html | |
64 | %{tpldir}/script.js | |
65 | %{tpldir}/style.ini | |
66 | %{tpldir}/conf | |
67 | %{tpldir}/images | |
68 | %{tpldir}/sidebars |