]> git.pld-linux.org Git - packages/dokuwiki-plugin-backuptool.git/blob - dokuwiki-plugin-backuptool.spec
- refresh dw cache on install
[packages/dokuwiki-plugin-backuptool.git] / dokuwiki-plugin-backuptool.spec
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}
5 Version:        20080824
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://tatewake.com/wiki/_media/projects:backuptool-%{version}.tar.gz
10 # Source0-md5:  f98defc3c5f3613750868edc1c297f0e
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         dokuconf        /etc/webapps/dokuwiki
18 %define         dokudir         /usr/share/dokuwiki
19 %define         plugindir       %{dokudir}/lib/plugins/%{_plugin}
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
28 your files.
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
39 install -d $RPM_BUILD_ROOT%{plugindir}
40 cp -a . $RPM_BUILD_ROOT%{plugindir}
41
42 # find locales
43 sh %{SOURCE1} %{name}.lang
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 # force css cache refresh
50 if [ -f %{dokuconf}/local.php ]; then
51         touch %{dokuconf}/local.php
52 fi
53
54 %files -f %{name}.lang
55 %defattr(644,root,root,755)
56 %dir %{plugindir}
57 %{plugindir}/*.php
This page took 0.084869 seconds and 4 git commands to generate.