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.43.2
Release:        0
Summary:        KIO slave for the Recoll full text search tool
License:        GPL-2.0-or-later
URL:            https://www.recoll.org
Source:         https://www.recoll.org/%{rname}-%{version}.tar.gz
BuildRequires:  bison
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  recoll-devel = %{version}
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  pkgconfig(libexslt)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(xapian-core)
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
cd 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