]>
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 | |
b356452b | 13 | BuildRequires: unzip |
49315bc4 SP |
14 | Requires: dokuwiki >= 20061106 |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
424db2eb ER |
18 | %define dokuconf /etc/webapps/dokuwiki |
19 | %define dokudir /usr/share/dokuwiki | |
20 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
49315bc4 SP |
21 | |
22 | %description | |
23 | This admin plug-in allows you to erase the entire cache and/or old | |
24 | wiki revisions. Only use this plug-in if you want to clean up your | |
25 | wiki or if the cache gets corrupted. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Wtyczka do usuwania cache-u i/oraz starych rewizii wiki. | |
29 | ||
30 | %prep | |
31 | %setup -q -n cacherevisionserase | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
424db2eb ER |
35 | install -d $RPM_BUILD_ROOT%{plugindir} |
36 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
49315bc4 SP |
37 | |
38 | # find locales | |
39 | sh %{SOURCE1} %{name}.lang | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
424db2eb ER |
44 | %post |
45 | # force css cache refresh | |
46 | if [ -f %{dokuconf}/local.php ]; then | |
47 | touch %{dokuconf}/local.php | |
48 | fi | |
49 | ||
49315bc4 SP |
50 | %files -f %{name}.lang |
51 | %defattr(644,root,root,755) | |
52 | %doc readme.txt readme_unix.txt | |
424db2eb ER |
53 | %dir %{plugindir} |
54 | %{plugindir}/*.php |