%global build_type_safety_c 0 Name: deepin-system-monitor Version: 6.5.3 Release: %autorelease Summary: A more user-friendly system monitor License: GPL-3.0-or-later URL: https://github.com/linuxdeepin/deepin-system-monitor Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(KF5Wayland) BuildRequires: cmake(DtkCore) BuildRequires: cmake(DtkGui) BuildRequires: cmake(DtkWidget) BuildRequires: pkgconfig(libpcap) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: libicu-devel BuildRequires: pkgconfig(gsettings-qt) BuildRequires: pkgconfig(dde-dock) BuildRequires: pkgconfig(libnl-3.0) BuildRequires: pkgconfig(libnl-route-3.0) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(wayland-client) BuildRequires: cmake(PolkitQt5-1) BuildRequires: deepin-gettext-tools BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme Requires: deepin-qt5integration%{?_isa} Recommends: deepin-manual %description %{summary}. %prep %autosetup -p1 sed -i 's|/usr/lib/x86_64-linux-gnu/qt5/bin/lrelease|%{_bindir}/lrelease-qt5|' \ deepin-system-monitor-plugin/translations/translate_generation.sh %build # https://github.com/linuxdeepin/developer-center/issues/7217 %cmake -GNinja -DUSE_DEEPIN_WAYLAND=OFF %cmake_build %install %cmake_install %find_lang %{name} --with-qt %find_lang %{name}-plugin --with-qt %find_lang %{name}-plugin-popup --with-qt rm %{buildroot}%{_datadir}/%{name}/translations/%{name}.qm %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files -f %{name}.lang -f %{name}-plugin.lang -f %{name}-plugin-popup.lang %doc README.md %license LICENSE %{_bindir}/deepin-system-monitor %{_bindir}/deepin-system-monitor-server %{_bindir}/deepin-system-monitor-plugin-popup %{_prefix}/lib/deepin-daemon/deepin-system-monitor-system-server %{_prefix}/lib/dde-dock/plugins/libdeepin-system-monitor-plugin.so %{_libdir}/deepin-service-manager/libdeepin-system-monitor-daemon.so %{_datadir}/applications/deepin-system-monitor.desktop %{_datadir}/dbus-1/services/*.service %{_datadir}/dbus-1/system-services/org.deepin.SystemMonitorSystemServer.service %{_datadir}/dbus-1/system.d/org.deepin.SystemMonitorSystemServer.conf %{_unitdir}/deepin-system-monitor-system-server.service %{_datadir}/deepin-log-viewer/deepin-log.conf.d/org.deepin.system-monitor.json %{_datadir}/deepin-service-manager/other/deepin-system-monitor-system-server.json %{_datadir}/glib-2.0/schemas/* %{_datadir}/polkit-1/actions/*.policy %{_datadir}/deepin-manual/ %{_datadir}/deepin-service-manager/user/deepin-system-monitor-daemon.json %{_datadir}/dsg/configs/org.deepin.system-monitor/*.json %changelog %autochangelog