2 Summary: DokuWiki odt (Open Document Text) Export Plugin
3 Summary(pl.UTF-8): Wtyczka do eksportowania plików odt (Open Document Text)
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-odt-%{version}.zip
10 # Source0-md5: ffee0778f67a50d4bcf838e2054f7341
11 Patch0: dokuwiki-ziplib.patch
12 URL: http://wiki.splitbrain.org/plugin:odt
14 Requires: dokuwiki >= 20070626
15 Requires: php-common >= 4:5.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define dokuconf /etc/webapps/dokuwiki
20 %define dokudir /usr/share/dokuwiki
21 %define plugindir %{dokudir}/lib/plugins/%{plugin}
22 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
25 This plugin allows you to export a page to the OpenDocument format
26 used by Open Office and other word processors. This is especially
27 useful when you need to give a single page to a customer
29 Hint: Open Office can also export to PDF.
31 %description -l pl.UTF-8
32 Ta wtyczka pozwala na eksportowanie strony do formatu OpenDocument,
33 używanego przez Open Office i inne edytory tekstu. Przydatna jest w
34 sytuacji w której musisz dać pojedyńczą stronę klientowi.
36 Podpowiedź: Open Office pozwala także na eksportowanie do PDF.
39 %setup -q -n %{plugin}
41 version=$( awk '/^date/{print $2}' info.txt)
42 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
43 : %%{version} mismatch
47 rm -f ZipLib.class.php
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{plugindir}
52 cp -a conf lang *.php *.png *.xml info.txt $RPM_BUILD_ROOT%{plugindir}
53 rm -f $RPM_BUILD_ROOT%{plugindir}/{ChangeLog,.gitignore}
55 %find_lang %{name}.lang
58 rm -rf $RPM_BUILD_ROOT
61 # force css cache refresh
62 if [ -f %{dokuconf}/local.php ]; then
63 touch %{dokuconf}/local.php
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)
68 %doc ChangeLog.txt README.txt TODO.txt
69 %defattr(644,root,root,755)
75 %dir %{plugindir}/conf
76 %{plugindir}/conf/*.php