2020-07-14 10:32:07 +08:00
|
|
|
|
Name: deepin-devicemanager
|
2023-10-10 14:11:56 +08:00
|
|
|
|
Version: 5.6.32
|
2024-03-22 16:33:39 +08:00
|
|
|
|
Release: 3
|
2023-10-10 14:11:56 +08:00
|
|
|
|
Summary: Device Manager is a handy tool for viewing hardware information and managing the devices
|
2020-07-14 10:32:07 +08:00
|
|
|
|
License: GPLv3+
|
2023-10-10 14:11:56 +08:00
|
|
|
|
URL: https://github.com/linuxdeepin/deepin-devicemanager
|
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2024-03-22 16:33:39 +08:00
|
|
|
|
Patch0: 0001-fix-dmidecode17.patch
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
|
BuildRequires: dtkwidget-devel
|
|
|
|
|
|
BuildRequires: dtkgui-devel
|
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
|
|
BuildRequires: qt5-rpm-macros
|
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
|
|
BuildRequires: pkgconfig(dframeworkdbus)
|
2023-10-23 16:15:35 +08:00
|
|
|
|
BuildRequires: zeromq-devel
|
2023-10-10 14:11:56 +08:00
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
Requires: smartmontools
|
|
|
|
|
|
Requires: dmidecode
|
|
|
|
|
|
Requires: xorg-x11-server-utils
|
|
|
|
|
|
Requires: hwinfo
|
|
|
|
|
|
Requires: cups
|
|
|
|
|
|
Requires: upower
|
|
|
|
|
|
Requires: deepin-shortcut-viewer
|
|
|
|
|
|
Requires: lshw
|
|
|
|
|
|
Requires: util-linux
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
%description
|
|
|
|
|
|
%{summary}.
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-03-22 16:33:39 +08:00
|
|
|
|
%autosetup -p1
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
|
|
|
|
|
%build
|
2023-10-10 14:11:56 +08:00
|
|
|
|
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
|
|
|
|
|
export PATH=%{_qt5_bindir}:$PATH
|
|
|
|
|
|
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
mkdir build && pushd build
|
|
|
|
|
|
%cmake ../ -DCMAKE_BUILD_TYPE=Release -DAPP_VERSION=%{version} -DVERSION=%{version}
|
|
|
|
|
|
%make_build
|
2020-07-14 10:32:07 +08:00
|
|
|
|
popd
|
|
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
%install
|
|
|
|
|
|
%make_install -C build INSTALL_ROOT="%buildroot"
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
systemctl enable deepin-devicemanager-server.service
|
|
|
|
|
|
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
%doc README.md
|
2023-10-10 14:11:56 +08:00
|
|
|
|
%license LICENSE
|
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
%{_datadir}/%{name}/translations/*.qm
|
|
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
|
|
|
/lib/systemd/system/deepin-devicemanager-server.service
|
|
|
|
|
|
%{_bindir}/deepin-devicemanager-server
|
|
|
|
|
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-devicemanager/device-manager/*
|
|
|
|
|
|
/etc/dbus-1/system.d/com.deepin.devicemanager.conf
|
2020-07-14 10:32:07 +08:00
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-22 16:33:39 +08:00
|
|
|
|
* Fri Mar 22 2024 liweigang <liweiganga@uniontech.com> - 5.6.32-3
|
|
|
|
|
|
- fix: Memory units in Device Manager do not match the memory rate units queried by typing dmidecode17 in the terminal
|
|
|
|
|
|
|
2023-11-17 15:56:38 +08:00
|
|
|
|
* Fri Nov 17 2023 hanshuang <hanshuang@uniontech.com> - 5.6.32-2
|
|
|
|
|
|
- modify version info
|
|
|
|
|
|
|
2023-10-10 14:11:56 +08:00
|
|
|
|
* Mon Jun 13 2022 uoser <uoser@uniontech.com> - 5.6.32-1.01
|
|
|
|
|
|
- update: update to 5.6.32-1.01
|