ukui-system-monitor/ukui-system-monitor.spec

136 lines
3.6 KiB
RPMSpec
Raw Normal View History

2020-07-23 11:25:29 +08:00
%define debug_package %{nil}
Name: ukui-system-monitor
2020-11-03 14:22:48 +08:00
Version: 1.0.1
Release: 14
2020-07-23 11:25:29 +08:00
Summary: A simple system monitor written in QT
License: GPL-3.0-or-later
2020-07-23 11:25:29 +08:00
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake >= 2.6
BuildRequires: qt5-qtbase-devel >= 5.1
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtscript-devel
BuildRequires: qt5-qttools-devel
BuildRequires: pkgconf
BuildRequires: glib2-devel >= 2.46.0
BuildRequires: libgtop2-devel
BuildRequires: systemd-devel >= 209
BuildRequires: gsettings-qt-devel
BuildRequires: qt5-qtx11extras-devel
2020-11-03 14:22:48 +08:00
BuildRequires: libpcap-devel
BuildRequires: kf5-kwindowsystem-devel
2020-07-23 11:25:29 +08:00
#Requires: inotify-hookable
#Requires: bsdutils
Requires: hdparm
Requires: lm_sensors
Requires: ethtool
Requires: lshw
Requires: dmidecode
Requires: kernel-tools
Requires: pciutils
2020-11-03 14:22:48 +08:00
Requires: libpcap
2020-07-23 11:25:29 +08:00
2020-12-16 16:45:10 +08:00
patch0: 0001-removes-transparency.patch
2021-09-01 10:59:00 +08:00
patch1: hide_idle_rate.patch
2021-10-28 12:03:41 +08:00
patch2: 0001-add-storage-check.patch
patch3: 0002-Fix-the-wrong-maintainer-and-update-changelog.patch
2021-11-05 16:58:23 +08:00
patch4: 0003-Add-libglib2.0-bin-to-Depends.patch
2021-11-08 11:06:35 +08:00
patch5: 0004-Update-README.md.patch
patch6: 0005-Remove-LICENSE-which-is-same-with-COPYING.patch
2021-12-07 20:58:43 +08:00
patch7: 0006-Update-modification-record-in-changelog.patch
patch8: fix-the-bug-about-process-filesystem.patch
patch9: 0007-Fix-the-segmentfault-without-org.ukui.style.patch
2021-12-22 11:58:52 +08:00
patch10: 0008-Update-changelog.patch
2020-07-23 11:25:29 +08:00
%description
A simple system monitor written in QT
%prep
%setup -q
2020-12-16 16:45:10 +08:00
%patch0 -p1
2021-09-01 10:59:00 +08:00
%patch1 -p1
2021-10-28 12:03:41 +08:00
%patch2 -p1
%patch3 -p1
2021-11-05 16:58:23 +08:00
%patch4 -p1
2021-11-08 11:06:35 +08:00
%patch5 -p1
%patch6 -p1
2021-12-07 20:58:43 +08:00
%patch7 -p1
%patch8 -p1
%patch9 -p1
2021-12-22 11:58:52 +08:00
%patch10 -p1
2020-07-23 11:25:29 +08:00
%build
2020-11-03 14:22:48 +08:00
export PATH=%{_qt5_bindir}:$PATH
mkdir qmake-build
pushd qmake-build
2020-12-16 16:45:10 +08:00
%{qmake_qt5} ..
2020-11-03 14:22:48 +08:00
%{make_build}
popd
2020-07-23 11:25:29 +08:00
%install
2020-11-03 14:22:48 +08:00
pushd qmake-build
%{make_install} INSTALL_ROOT=%{buildroot}
popd
2020-07-23 11:25:29 +08:00
2020-11-03 14:22:48 +08:00
%post
2022-04-19 10:50:00 +08:00
setcap "cap_net_admin,cap_net_raw+ep" /usr/bin/ukui-system-monitor &> /dev/null || :
set -e &> /dev/null || :
glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null || :
2020-07-23 11:25:29 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
2020-11-03 14:22:48 +08:00
%doc debian/changelog
2020-07-23 11:25:29 +08:00
%{_bindir}/ukui-system-monitor
%{_datadir}/applications/ukui-system-monitor.desktop
2020-11-03 14:22:48 +08:00
%{_datadir}/icons/hicolor/ukui-system-monitor.png
%{_datadir}/glib-2.0/schemas/org.ukui.system-monitor.menu.gschema.xml
2020-07-23 11:25:29 +08:00
%changelog
* Wed May 25 2022 tanyulong<tanyulong@kylinos.cn> - 1.0.1-14
- Improve the project according to the requirements of compliance improvement
2022-04-19 10:50:00 +08:00
* Tue Apr 19 2022 douyan <douyan@kylimos.cn> - 1.0.1-13
- fix first install post script issue
2021-12-22 11:58:52 +08:00
* Wed Dec 22 2021 pei-jiankang <peijiankang@kylimos.cn> - 1.0.1-12
- Update changelog
* Tue Dec 21 2021 pei-jiankang <peijiankang@kylimos.cn> - 1.0.1-11
- Fix the segmentfault without org.ukui.style
* Tue Dec 09 2021 douyan <douyan@kylimos.cn> - 1.0.1-10
- fix the bug about process and filesystem
2021-12-07 20:58:43 +08:00
* Tue Dec 07 2021 tanyulong <tanyulong@kylimos.cn> - 1.0.1-9
- Update modification record in changelog
* Tue Nov 09 2021 tanyulong <tanyulong@kylimos.cn> - 1.0.1-8
- Remove LICENSE which is same with COPYING
2021-11-08 11:06:35 +08:00
* Fri Nov 05 2021 tanyulong <tanyulong@kylimos.cn> - 1.0.1-7
- Update README.md
2021-11-05 16:58:23 +08:00
* Fri Nov 05 2021 tanyulong <tanyulong@kylimos.cn> - 1.0.1-6
- Add libglib2.0 bin to Depends
* Tue Nov 02 2021 tanyulong <tanyulong@kylinos.cn> - 1.0.1-5
- Fix the wrong maintainer and update changelog
2021-10-28 12:03:41 +08:00
* Thu Oct 28 2021 tanyulong <tanyulong@kylinos.cn> - 1.0.1-4
- add storage check
2021-09-01 10:59:00 +08:00
* Wed Sep 1 2021 douyan <douyan@kylinos.cn> - 1.0.1-3
- hide idle rate
2020-12-16 16:45:10 +08:00
* Wed Dec 16 2020 lvhan <lvhan@kylinos.cn> - 1.0.1-2
- removes transparency
2020-11-03 14:22:48 +08:00
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 1.0.1-1
- update to upstream version 1.0.0-1+1027
2020-07-23 11:25:29 +08:00
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 0.1.1-1
2020-12-16 16:45:10 +08:00
- Init package for openEuler