deepin-devicemanager/deepin-devicemanager.spec

79 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-07-14 10:32:07 +08:00
Name: deepin-devicemanager
2021-07-12 13:16:16 +08:00
Version: 5.5.9.36
2022-03-11 14:59:58 +08:00
Release: 3
2021-07-12 13:16:16 +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+
2021-07-12 13:16:16 +08:00
URL: https://github.com/linuxdeepin/deepin-devicemanager
Source0: %{name}-%{version}.tar.gz
2022-03-11 14:59:58 +08:00
Patch0: fix-no-open.patch
2020-07-14 10:32:07 +08:00
2021-07-12 13:16:16 +08:00
BuildRequires: gcc-c++
BuildRequires: cmake3
2022-01-30 09:22:18 +08:00
BuildRequires: dtkcore-devel
2021-07-12 13:16:16 +08:00
BuildRequires: dtkwidget-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)
2022-01-30 09:22:18 +08:00
BuildRequires: qt5-qtbase-private-devel
2020-07-14 10:32:07 +08:00
2021-07-12 13:16:16 +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
%description
%{summary}.
2020-07-14 10:32:07 +08:00
%prep
2022-03-11 14:59:58 +08:00
%autosetup -p1
2020-07-14 10:32:07 +08:00
%build
2021-07-12 13:16:16 +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
2021-07-12 13:16:16 +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
2021-07-12 13:16:16 +08:00
%install
%make_install -C build INSTALL_ROOT="%buildroot"
2020-07-14 10:32:07 +08:00
%files
%doc README.md
2021-07-12 13:16:16 +08:00
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-authenticateProxy
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/polkit-1/actions/*.policy
2020-07-14 10:32:07 +08:00
%changelog
2022-03-11 14:59:58 +08:00
* Fri Mar 11 2022 liweigang <liweiganga@uniontech.com> - 5.5.9.36-3
- fix not open
2022-01-30 09:22:18 +08:00
* Sun Jan 30 2022 liweigang <liweiganga@uniontech.com> - 5.5.9.36-2
- fix build error
2021-07-12 13:16:16 +08:00
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.5.9.36-1
- Update 5.5.9.36
2020-08-28 10:38:24 +08:00
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 5.5.4.4-2
- fix compile fail
2020-07-30 15:57:54 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.5.4.4-1
- Package init
2021-07-12 13:16:16 +08:00