File kio_recoll.spec of Package recoll

#
# spec file for package kio_recoll
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define rname recoll
Name:           kio_recoll
Version:        1.36.2
Release:        0
Summary:        KIO slave for the Recoll full text search tool
License:        GPL-2.0-or-later
URL:            https://www.lesbonscomptes.com/recoll/
Source:         http://www.lesbonscomptes.com/recoll/%{rname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- Disable aspell support. Unneeded for the kioslave
Patch0:         0001-Disable-aspell-support-for-building-the-kioslave-plu.patch
# Should probably use the dynamic lib anyway?
Patch1:         fix-kioslave-build.patch
BuildRequires:  bison
BuildRequires:  extra-cmake-modules
BuildRequires:  libxapian-devel
BuildRequires:  libxslt-devel
BuildRequires:  recoll = %{version}
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Widgets)
Requires:       recoll = %{version}
Supplements:    (dolphin and recoll)

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

This package provides the kio-slave

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
cd kde/kioslave/kio_recoll
%cmake_kf5 -d build
%cmake_build

%install
pushd kde/kioslave/kio_recoll
%kf5_makeinstall -C build

%files
%dir %{_kf5_plugindir}/kf5
%dir %{_kf5_plugindir}/kf5/kio
%{_kf5_plugindir}/kf5/kio/kio_recoll.so
%{_kf5_sharedir}/kio_recoll/

%changelog
openSUSE Build Service is sponsored by