1 %define plugin tablecalc
2 Summary: DokuWiki tablecalc plugin
3 Summary(pl.UTF-8): Wtyczka tablecalc dla DokuWiki
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://narezka.ru/cfd/msgdb/740/tablecalc.zip
10 # Source0-md5: 086d8a7f4dab1fac9d0cef73b9f75b42
11 URL: http://wiki.splitbrain.org/plugin:tablecalc
12 BuildRequires: rpmbuild(macros) >= 1.520
13 Requires: dokuwiki >= 20061106
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokuconf /etc/webapps/dokuwiki
18 %define dokudir /usr/share/dokuwiki
19 %define plugindir %{dokudir}/lib/plugins/%{plugin}
22 Adds ability to use Excel-style formulas in tables.
29 version=$(awk -F"'" '/date/{split($4, a, "-"); printf("%04d-%02d-%02d\n", 2000 + a[3], a[2], a[1])}' syntax.php)
30 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
31 : %%{version} mismatch
35 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{plugindir}
40 cp -a . $RPM_BUILD_ROOT%{plugindir}
43 rm -rf $RPM_BUILD_ROOT
46 # force css cache refresh
47 if [ -f %{dokuconf}/local.php ]; then
48 touch %{dokuconf}/local.php
52 %defattr(644,root,root,755)