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