2017-09-14 19:02:39 +02:00
|
|
|
#
|
|
|
|
# spec file for package drkonqi5
|
|
|
|
#
|
2023-01-04 21:25:16 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-09-14 19:02:39 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-13 09:29:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-14 19:02:39 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-09-17 12:40:19 +02:00
|
|
|
%define kf5_version 5.98.0
|
2022-01-19 21:18:38 +01:00
|
|
|
%bcond_without released
|
2017-09-14 19:02:39 +02:00
|
|
|
Name: drkonqi5
|
|
|
|
# Full Plasma 5 version (e.g. 5.9.1)
|
2021-07-07 09:52:57 +02:00
|
|
|
%{!?_plasma5_bugfix: %define _plasma5_bugfix %{version}}
|
2017-09-14 19:02:39 +02:00
|
|
|
# Latest ABI-stable Plasma (e.g. 5.8 in KF5, but 5.9.1 in KUF)
|
2018-05-21 11:07:07 +02:00
|
|
|
%{!?_plasma5_version: %define _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')}
|
2023-08-01 21:42:17 +02:00
|
|
|
Version: 5.27.7
|
2017-09-14 19:02:39 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Helper for debugging and reporting crashes
|
2018-06-19 23:42:07 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-09-14 19:02:39 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
2020-02-25 19:29:57 +01:00
|
|
|
URL: http://www.kde.org/
|
2023-02-22 21:25:15 +01:00
|
|
|
Source: https://download.kde.org/stable/plasma/%{version}/drkonqi-%{version}.tar.xz
|
2022-01-19 21:18:38 +01:00
|
|
|
%if %{with released}
|
2023-02-22 21:25:15 +01:00
|
|
|
Source1: https://download.kde.org/stable/plasma/%{version}/drkonqi-%{version}.tar.xz.sig
|
2018-09-19 06:47:23 +02:00
|
|
|
Source2: plasma.keyring
|
|
|
|
%endif
|
2022-09-17 12:40:19 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{kf5_version}
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(KF5Completion) >= %{kf5_version}
|
2022-06-22 08:39:04 +02:00
|
|
|
BuildRequires: cmake(KF5Config) >= %{kf5_version}
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(KF5CoreAddons) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Crash) >= %{kf5_version}
|
2022-05-25 07:38:06 +02:00
|
|
|
BuildRequires: cmake(KF5Declarative) >= %{kf5_version}
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(KF5I18n) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5IdleTime) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5JobWidgets) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5KIO) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Notifications) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Service) >= %{kf5_version}
|
2020-05-19 15:35:04 +02:00
|
|
|
BuildRequires: cmake(KF5SyntaxHighlighting) >= %{kf5_version}
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(KF5Wallet) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5WidgetsAddons) >= %{kf5_version}
|
2020-01-17 14:03:31 +01:00
|
|
|
BuildRequires: cmake(KF5WindowSystem) >= %{kf5_version}
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(KF5XmlRpcClient) >= %{kf5_version}
|
2022-09-17 12:40:19 +02:00
|
|
|
# Only there to make it build, remove once upstream makes it optional
|
|
|
|
BuildRequires: cmake(KUserFeedback)
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(Qt5Concurrent)
|
2022-09-17 12:40:19 +02:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.0
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(Qt5DBus)
|
2022-05-25 07:38:06 +02:00
|
|
|
BuildRequires: cmake(Qt5Quick)
|
2017-09-14 19:02:39 +02:00
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
BuildRequires: cmake(Qt5X11Extras)
|
2022-09-17 12:40:19 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
BuildRequires: gcc10-PIE
|
|
|
|
BuildRequires: gcc10-c++
|
|
|
|
%endif
|
2022-06-13 14:49:34 +02:00
|
|
|
# QML runtime dependencies (not detected automatically because the QML code is embedded as Qt Resource)
|
|
|
|
# if kirigami2 is not installed, it falls back to the old QWidgets-based UI though and doesn't need them...
|
|
|
|
Requires: (kdeclarative-components if kirigami2)
|
|
|
|
Requires: (kitemmodels-imports if kirigami2)
|
|
|
|
Requires: (syntax-highlighting-imports if kirigami2)
|
2018-07-09 13:27:06 +02:00
|
|
|
# We want useful backtraces
|
|
|
|
Recommends: gdb
|
2019-03-10 10:18:42 +01:00
|
|
|
# we want symbol install support
|
|
|
|
Recommends: ptools
|
2017-09-14 19:02:39 +02:00
|
|
|
Recommends: %{name}-lang
|
2022-09-17 12:40:19 +02:00
|
|
|
# In theory the coredump integration could be split into a subpackage
|
|
|
|
# and supplement systemd-coredump, but it's small enough to not be worth it.
|
|
|
|
# This however means there can't be any dependency on systemd-coredump, to
|
|
|
|
# not pull it in unconditionally.
|
|
|
|
%{?systemd_ordering}
|
2017-09-14 19:02:39 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The KDE Crash Handler gives the user feedback if a program has crashed.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
2023-01-31 15:47:02 +01:00
|
|
|
%autosetup -p1 -n drkonqi-%{version}
|
2017-09-14 19:02:39 +02:00
|
|
|
|
|
|
|
%build
|
2022-09-17 12:40:19 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
export CXX=g++-10
|
|
|
|
%endif
|
2023-01-23 14:54:46 +01:00
|
|
|
# Turn off sentry unconditionally. It needs qdbus -> -qt5 fixing
|
|
|
|
# before it can be used.
|
|
|
|
%{cmake_kf5 -d build -- \
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
-DWITH_GDB12=ON \
|
|
|
|
%endif
|
|
|
|
-DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} \
|
|
|
|
-DWITH_SENTRY=OFF}
|
|
|
|
|
2020-02-08 01:13:08 +01:00
|
|
|
%cmake_build
|
2017-09-14 19:02:39 +02:00
|
|
|
|
|
|
|
%install
|
2023-01-23 14:54:46 +01:00
|
|
|
%kf5_makeinstall -C build
|
2017-09-14 19:02:39 +02:00
|
|
|
|
2023-01-23 14:54:46 +01:00
|
|
|
%{kf5_find_lang}
|
2017-09-14 19:02:39 +02:00
|
|
|
|
2023-01-23 14:54:46 +01:00
|
|
|
install -p -D -m755 src/doc/examples/installdbgsymbols_suse.sh \
|
|
|
|
%{buildroot}%{_kf5_bindir}/installdbgsymbols.sh
|
2017-09-14 19:02:39 +02:00
|
|
|
|
2022-09-17 12:40:19 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre drkonqi-coredump-processor@.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{systemd_user_post drkonqi-coredump-cleanup.service drkonqi-coredump-cleanup.timer drkonqi-coredump-launcher.socket}
|
|
|
|
%service_add_post drkonqi-coredump-processor@.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%{systemd_user_preun drkonqi-coredump-cleanup.service drkonqi-coredump-cleanup.timer drkonqi-coredump-launcher.socket}
|
|
|
|
%service_del_preun drkonqi-coredump-processor@.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{systemd_user_postun drkonqi-coredump-cleanup.service drkonqi-coredump-cleanup.timer drkonqi-coredump-launcher.socket}
|
2023-03-29 13:04:45 +02:00
|
|
|
%service_del_postun_without_restart drkonqi-coredump-processor@.service
|
2022-09-17 12:40:19 +02:00
|
|
|
|
2017-09-14 19:02:39 +02:00
|
|
|
%files
|
2021-01-24 22:11:01 +01:00
|
|
|
%license LICENSES/*
|
2017-09-14 19:02:39 +02:00
|
|
|
%{_kf5_bindir}/installdbgsymbols.sh
|
|
|
|
%{_kf5_sharedir}/drkonqi/
|
2018-01-17 16:26:15 +01:00
|
|
|
%{_kf5_applicationsdir}/org.kde.drkonqi.desktop
|
2018-05-21 11:07:07 +02:00
|
|
|
%{_kf5_debugdir}/drkonqi.categories
|
2022-03-07 22:43:55 +01:00
|
|
|
%{_libexecdir}/drkonqi
|
2017-09-14 19:02:39 +02:00
|
|
|
|
2022-09-17 12:40:19 +02:00
|
|
|
%{_kf5_bindir}/drkonqi-coredump-gui
|
|
|
|
%{_unitdir}/drkonqi-coredump-processor@.service
|
|
|
|
%{_userunitdir}/drkonqi-coredump-cleanup.service
|
|
|
|
%{_userunitdir}/drkonqi-coredump-cleanup.timer
|
|
|
|
%{_userunitdir}/drkonqi-coredump-launcher.socket
|
|
|
|
%{_userunitdir}/drkonqi-coredump-launcher@.service
|
|
|
|
%dir %{_kf5_plugindir}/drkonqi/
|
|
|
|
%{_kf5_plugindir}/drkonqi/KDECoredumpNotifierTruck.so
|
|
|
|
%{_libexecdir}/drkonqi-coredump-cleanup
|
|
|
|
%{_libexecdir}/drkonqi-coredump-launcher
|
|
|
|
%{_libexecdir}/drkonqi-coredump-processor
|
|
|
|
%{_kf5_applicationsdir}/org.kde.drkonqi.coredump.gui.desktop
|
|
|
|
|
2017-09-14 19:02:39 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|