File xdg-desktop-portal-kde.spec of Package xdg-desktop-portal-kde

# spec file for package xdg-desktop-portal-kde
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%bcond_without lang

%define kf5_version 5.26.0
Name:           xdg-desktop-portal-kde
Version:        5.12.7
Release:        0
Summary:        QT/KF5 backend for xdg-desktop-portal
License:        LGPL-2.1+
Group:          System/Libraries
BuildRequires:  extra-cmake-modules >= %{kf5_version}
BuildRequires:  libQt5PrintSupport-private-headers-devel
BuildRequires:  cmake(KF5CoreAddons) >= %{kf5_version}
BuildRequires:  cmake(KF5I18n) >= %{kf5_version}
BuildRequires:  cmake(KF5Notifications) >= %{kf5_version}
BuildRequires:  cmake(Qt5Core) >= 5.4.0
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5Widgets)
Requires:       xdg-desktop-portal
Recommends:     %{name}-lang
Supplements:    packageand(xdg-desktop-portal:plasma5-desktop)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A Qt/KF5 backend implementation for xdg-desktop-portal

%if %{with lang}

%setup -q

%cmake_kf5 -d build

%make_install -C build
%if %{with lang}
  %find_lang %{name} --with-man --all-name

%dir %{_datadir}/xdg-desktop-portal
%dir %{_datadir}/xdg-desktop-portal/portals

%if %{with lang}
%files lang -f %{name}.lang