From 506cb48ad3e205d77097270442dd44608a01450b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:06:31 +0100 Subject: [PATCH] rebuilt in devel [release 0.4-2mamba;Tue Oct 09 2012] --- README.md | 12 ++++++++ odt2txt-0.4-Makefile.patch | 25 +++++++++++++++++ odt2txt.spec | 57 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 odt2txt-0.4-Makefile.patch create mode 100644 odt2txt.spec diff --git a/README.md b/README.md index a3af749..d19a3cf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # odt2txt +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 + diff --git a/odt2txt-0.4-Makefile.patch b/odt2txt-0.4-Makefile.patch new file mode 100644 index 0000000..c5739f1 --- /dev/null +++ b/odt2txt-0.4-Makefile.patch @@ -0,0 +1,25 @@ +--- Makefile 2008-06-23 21:32:28.000000000 +0200 ++++ Makefile-gil 2010-10-21 07:11:24.000000000 +0200 +@@ -23,8 +23,8 @@ + INSTALL = install + GROFF = groff + +-DESTDIR = /usr/local +-PREFIX = ++DESTDIR = ++PREFIX = /usr + BINDIR = $(PREFIX)/bin + MANDIR = $(PREFIX)/share/man + MAN1DIR = $(MANDIR)/man1 +@@ -88,9 +88,9 @@ + + install: $(BIN) $(MAN) + $(INSTALL) -d -m755 $(DESTDIR)$(BINDIR) +- $(INSTALL) $(BIN) $(DESTDIR)$(BINDIR) ++ $(INSTALL) -p -m755 $(BIN) $(DESTDIR)$(BINDIR) + $(INSTALL) -d -m755 $(DESTDIR)$(MAN1DIR) +- $(INSTALL) $(MAN) $(DESTDIR)$(MAN1DIR) ++ $(INSTALL) -p -m644 $(MAN) $(DESTDIR)$(MAN1DIR) + + odt2txt.html: $(MAN) + $(GROFF) -Thtml -man $(MAN) > $@ diff --git a/odt2txt.spec b/odt2txt.spec new file mode 100644 index 0000000..1f3aa9f --- /dev/null +++ b/odt2txt.spec @@ -0,0 +1,57 @@ +Name: odt2txt +Version: 0.4 +Release: 2mamba +Summary: Converts an OpenDocument or OpenOffice.org XML File to raw text +Group: Applications/Text +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://stosberg.net/odt2txt/ +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 +* Tue Oct 09 2012 Silvan Calarco 0.4-2mamba +- rebuilt in devel + +* Thu Oct 21 2010 gil 0.4-1mamba +- package created by autospec