File kde-print-manager.spec of Package kde-print-manager
#
# spec file for package kde-print-manager
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 24.9.90 Raymond Wooninck <tittiatcoke@gmail.com>
#
# 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 print-manager
%define kf6_version 6.14.0
%define qt6_version 6.8.0
%bcond_without released
Name: kde-print-manager
Version: 24.05.0
Release: 0
Summary: Tools for managing print jobs and printers
License: GPL-2.0-or-later
URL: https://www.kde.org
Source: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
BuildRequires: cups
BuildRequires: cups-backends
BuildRequires: cups-client
BuildRequires: cups-devel >= 2.4
BuildRequires: cups-pk-helper
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: system-config-printer-dbus-service
BuildRequires: cmake(KF6Config) >= %{kf6_version}
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_version}
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version}
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
BuildRequires: cmake(KF6Kirigami) >= %{kf6_version}
BuildRequires: cmake(KF6Notifications) >= %{kf6_version}
BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version}
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
BuildRequires: cmake(Plasma) >= 6.0.0
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
BuildRequires: cmake(Qt6DBus) >= %{qt6_version}
BuildRequires: cmake(Qt6Network) >= %{qt6_version}
BuildRequires: cmake(Qt6Qml) >= %{qt6_version}
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
Requires: kf6-kcmutils-imports >= %{kf6_version}
Requires: kf6-kconfig-imports >= %{kf6_version}
Requires: kf6-kirigami-imports >= %{kf6_version}
Requires: kf6-kitemmodels-imports >= %{kf6_version}
Requires: libplasma6-components
Requires: plasma6-print-manager
Requires: qt6-declarative-imports >= %{qt6_version}
Requires: system-config-printer-dbus-service
Obsoletes: print-manager5 < %{version}
Provides: print-manager5 = %{version}
Provides: dbus(com.redhat.NewPrinterNotification)
%description
kde-print-manager provides tools for managing print jobs and printers.
%lang_package
%prep
%autosetup -p1 -n %{rname}-%{version}
%build
%cmake_kf6 -DCUPS_INCLUDE_DIR=%{_includedir}/cups
%kf6_build
%install
%kf6_install
%find_lang %{name} --all-name
%ldconfig_scriptlets
%files
%license LICENSES/*
%doc README.md
%{_kf6_applicationsdir}/kcm_printer_manager.desktop
%{_kf6_applicationsdir}/org.kde.ConfigurePrinter.desktop
%{_kf6_applicationsdir}/org.kde.PrintQueue.desktop
%{_kf6_appstreamdir}/org.kde.print-manager.metainfo.xml
%{_kf6_bindir}/configure-printer
%{_kf6_bindir}/kde-print-queue
%{_kf6_debugdir}/pmlogs.categories
%{_kf6_libdir}/libkcupslib.so.*
%{_kf6_notificationsdir}/printmanager.notifyrc
%{_kf6_plugindir}/kf6/kded/printmanager.so
%{_kf6_plugindir}/plasma/applets/org.kde.plasma.printmanager.so
%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_printer_manager.so
%{_kf6_qmldir}/org/kde/plasma/printmanager/
%files lang -f %{name}.lang
%changelog