]> git.pld-linux.org Git - packages/antiword.git/blob - antiword.spec
- also use rpmcflags when linking (-O2, -m32/-m64)
[packages/antiword.git] / antiword.spec
1 Summary:        MSWord Document to TXT/Postscript converter
2 Summary(pl.UTF-8):      Konwerter dokumentów MSWord do TXT/Postscript
3 Name:           antiword
4 Version:        0.37
5 Release:        1
6 License:        GPL
7 Group:          Applications/Text
8 Source0:        http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
9 # Source0-md5:  f868e2a269edcbc06bf77e89a55898d1
10 Patch0:         %{name}-etc_dir.patch
11 URL:            http://www.winfield.demon.nl/index.html
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Antiword is a free MS-Word reader for Linux, BeOS and RISC OS. It
16 converts the documents from Word 2, 6, 7, 97, 2000, 2002 and 2003 to
17 text and Postscript. Antiword tries to keep the layout of the document
18 intact.
19
20 %description -l pl.UTF-8
21 Antiword to darmowy czytnik dokumentów MS-Word dla Linuksa, BeOS i RISC
22 OS. Konwertuje on dokumenty z Worda 2, 6, 7, 97, 2000, 2002 oraz 2003
23 do tekstu oraz Postscriptu. Antiword próbuje utrzymać formę dokumentu
24 nietkniętą.
25
26 %prep
27 %setup -q
28 %patch0 -p1
29
30 %build
31 %{__make} \
32         CC="%{__cc}" \
33         OPT="%{rpmcflags}" \
34         LDFLAGS="%{rpmcflags} %{rpmldflags}"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/antiword}
39
40 install %{name} k%{name} $RPM_BUILD_ROOT%{_bindir}
41 install Docs/*.1        $RPM_BUILD_ROOT%{_mandir}/man1
42 install Resources/*     $RPM_BUILD_ROOT%{_datadir}/antiword
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc Docs/{ChangeLog,Exmh,FAQ,History,Mutt,Netscape,QandA,ReadMe}
50 %attr(755,root,root) %{_bindir}/*
51 %{_datadir}/antiword
52 %{_mandir}/man*/*
This page took 0.024425 seconds and 3 git commands to generate.