File kdenetwork-filesharing.spec of Package kdenetwork5-filesharing
#
# spec file for package kdenetwork-filesharing
#
# Copyright (c) 2023 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/
#
%bcond_without released
Name: kdenetwork-filesharing
Version: 23.08.5
Release: 0
Summary: KDE Network Libraries
License: GPL-2.0-or-later
URL: https://www.kde.org
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
Patch0: 0001-Remove-wrong-group-check-from-group-manager.patch
BuildRequires: PackageKit-Qt5-devel
BuildRequires: extra-cmake-modules
%if 0%{?suse_version} < 1550
# c++-20 required
BuildRequires: gcc10-PIE
BuildRequires: gcc10-c++
%endif
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Declarative)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(QCoro5)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Widgets)
Enhances: dolphin5
# The package was named kdenetwork5-filesharing because the original
# was named kdenetwork4-filesharing, although being a KF5 plugin
# Can be removed at some point (Wolfi, 13.07.2019)
Provides: kdenetwork5-filesharing = %{version}
Obsoletes: kdenetwork5-filesharing < %{version}
Obsoletes: kdenetwork5-filesharing-lang < %{version}
%description
Network File Sharing configuration module and plugin.
Used for configuring Samba shares.
%lang_package
%prep
%autosetup -p1
%build
%if 0%{?suse_version} < 1550
export CXX=g++-10
%endif
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%find_lang %{name} --with-man --all-name
# move kauth helper dbus files to /usr
mv %buildroot%{_kf5_sharedir}/dbus-1/ %buildroot%{_datadir}
%ldconfig_scriptlets
%files
%license LICENSES/*
%{_kf5_appstreamdir}/org.kde.kdenetwork-filesharing.metainfo.xml
%dir %{_kf5_plugindir}/kf5
%dir %{_kf5_plugindir}/kf5/propertiesdialog
%{_kf5_plugindir}/kf5/propertiesdialog/sambausershareplugin.so
%{_kf5_plugindir}/kf5/propertiesdialog/SambaAcl.so
%{_datadir}/dbus-1/system-services/org.kde.filesharing.samba.service
%{_datadir}/dbus-1/system.d/org.kde.filesharing.samba.conf
%{_datadir}/polkit-1/actions/org.kde.filesharing.samba.policy
%{_libexecdir}/kauth/authhelper
%files lang -f %{name}.lang
%changelog