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://aurelien.bompard.org/projects/files/dokuwiki-odt/dokuwiki-odt-20100812.zip
10 # Source0-md5: 28839a411068e2c923c74734e35481ff
11 Patch0: dokuwiki-ziplib.patch
13 URL: http://wiki.splitbrain.org/plugin:odt
15 Requires: dokuwiki >= 20070626
16 Requires: php-common >= 4:5.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dokuconf /etc/webapps/dokuwiki
21 %define dokudir /usr/share/dokuwiki
22 %define plugindir %{dokudir}/lib/plugins/%{plugin}
23 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
26 This plugin allows you to export a page to the OpenDocument format
27 used by Open Office and other word processors. This is especially
28 useful when you need to give a single page to a customer
30 Hint: Open Office can also export to PDF.
32 %description -l pl.UTF-8
33 Ta wtyczka pozwala na eksportowanie strony do formatu OpenDocument,
34 używanego przez Open Office i inne edytory tekstu. Przydatna jest w
35 sytuacji w której musisz dać pojedyńczą stronę klientowi.
37 Podpowiedź: Open Office pozwala także na eksportowanie do PDF.
46 version=$( awk '/^date/{print $2}' info.txt)
47 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
48 : %%{version} mismatch
52 rm -f ZipLib.class.php
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{plugindir}
57 cp -a conf lang *.php *.png *.xml info.txt $RPM_BUILD_ROOT%{plugindir}
58 rm -f $RPM_BUILD_ROOT%{plugindir}/{ChangeLog,.gitignore}
60 %find_lang %{name}.lang
63 rm -rf $RPM_BUILD_ROOT
66 # force css cache refresh
67 if [ -f %{dokuconf}/local.php ]; then
68 touch %{dokuconf}/local.php
71 %files -f %{name}.lang
72 %defattr(644,root,root,755)
73 %doc ChangeLog.txt README.txt
74 %defattr(644,root,root,755)
80 %dir %{plugindir}/conf
81 %{plugindir}/conf/*.php