]>
Commit | Line | Data |
---|---|---|
abad5862 SP |
1 | %define _plugin backuptool |
2 | Summary: DokuWiki Backup Tool Plugin | |
3 | Summary(pl.UTF-8): Wtyczka Backup Tool dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{_plugin} | |
a6c325e3 | 5 | Version: 20080824 |
6 | Release: 1 | |
abad5862 SP |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
a6c325e3 | 9 | Source0: http://tatewake.com/wiki/_media/projects:backuptool-%{version}.tar.gz |
10 | # Source0-md5: f98defc3c5f3613750868edc1c297f0e | |
abad5862 SP |
11 | Source1: dokuwiki-find-lang.sh |
12 | URL: http://tatewake.com/wiki/projects:backuptool_for_dokuwiki | |
13 | Requires: dokuwiki >= 20061106 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
de4acf3c ER |
17 | %define dokuconf /etc/webapps/dokuwiki |
18 | %define dokudir /usr/share/dokuwiki | |
19 | %define plugindir %{dokudir}/lib/plugins/%{_plugin} | |
abad5862 SP |
20 | |
21 | %description | |
22 | This is a plugin for DokuWiki which enables you to backup the most | |
23 | important parts of your site; this includes all of your pages, all old | |
24 | revisions, meta data, subscriptions, media files (your downloads), as | |
25 | well as your plugins and templates. | |
26 | ||
27 | This is in case, for some odd reason, your host accidentally loses all | |
25b0ce7f | 28 | your files. |
abad5862 SP |
29 | |
30 | %description -l pl.UTF-8 | |
31 | Jest to plugin dla DokuWiki, który pozwala na archiwizacje | |
32 | najważniejszych danych ze strony. | |
33 | ||
34 | %prep | |
35 | %setup -q -n backup | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
de4acf3c ER |
39 | install -d $RPM_BUILD_ROOT%{plugindir} |
40 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
abad5862 SP |
41 | |
42 | # find locales | |
43 | sh %{SOURCE1} %{name}.lang | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
de4acf3c ER |
48 | %post |
49 | # force css cache refresh | |
50 | if [ -f %{dokuconf}/local.php ]; then | |
51 | touch %{dokuconf}/local.php | |
52 | fi | |
53 | ||
abad5862 SP |
54 | %files -f %{name}.lang |
55 | %defattr(644,root,root,755) | |
de4acf3c ER |
56 | %dir %{plugindir} |
57 | %{plugindir}/*.php |