]> git.pld-linux.org Git - packages/antiword.git/blob - antiword.spec
- use global configuration files if ~/.antiword/* not present
[packages/antiword.git] / antiword.spec
1 Summary:        MSWord Document to TXT/Postscript converter
2 Summary(pl):    Konwerter dokumentów MSWord do TXT/Postscript
3 Name:           antiword
4 Version:        0.31
5 Release:        2
6 License:        GPL
7 Group:          Applications/Text
8 Group(de):      Applikationen/Text
9 Group(fr):      Utilitaires/Texte
10 Group(pl):      Aplikacje/Tekst
11 Source0:        http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-opt.patch
13 Patch1:         %{name}-globalconf.patch
14 URL:            http://www.winfield.demon.nl/index.html
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Antiword is a free MS-Word reader for Linux, BeOS and RISC OS. It
19 converts the documents from Word 6, 7, 97 and 2000 to text and
20 Postscript. Antiword tries to keep the layout of the document intact.
21
22 %description -l pl
23 Antiword to darmowy czytnik dokumentów MS-Word dla Linuxa, BeOS i RISC
24 OS. Konwertuje on dokumenty z Worda 6, 7, 97 oraz 2000 do tekstu oraz
25 Postscriptu. Antiword próbuje utrzymaæ formê dokumentu nietkniêt±.
26
27 %prep
28 %setup -q -n %{name}.%{version}
29 %patch0 -p1
30 %patch1 -p1
31
32 %build
33 OPT="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}" %{__make}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/antiword}
39
40 install %{name}         $RPM_BUILD_ROOT%{_bindir}
41 install Docs/*.1        $RPM_BUILD_ROOT%{_mandir}/man1
42 install Resources/*     $RPM_BUILD_ROOT%{_datadir}/antiword
43
44 rm -f Docs/{*.1,COPYING}
45
46 gzip -9nf Docs/*
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc Docs/*.gz
54 %attr(755,root,root) %{_bindir}/*
55 %{_datadir}/antiword
56 %{_mandir}/man*/*
This page took 0.082232 seconds and 3 git commands to generate.