File recoll-qt3.spec of Package recoll-qt3

#
# spec file for package recoll-qt3
#
# Copyright (c) 2011 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           recoll-qt3
Version:        1.14.4
Release:        0
License:        GPL-2.0+
Summary:        Personal Full Text Search Tool (Qt3 Based GUI)
Url:            http://www.recoll.org/
Group:          Productivity/Databases/Tools
Source0:        http://www.lesbonscomptes.com/recoll/recoll-%{version}.tar.gz
# PATCH-FIX-OPENSUSE recoll-1.14.0-nostrip.patch lazy.kent@opensuse.org -- don't strip binary, OBS does itself
Patch0:         recoll-1.14.0-nostrip.patch
BuildRequires:  aspell-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  qt3-devel
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1210
BuildRequires:  libxapian-devel
%else
BuildRequires:  xapian-core-devel
%endif
Requires:       antiword
Requires:       aspell
Requires:       catdoc
Requires:       djvulibre
Requires:       exiftool
Requires:       libwpd-tools
Requires:       libxslt
Requires:       poppler-tools
Requires:       python-mutagen
Requires:       python-PyCHM
Requires:       unrtf
Requires:       unzip
Recommends:     pstotext
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      recoll

%description
Recoll is a personal full text search tool for Unix/Linux.

This is a version with Qt3 based GUI.

%prep
%setup -qn recoll-%{version}
%patch0
sed -i 1i\ '#include <unistd.h>' index/recollindex.cpp

%build
%configure --with-inotify
make %{?_smp_mflags}
pushd query
make %{?_smp_mflags}
popd

%install
%makeinstall
install -m 755 query/recollq %{buildroot}%{_bindir}
install -m 644 doc/man/recollq.1 %{buildroot}%{_mandir}/man1
rm -f %{buildroot}%{_datadir}/pixmaps/recoll.png
%suse_update_desktop_file -r recoll-searchgui Office Database

%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README
%{_bindir}/recoll*
%{_datadir}/applications/recoll-searchgui.desktop
%{_datadir}/icons/hicolor/*/*/recoll.*
%{_datadir}/recoll
%doc %{_mandir}/man?/*

%changelog
openSUSE Build Service is sponsored by