1 |
Name: odt2txt |
2 |
Version: 0.5 |
3 |
Release: %mkrel 6 |
4 |
Source0: https://github.com/dstosberg/odt2txt/archive/v%{version}.tar.gz |
5 |
Patch0: odt2txt-0.5-cflags.patch |
6 |
URL: https://stosberg.net/odt2txt/ |
7 |
Summary: A simple (and stupid) converter from OpenDocument Text to plain text |
8 |
Group: Text tools |
9 |
License: GPLv2 |
10 |
BuildRequires: pkgconfig(zlib) |
11 |
%description |
12 |
odt2txt is a command-line tool which extracts the text out of OpenDocument |
13 |
Texts produced by OpenOffice.org, StarOffice, KOffice and others. |
14 |
|
15 |
odt2txt is ... |
16 |
* small |
17 |
* supports multiple output encodings |
18 |
* adopts to your locale |
19 |
* able to substitute common characters which the output charset does |
20 |
not contain with ascii look-a-likes |
21 |
* written in C, has few dependencies |
22 |
* portable (runs on Linux, *BSD, Solaris, HP-UX, Windows, Cygwin) |
23 |
* licensed under GPL, version 2 |
24 |
|
25 |
%prep |
26 |
%autosetup -p1 |
27 |
|
28 |
%build |
29 |
%set_build_flags |
30 |
%make_build |
31 |
|
32 |
%install |
33 |
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install |
34 |
|
35 |
%files |
36 |
%doc GPL-2 |
37 |
%{_bindir}/%{name} |
38 |
%{_mandir}/man1/%{name}.1* |
39 |
|