]> git.pld-linux.org Git - packages/dokuwiki-plugin-odt.git/blob - dokuwiki-plugin-odt.spec
- BR: unzip
[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:        20100404
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-odt-%{version}.zip
10 # Source0-md5:  ffee0778f67a50d4bcf838e2054f7341
11 Patch0:         dokuwiki-ziplib.patch
12 URL:            http://wiki.splitbrain.org/plugin:odt
13 BuildRequires:  unzip
14 Requires:       dokuwiki >= 20070626
15 Requires:       php-common >= 4:5.0
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         dokuconf        /etc/webapps/dokuwiki
20 %define         dokudir         /usr/share/dokuwiki
21 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
22 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
23
24 %description
25 This plugin allows you to export a page to the OpenDocument format
26 used by Open Office and other word processors. This is especially
27 useful when you need to give a single page to a customer
28
29 Hint: Open Office can also export to PDF.
30
31 %description -l pl.UTF-8
32 Ta wtyczka pozwala na eksportowanie strony do formatu OpenDocument,
33 używanego przez Open Office i inne edytory tekstu. Przydatna jest w
34 sytuacji w której musisz dać pojedyńczą stronę klientowi.
35
36 Podpowiedź: Open Office pozwala także na eksportowanie do PDF.
37
38 %prep
39 %setup -q -n %{plugin}
40 %patch0 -p1
41 version=$( awk '/^date/{print $2}' info.txt)
42 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
43         : %%{version} mismatch
44         exit 1
45 fi
46
47 rm -f ZipLib.class.php
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{plugindir}
52 cp -a conf lang *.php *.png *.xml info.txt $RPM_BUILD_ROOT%{plugindir}
53 rm -f $RPM_BUILD_ROOT%{plugindir}/{ChangeLog,.gitignore}
54
55 %find_lang %{name}.lang
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 # force css cache refresh
62 if [ -f %{dokuconf}/local.php ]; then
63         touch %{dokuconf}/local.php
64 fi
65
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)
68 %doc ChangeLog.txt README.txt TODO.txt
69 %defattr(644,root,root,755)
70 %dir %{plugindir}
71 %{plugindir}/*.txt
72 %{plugindir}/*.png
73 %{plugindir}/*.xml
74 %{plugindir}/*.php
75 %dir %{plugindir}/conf
76 %{plugindir}/conf/*.php
This page took 0.133742 seconds and 4 git commands to generate.