]>
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 | ||
17 | %define _dokudir /usr/share/dokuwiki | |
18 | %define _plugindir %{_dokudir}/lib/plugins/%{_plugin} | |
19 | ||
20 | %description | |
21 | This is a plugin for DokuWiki which enables you to backup the most | |
22 | important parts of your site; this includes all of your pages, all old | |
23 | revisions, meta data, subscriptions, media files (your downloads), as | |
24 | well as your plugins and templates. | |
25 | ||
26 | This is in case, for some odd reason, your host accidentally loses all | |
25b0ce7f | 27 | your files. |
abad5862 SP |
28 | |
29 | %description -l pl.UTF-8 | |
30 | Jest to plugin dla DokuWiki, który pozwala na archiwizacje | |
31 | najważniejszych danych ze strony. | |
32 | ||
33 | %prep | |
34 | %setup -q -n backup | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{_plugindir} | |
39 | cp -a . $RPM_BUILD_ROOT%{_plugindir} | |
40 | ||
41 | # find locales | |
42 | sh %{SOURCE1} %{name}.lang | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files -f %{name}.lang | |
48 | %defattr(644,root,root,755) | |
49 | %dir %{_plugindir} | |
50 | %{_plugindir}/*.php |