]>
Commit | Line | Data |
---|---|---|
e01d5403 | 1 | %define plugin odt |
ba89cb3a | 2 | Summary: DokuWiki odt (Open Document Text) Export Plugin |
3 | Summary(pl-UTF8): Wtyczka do eksportowania plików odt (Open Document Text) | |
e01d5403 ER |
4 | Name: dokuwiki-plugin-%{plugin} |
5 | Version: 20080219 | |
ba89cb3a | 6 | Release: 1 |
e01d5403 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://wiki.splitbrain.org/_media/plugin:odt-plugin-2008-02-19.tgz | |
10 | # Source0-md5: f79363c82281978e274442164581d91a | |
11 | Source1: dokuwiki-find-lang.sh | |
12 | Patch0: http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-odt-20070626.patch | |
13 | URL: http://wiki.splitbrain.org/plugin:odt | |
14 | Requires: dokuwiki >= 20070626 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
2b672c65 | 18 | %define dokudir /usr/share/dokuwiki |
e01d5403 ER |
19 | %define plugindir %{dokudir}/lib/plugins/%{plugin} |
20 | ||
21 | %description | |
22 | This plugin allows you to export a page to the OpenDocument format | |
23 | used by Open Office and other word processors. This is especially | |
24 | useful when you need to give a single page to a customer | |
25 | ||
26 | Hint: Open Office can also export to PDF. | |
27 | ||
ba89cb3a | 28 | %description -l pl-UTF8 |
29 | Ta wtyczka pozwala na eksportowanie strony do formatu OpenDocument, | |
30 | używanego przez Open Office i inne edytory tekstu. Przydatna jest | |
31 | w sytuacji w której musisz dać pojedyńczą stronę klientowi. | |
32 | ||
33 | Podpowiedź: Open Office pozwala także na eksportowanie do PDF. | |
34 | ||
e01d5403 ER |
35 | %prep |
36 | %setup -q -n %{plugin} | |
37 | %patch0 -p1 | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{plugindir} | |
42 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
43 | ||
44 | # find locales | |
45 | sh %{SOURCE1} %{name}.lang | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files -f %{name}.lang | |
51 | %defattr(644,root,root,755) | |
52 | %dir %{plugindir} | |
53 | %{plugindir}/*.txt | |
54 | %{plugindir}/*.png | |
55 | %{plugindir}/*.xml | |
56 | %{plugindir}/*.php |