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-%{version}.zip
10 Source0: http://gitorious.org/dokuwiki-odt/dokuwiki-odt/archive-tarball/master#/%{name}-%{version}.tgz
11 # Source0-md5: a30fe453e3036014c82e5b5e9a7c47b0
12 Patch0: dokuwiki-ziplib.patch
14 URL: http://www.dokuwiki.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.
41 mv dokuwiki-odt-dokuwiki-odt/* .
45 version=$( awk '/^date/{print $2}' info.txt)
46 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
47 : %%{version} mismatch
51 rm -f ZipLib.class.php
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{plugindir}
56 cp -a conf lang *.php *.png *.xml info.txt $RPM_BUILD_ROOT%{plugindir}
57 rm -f $RPM_BUILD_ROOT%{plugindir}/{ChangeLog,.gitignore}
59 %find_lang %{name}.lang
62 rm -rf $RPM_BUILD_ROOT
65 # force css cache refresh
66 if [ -f %{dokuconf}/local.php ]; then
67 touch %{dokuconf}/local.php
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %doc ChangeLog.txt README.txt
73 %defattr(644,root,root,755)