2 Summary: DokuWiki plugin to Show disk usage of a namespace
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://wiki.symplus.com/_media/computer/source/nssize.zip
9 # Source0-md5: 288b06bc6765f9b51e5a3aa11b99b3b7
10 URL: http://www.dokuwiki.org/plugin:nssize
11 Patch0: doku-conf.patch
12 BuildRequires: rpmbuild(macros) >= 1.553
14 Requires: dokuwiki >= 20061106
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define dokuconf /etc/webapps/dokuwiki
19 %define dokudir /usr/share/dokuwiki
20 %define plugindir %{dokudir}/lib/plugins/%{plugin}
21 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
24 NSsize DokuWiki plugin calculates and displays the disk usage of a
27 This plugin can display the disk space of the 'pages', 'media',
28 'meta', 'cache', 'attic' directories. These displaying items are
29 selectable in the plugin-configuration page.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{plugindir}
40 cp -a . $RPM_BUILD_ROOT%{plugindir}
43 %find_lang %{name}.lang
46 rm -rf $RPM_BUILD_ROOT
49 # force css cache refresh
50 if [ -f %{dokuconf}/local.php ]; then
51 touch %{dokuconf}/local.php
54 %files -f %{name}.lang
55 %defattr(644,root,root,755)