]>
Commit | Line | Data |
---|---|---|
54ecf79b GP |
1 | %define plugin blog |
2 | Summary: DokuWiki Blog Plugin | |
3 | Name: dokuwiki-plugin-%{plugin} | |
4 | Version: 20080718 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://www.chimeric.de/_src/plugin-blog.tgz | |
9 | # Source0-md5: 772b602ffaf2270c1d8611e8a5243e3c | |
10 | Source1: dokuwiki-find-lang.sh | |
11 | URL: http://www.dokuwiki.org/plugin:blog | |
12 | Requires: dokuwiki >= 20061106 | |
13 | Requires: dokuwiki-plugin-include | |
14 | Requires: dokuwiki-plugin-pagelist | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define dokuconf /etc/webapps/dokuwiki | |
19 | %define dokudir /usr/share/dokuwiki | |
20 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
21 | ||
22 | %description | |
23 | This plugin makes blogs in your wiki easily possible. | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{plugin} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{plugindir} | |
31 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
32 | rm -rf $RPM_BUILD_ROOT%{plugindir}/{blog.tar.gz,COPYING,README,VERSION} | |
33 | ||
34 | # find locales | |
35 | sh %{SOURCE1} %{name}.lang | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %post | |
41 | # force css cache refresh | |
42 | if [ -f %{dokuconf}/local.php ]; then | |
43 | touch %{dokuconf}/local.php | |
44 | fi | |
45 | ||
46 | %files -f %{name}.lang | |
47 | %defattr(644,root,root,755) | |
48 | %doc README | |
49 | %dir %{plugindir} | |
50 | %{plugindir}/*.php | |
51 | %{plugindir}/*.css | |
52 | %{plugindir}/conf | |
53 | %{plugindir}/syntax |