1 Star 0 Fork 2

xingwei-liu/deepin-system-monitor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deepin-system-monitor.spec 3.01 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-11-04 18:04 . update to 5.8.28
%global debug_package %{nil}
Name: deepin-system-monitor
Version: 5.8.28
Release: 1%{?dist}
Summary: A more user-friendly system monitor
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-system-monitor
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: qt5-devel
BuildRequires: cmake
BuildRequires: pkgconfig(dtkwidget)
BuildRequires: pkgconfig(dtkcore)
BuildRequires: pkgconfig(dtkgui)
# BuildRequires: pkgconfig(dtkwm)
BuildRequires: pkgconfig(libprocps)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xtst)
BuildRequires: xcb-util-wm-devel
# BuildRequires: pkgconfig(Qt5DBus)
# BuildRequires: pkgconfig(Qt5Gui)
# BuildRequires: pkgconfig(Qt5Network)
# BuildRequires: pkgconfig(Qt5Widgets)
# BuildRequires: pkgconfig(Qt5X11Extras)
# BuildRequires: qt5-linguist
BuildRequires: libpcap-devel
BuildRequires: libcap-devel
# BuildRequires: ncurses-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: deepin-gettext-tools
# 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
Recommends: deepin-manual
%description
%{summary}.
%prep
%autosetup
# %setup -q
####sed -i 's|lrelease|lrelease-qt5|' translations/translate_generation.sh
# %patch0 -p1
%build
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
%install
%make_install -C build INSTALL_ROOT="%buildroot"
# %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
%files
%doc README.md
%license LICENSE
%caps(cap_kill,cap_net_raw,cap_dac_read_search,cap_sys_ptrace=+ep) %{_bindir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/polkit-1/actions/com.deepin.pkexec.deepin-system-monitor.policy
%{_datadir}/deepin-manual/manual-assets/application/deepin-system-monitor/system-monitor/*
%changelog
* Fri Dec 04 2022 uoser <uoser@uniontech.com> - 5.8.28-1
- update: update to 5.8.28-1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingwei-liu/deepin-system-monitor.git
git@gitee.com:xingwei-liu/deepin-system-monitor.git
xingwei-liu
deepin-system-monitor
deepin-system-monitor
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385