2022-12-21 15:46:49 +08:00
|
|
|
##%global debug_package %{nil}
|
|
|
|
|
%define pkgrelease 3
|
2022-07-19 10:20:01 +08:00
|
|
|
%if 0%{?openeuler}
|
|
|
|
|
%define specrelease %{pkgrelease}
|
|
|
|
|
%else
|
|
|
|
|
## allow specrelease to have configurable %%{?dist} tag in other distribution
|
|
|
|
|
%define specrelease %{pkgrelease}%{?dist}
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-07-14 10:55:31 +08:00
|
|
|
Name: deepin-system-monitor
|
2022-07-19 10:20:01 +08:00
|
|
|
Version: 5.8.11
|
|
|
|
|
|
|
|
|
|
Release: %{specrelease}
|
2020-07-14 10:55:31 +08:00
|
|
|
Summary: A more user-friendly system monitor
|
|
|
|
|
License: GPLv3
|
|
|
|
|
URL: https://github.com/linuxdeepin/deepin-system-monitor
|
2022-07-19 10:20:01 +08:00
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2022-11-11 10:08:35 +08:00
|
|
|
Patch0: 0001-procps-ng-update-4.0.0.patch
|
2021-07-07 16:05:21 +08:00
|
|
|
|
|
|
|
|
BuildRequires: qt5-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
|
|
BuildRequires: dtkwidget-devel
|
|
|
|
|
BuildRequires: dtkcore-devel
|
|
|
|
|
BuildRequires: pkgconfig(dtkgui)
|
2022-07-19 10:20:01 +08:00
|
|
|
# BuildRequires: pkgconfig(dtkwm)
|
2020-07-14 10:55:31 +08:00
|
|
|
|
2022-11-11 10:08:35 +08:00
|
|
|
BuildRequires: pkgconfig(libproc-2)
|
2020-07-14 10:55:31 +08:00
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
|
BuildRequires: pkgconfig(xcb-util)
|
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
|
BuildRequires: pkgconfig(xtst)
|
2022-07-19 10:20:01 +08:00
|
|
|
BuildRequires: xcb-util-wm-devel
|
|
|
|
|
# BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
|
# BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
|
# BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
|
# BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
|
# BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
|
|
# BuildRequires: qt5-linguist
|
2020-07-14 10:55:31 +08:00
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
|
BuildRequires: libcap-devel
|
2022-07-19 10:20:01 +08:00
|
|
|
# BuildRequires: ncurses-devel
|
2020-07-14 10:55:31 +08:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: libappstream-glib
|
2022-07-19 10:20:01 +08:00
|
|
|
BuildRequires: deepin-gettext-tools
|
2022-02-08 14:36:13 +08:00
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
2022-07-19 10:20:01 +08:00
|
|
|
# BuildRequires: dtkwm-devel
|
|
|
|
|
# BuildRequires: qt5-qtmultimedia-devel
|
|
|
|
|
# BuildRequires: dtkcore-devel >= 5.1
|
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
|
BuildRequires: libnl3-devel
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
# BuildRequires: pkgconfig(libnl-route-3)
|
|
|
|
|
#Requires: hicolor-icon-theme
|
2020-07-14 10:55:31 +08:00
|
|
|
Recommends: deepin-manual
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-11-11 10:08:35 +08:00
|
|
|
%autosetup -p1
|
2022-07-19 10:20:01 +08:00
|
|
|
# %setup -q
|
|
|
|
|
####sed -i 's|lrelease|lrelease-qt5|' translations/translate_generation.sh
|
|
|
|
|
|
|
|
|
|
# %patch0 -p1
|
2020-07-14 10:55:31 +08:00
|
|
|
|
|
|
|
|
%build
|
2021-07-07 16:05:21 +08:00
|
|
|
export PATH=%{_qt5_bindir}:$PATH
|
|
|
|
|
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
|
|
|
|
mkdir build && pushd build
|
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
2020-07-14 10:55:31 +08:00
|
|
|
|
|
|
|
|
%install
|
2021-07-07 16:05:21 +08:00
|
|
|
%make_install -C build INSTALL_ROOT="%buildroot"
|
2020-07-14 10:55:31 +08:00
|
|
|
|
2022-07-19 10:20:01 +08:00
|
|
|
# %check
|
|
|
|
|
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
|
|
|
|
#appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if command -v setcap > /dev/null; then
|
|
|
|
|
if setcap cap_net_raw,cap_dac_read_search,cap_sys_ptrace+ep /usr/bin/deepin-system-monitor;then
|
|
|
|
|
chmod u-s /usr/bin/deepin-system-monitor
|
|
|
|
|
else
|
|
|
|
|
echo "Setcap failed, falling back to setuid"
|
|
|
|
|
chmod u+s /usr/bin/deepin-system-monitor
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "Setcap is not installed, falling back to setuid"
|
|
|
|
|
chmod u+s /usr/bin/deepin-system-monitor
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-14 10:55:31 +08:00
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%caps(cap_kill,cap_net_raw,cap_dac_read_search,cap_sys_ptrace=+ep) %{_bindir}/%{name}
|
2021-07-07 16:05:21 +08:00
|
|
|
%{_bindir}/%{name}
|
2020-07-14 10:55:31 +08:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
2021-07-07 16:05:21 +08:00
|
|
|
%{_datadir}/%{name}/translations/*.qm
|
2020-07-14 10:55:31 +08:00
|
|
|
%{_datadir}/polkit-1/actions/com.deepin.pkexec.deepin-system-monitor.policy
|
2022-07-19 10:20:01 +08:00
|
|
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-system-monitor/system-monitor/*
|
2020-07-14 10:55:31 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2022-12-21 15:46:49 +08:00
|
|
|
* Wed Dec 21 2022 liweigang <liweiganga@uniontech.com> - 5.8.11-3
|
|
|
|
|
- enable debuginfo for fix strip
|
|
|
|
|
|
2022-11-11 10:08:35 +08:00
|
|
|
* Fri Nov 11 2022 liweigang <liweiganga@uniontech.com> - 5.8.11-2
|
|
|
|
|
- feat: procps-ng update 4.0.0
|
|
|
|
|
|
2022-07-19 10:20:01 +08:00
|
|
|
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 5.8.11-1
|
|
|
|
|
- update to 5.8.11
|
|
|
|
|
|
2022-02-08 14:36:13 +08:00
|
|
|
* Tue Feb 08 2022 liweigang <liweiganga@uniontech.com> - 5.6.11.13-3
|
|
|
|
|
- fix build error
|
|
|
|
|
|
2021-07-29 10:20:14 +08:00
|
|
|
* Thu Jul 29 2021 weidong <weidong@uniontech.com> - 5.6.11.13-2
|
|
|
|
|
- Fix gcc10.3 compilation deepin-system-monitor failed
|
|
|
|
|
|
2021-07-07 16:05:21 +08:00
|
|
|
* Wed Jul 07 2021 weidong <weidong@uniontech.com> - 5.6.11.13-1
|
|
|
|
|
- Update to 5.6.11.13
|
|
|
|
|
|
2020-07-30 16:40:04 +08:00
|
|
|
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-1
|
|
|
|
|
- Package init
|