File texterize.spec of Package texterize
# norootforbuild
Name: texterize
Version: 0.1.3
%define soname 0
Release: 0
Summary: Text and Metadata Extraction Tool and Library
# http://texterize.org/files/texterize-%{version}.tar.gz
Source: texterize-%{version}.tar.bz2
Patch1: texterize-fixes.patch
URL: http://texterize.org
Group: Productivity/Text/Utilities
License: GNU General Public License version 3 (GPL v3)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%if 0%{?suse_version} >= 1000
BuildRequires: file-devel
%else
BuildRequires: file
%endif
BuildRequires: libxml2-devel glib2-devel pcre-devel
BuildRequires: gcc make glibc-devel pkgconfig gcc-c++ libstdc++-devel
BuildRequires: autoconf automake libtool
%description
Texterize is a text and metadata extraction tool and library which can be used
to quickly get the text content of a file. It currently supports file formats
like PDF, Excel, Powerpoint, Word, RTF, WordPerfect, MP3, Ogg, and all
OpenDocument file formats. The output of texterize is either text or XML. It is
also designed to work with Unicode input and output, and the default output
character set is UTF-8. Texterize also has a recursive mode so that whole
directories (or whole filesystems) can be converted to text. This recursion
also works through archive files and compressed files like zip, tar, and gz
files.
Authors:
--------
Joost Remijn <remijnj@d20.nl>
%package -n libtexterize%{soname}
Summary: Text and Metadata Extraction Library
License: GNU Lesser General Public License version 3 (LGPL v3)
Group: System/Libraries
%description -n libtexterize%{soname}
Texterize is a text and metadata extraction tool and library which can be used
to quickly get the text content of a file. It currently supports file formats
like PDF, Excel, Powerpoint, Word, RTF, WordPerfect, MP3, Ogg, and all
OpenDocument file formats. The output of texterize is either text or XML. It is
also designed to work with Unicode input and output, and the default output
character set is UTF-8. Texterize also has a recursive mode so that whole
directories (or whole filesystems) can be converted to text. This recursion
also works through archive files and compressed files like zip, tar, and gz
files.
%package -n libtexterize-devel
Summary: Text and Metadata Extraction Library
License: GNU Lesser General Public License version 3 (LGPL v3)
Group: Development/Libraries/C and C++
Requires: libtexterize%{soname} = %{version}
%description -n libtexterize-devel
Texterize is a text and metadata extraction tool and library which can be used
to quickly get the text content of a file. It currently supports file formats
like PDF, Excel, Powerpoint, Word, RTF, WordPerfect, MP3, Ogg, and all
OpenDocument file formats. The output of texterize is either text or XML. It is
also designed to work with Unicode input and output, and the default output
character set is UTF-8. Texterize also has a recursive mode so that whole
directories (or whole filesystems) can be converted to text. This recursion
also works through archive files and compressed files like zip, tar, and gz
files.
%debug_package
%prep
%setup -q
%patch1
%build
%configure \
--enable-pdf
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__rm -f "%{buildroot}%{_libdir}"/*.{a,la}
%clean
%__rm -rf "%{buildroot}"
%post -n libtexterize%{soname} -p /sbin/ldconfig
%postun -n libtexterize%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/texterize
%files -n libtexterize0
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.LESSER README TODO
%{_libdir}/libtexterize.so.0
%{_libdir}/libtexterize.so.0.*
%files -n libtexterize-devel
%defattr(-,root,root)
%{_includedir}/texterize.h
%{_libdir}/libtexterize.so
%changelog
* Mon Oct 05 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.1.3
- new package
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: