]> git.pld-linux.org Git - packages/dokuwiki-plugin-odt.git/blob - dokuwiki-plugin-odt.spec
- up to 20110616 snap, allows customizing template via config or via odt-template...
[packages/dokuwiki-plugin-odt.git] / dokuwiki-plugin-odt.spec
1 %define         plugin          odt
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}
5 Version:        20110616
6 Release:        1
7 License:        GPL v2
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
13 Patch1:         geshi.patch
14 URL:            http://www.dokuwiki.org/plugin:odt
15 Requires:       dokuwiki >= 20070626
16 Requires:       php-common >= 4:5.0
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
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}
24
25 %description
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
29
30 Hint: Open Office can also export to PDF.
31
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.
36
37 Podpowiedź: Open Office pozwala także na eksportowanie do PDF.
38
39 %prep
40 %setup -qc
41 mv dokuwiki-odt-dokuwiki-odt/* .
42 %patch0 -p1
43 %patch1 -p1
44
45 version=$( awk '/^date/{print $2}' info.txt)
46 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
47         : %%{version} mismatch
48 #       exit 1
49 fi
50
51 rm -f ZipLib.class.php
52
53 %install
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}
58
59 %find_lang %{name}.lang
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 # force css cache refresh
66 if [ -f %{dokuconf}/local.php ]; then
67         touch %{dokuconf}/local.php
68 fi
69
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %doc ChangeLog.txt README.txt
73 %defattr(644,root,root,755)
74 %dir %{plugindir}
75 %{plugindir}/*.txt
76 %{plugindir}/*.png
77 %{plugindir}/*.xml
78 %{plugindir}/*.php
79 %{plugindir}/conf
This page took 0.176729 seconds and 4 git commands to generate.