62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
Name: odt2txt
|
|
Version: 0.5
|
|
Release: 1mamba
|
|
Summary: Converts an OpenDocument or OpenOffice.org XML File to raw text
|
|
Group: Applications/Text
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://stosberg.net/odt2txt/
|
|
Source: https://github.com/dstosberg/odt2txt/archive/v%{version}.zip
|
|
#Source0: http://stosberg.net/odt2txt/odt2txt-%{version}.tar.gz
|
|
Patch0: odt2txt-0.4-Makefile.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
odt2txt is a command-line tool which extracts the text out of OpenDocument Texts produced by OpenOffice.org, StarOffice, KOffice and others.
|
|
odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. To a lesser extend, odt2txt may be useful to extract content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp).
|
|
|
|
Features:
|
|
* small
|
|
* supports multiple output encodings
|
|
* adopts to your locale
|
|
* able to substitute common characters which the output charset does not contain with ascii look-a-likes
|
|
* written in C, has few dependencies
|
|
* portable (runs on Linux, *BSD, Mac OS X, Windows, Cygwin, Solaris, HP-UX)
|
|
* licensed under GPL, version 2
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
%build
|
|
%make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/odt2txt
|
|
%{_mandir}/man1/odt2txt.1.gz
|
|
%doc GPL-2
|
|
|
|
%changelog
|
|
* Sat Apr 15 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.5-1mamba
|
|
- update to 0.5
|
|
|
|
* Tue Oct 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-2mamba
|
|
- rebuilt in devel
|
|
|
|
* Thu Oct 21 2010 gil <puntogil@libero.it> 0.4-1mamba
|
|
- package created by autospec
|