File plasma-settings.spec of Package plasma-settings
#
# spec file for package plasma-settings
#
# 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/
#
%global __requires_exclude qmlimport\\((org\\.kde\\.(plasma\\.settings|timesettings|kcm\\.virtualkeyboard|kcm\\.power\\.mobile\\.private\\.1)|cellularnetworkkcm)
Name: plasma-settings
Version: 23.01.0
Release: 0
License: GPL-2.0-only
Summary: Convergent Plasma Mobile settings application
URL: https://invent.kde.org/plasma-mobile/plasma-settings
Source0: plasma-settings-%{version}.tar.xz
BuildRequires: AppStream
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Auth)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5Declarative)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5KirigamiAddons)
BuildRequires: cmake(KF5ModemManagerQt)
BuildRequires: cmake(KF5NetworkManagerQt)
BuildRequires: cmake(KF5Plasma)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(gobject-2.0)
Requires: accountsservice
Requires: polkit-kde-agent-5
Requires: sound-theme-freedesktop
Requires: (pulseaudio-module-gsettings if pulseaudio)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Convergent settings application for Plasma Mobile.
Notice that Wi-Fi, mobile broadband and hotspot KConfig
modules are provided separately, by plasma-nm.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%kf5_post_install
%fdupes %{buildroot}%{_prefix}
# Create manifest for i18n.
%find_lang %{name} --all-name
%files -f %{name}.lang
%defattr(-,root,root,-)
%license LICENSES/*
%doc README.md
%{_kf5_bindir}/plasma-settings
%{_kf5_sharedir}/applications/org.kde.mobile.plasmasettings.desktop
%{_kf5_plugindir}/kcms/
%{_kf5_sharedir}/kpackage/
%changelog