2 Summary: DokuWiki odt (Open Document Text) Export Plugin
3 Summary(pl-UTF8): 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: 41c47719f7a118a0ffbc1428c841bb56
11 URL: http://wiki.splitbrain.org/plugin:odt
12 Patch0: dokuwiki-ziplib.patch
13 Requires: dokuwiki >= 20070626
14 Requires: php-common >= 4:5.0
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 This plugin allows you to export a page to the OpenDocument format
25 used by Open Office and other word processors. This is especially
26 useful when you need to give a single page to a customer
28 Hint: Open Office can also export to PDF.
30 %description -l pl-UTF8
31 Ta wtyczka pozwala na eksportowanie strony do formatu OpenDocument,
32 używanego przez Open Office i inne edytory tekstu. Przydatna jest w
33 sytuacji w której musisz dać pojedyńczą stronę klientowi.
35 Podpowiedź: Open Office pozwala także na eksportowanie do PDF.
38 %setup -q -n %{plugin}
40 version=$( awk '/^date/{print $2}' info.txt)
41 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
42 : %%{version} mismatch
46 rm -f ZipLib.class.php
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{plugindir}
51 cp -a conf lang *.php *.png *.xml info.txt $RPM_BUILD_ROOT%{plugindir}
52 rm -f $RPM_BUILD_ROOT%{plugindir}/{ChangeLog,.gitignore}
54 %find_lang %{name}.lang
57 rm -rf $RPM_BUILD_ROOT
60 # force css cache refresh
61 if [ -f %{dokuconf}/local.php ]; then
62 touch %{dokuconf}/local.php
65 %files -f %{name}.lang
66 %defattr(644,root,root,755)
67 %doc ChangeLog README.txt TODO.txt
68 %defattr(644,root,root,755)
74 %dir %{plugindir}/conf
75 %{plugindir}/conf/*.php