# # spec file for package odt2txt # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: odt2txt Summary: Converter from OpenDocument Text to plain text License: GPL-2.0 Group: Productivity/Text/Convertors Version: 0.5 Release: 1.22 Url: https://github.com/dstosberg Source: https://github.com/dstosberg/odt2txt/archive/v%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: zlib-devel %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). %prep %setup -q %build make CFLAGS="%optflags" %{?_smp_mflags} %install make DESTDIR=%buildroot PREFIX=%{_prefix} install chmod 644 %buildroot%{_mandir}/man1/odt2txt.1 %files %defattr(-,root,root) %doc GPL-2 README.md %{_bindir}/%{name} %{_mandir}/man1/odt2txt.1* %changelog * Fri Mar 6 2015 p.drouand@gmail.com - Update to version 0.5 * No changelog Url - Update Url to new project home - Use download Url as source - Fix description - Remove redundant %%clean section - Copy GPL-2 and README.md into the package * Mon Feb 13 2012 coolo@suse.com - patch license to follow spdx.org standard * Tue Feb 22 2011 adam@mizerski.pl - new package