]>
Commit | Line | Data |
---|---|---|
d0651274 | 1 | Summary: A simple converter from OpenDocument Text to plain text |
9b7b21fc | 2 | Summary(pl.UTF-8): Prosty konwerter z formatu OpenDocument Text do zwykłego tekstu |
d0651274 | 3 | Name: odt2txt |
c1e45164 | 4 | Version: 0.5 |
d0651274 | 5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Applications/Publishing | |
c1e45164 MB |
8 | Source0: https://github.com/dstosberg/odt2txt/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 8154dc7f2909dad6939d209695e62379 | |
d0651274 | 10 | URL: http://stosberg.net/odt2txt/ |
c1e45164 MB |
11 | BuildRequires: pkgconfig |
12 | BuildRequires: libzip-devel | |
b993f5d8 | 13 | BuildRequires: zlib-devel |
d0651274 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | odt2txt extracts the text out of OpenDocument Texts. It is small, fast | |
18 | and portable, can output the document in your console encoding, and | |
19 | has very few external dependencies. | |
20 | ||
1feeadc5 JR |
21 | %description -l pl.UTF-8 |
22 | odt2txt wydobywa tekst z formatu OpenDocument Text. Jest mały, szybki | |
23 | i przenośny. Obsługuje różne kodowania wyjściowe i ma niewiele | |
24 | zewnętrznych zależności. | |
d0651274 | 25 | |
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
71ecbd85 | 30 | %{__make} \ |
31 | CC="%{__cc}" \ | |
c1e45164 MB |
32 | CFLAGS="%{rpmcflags} -DHAVE_LIBZIP %(pkg-config --cflags libzip)" \ |
33 | LIBS="%(pkg-config --libs libzip) -lz" | |
d0651274 | 34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
dc9c02bf | 37 | %{__make} install \ |
38 | DESTDIR=$RPM_BUILD_ROOT \ | |
39 | PREFIX=%{_prefix} | |
d0651274 | 40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
b1004053 JB |
46 | %attr(755,root,root) %{_bindir}/odt2txt |
47 | %{_mandir}/man1/odt2txt.1* |