]>
Commit | Line | Data |
---|---|---|
0822f980 SP |
1 | %define plugin zip |
2 | Summary: DokuWiki zip plugin | |
3 | Summary(pl.UTF-8): Wtyczka zip dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 0.4 | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://wiki.pilsch.com/doku-zip-%{version}.zip | |
10 | # Source0-md5: 7525314836db3ab7fd2f97d5a9e3bf89 | |
d1d0b9f4 | 11 | Source1: dokuwiki-find-lang.sh |
0822f980 SP |
12 | URL: http://wiki.pilsch.com/zip.html |
13 | Requires: dokuwiki >= 20061106 | |
14 | Requires: php-pear-File_Archive | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
7aa9a581 ER |
18 | %define dokuconf /etc/webapps/dokuwiki |
19 | %define dokudir /usr/share/dokuwiki | |
20 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
0822f980 SP |
21 | |
22 | %description | |
23 | This plugin saves a doku wiki as a zip file that contains changes.log, | |
24 | pages/, and, attic/ from the directory pointed to by $conf["savedir"]. | |
25 | In addition to the ability to save zip backups, this plugin also | |
26 | allows for the restoration of lost data from such an archive. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Wtyczka zip dla DokuWiki | |
30 | ||
31 | %prep | |
32 | %setup -q -n %{plugin}-standalone | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
7aa9a581 ER |
36 | install -d $RPM_BUILD_ROOT%{plugindir} |
37 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
0822f980 | 38 | |
d1d0b9f4 ER |
39 | # find locales |
40 | sh %{SOURCE1} %{name}.lang | |
41 | ||
0822f980 SP |
42 | %clean |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
7aa9a581 ER |
45 | %post |
46 | # force css cache refresh | |
47 | if [ -f %{dokuconf}/local.php ]; then | |
48 | touch %{dokuconf}/local.php | |
49 | fi | |
50 | ||
d1d0b9f4 | 51 | %files -f %{name}.lang |
0822f980 | 52 | %defattr(644,root,root,755) |
d1d0b9f4 ER |
53 | %dir %{plugindir} |
54 | %{plugindir}/*.php | |
55 | %{plugindir}/*.css |