]>
Commit | Line | Data |
---|---|---|
49315bc4 SP |
1 | %define plugin cacherevisionseraser |
2 | Summary: DokuWiki cacherevisionseraser plugin | |
3 | Summary(pl.UTF-8): Wtyczka cacherevisionseraser dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 1.6.1 | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://ph0x.drunkencoders.com/dokuwikiplugin/dokuwiki_plugin_cacherevisions_eraser.zip | |
10 | # Source0-md5: 16a5ecef695bc41b07d3ae397f0098ea | |
11 | Source1: dokuwiki-find-lang.sh | |
12 | URL: http://wiki.splitbrain.org/plugin:cacherevisionseraser | |
13 | Requires: dokuwiki >= 20061106 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
424db2eb ER |
17 | %define dokuconf /etc/webapps/dokuwiki |
18 | %define dokudir /usr/share/dokuwiki | |
19 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
49315bc4 SP |
20 | |
21 | %description | |
22 | This admin plug-in allows you to erase the entire cache and/or old | |
23 | wiki revisions. Only use this plug-in if you want to clean up your | |
24 | wiki or if the cache gets corrupted. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Wtyczka do usuwania cache-u i/oraz starych rewizii wiki. | |
28 | ||
29 | %prep | |
30 | %setup -q -n cacherevisionserase | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
424db2eb ER |
34 | install -d $RPM_BUILD_ROOT%{plugindir} |
35 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
49315bc4 SP |
36 | |
37 | # find locales | |
38 | sh %{SOURCE1} %{name}.lang | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
424db2eb ER |
43 | %post |
44 | # force css cache refresh | |
45 | if [ -f %{dokuconf}/local.php ]; then | |
46 | touch %{dokuconf}/local.php | |
47 | fi | |
48 | ||
49315bc4 SP |
49 | %files -f %{name}.lang |
50 | %defattr(644,root,root,755) | |
51 | %doc readme.txt readme_unix.txt | |
424db2eb ER |
52 | %dir %{plugindir} |
53 | %{plugindir}/*.php |