1 Star 0 Fork 10

jeff200902/lshw

forked from src-openEuler/lshw 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lshw.spec 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
chengquan 提交于 2020-02-14 10:46 . Rollback some patches for bugfix
Name: lshw
Version: B.02.18
Release: 21
Summary: Hardware lister
License: GPLv2
URL: http://ezix.org/project/wiki/HardwareLiSter
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
Patch0: lshw-B.02.18-scandir.patch
Patch1: lshw-B.02.18-20cda77.patch
Patch2: lshw-B.02.18-revert-json.patch
Patch3: lshw-B.02.18-cmake.patch
BuildRequires: gcc gcc-c++ cmake gettext
BuildRequires: desktop-file-utils libappstream-glib ninja-build
BuildRequires: python3-devel gtk2-devel >= 2.4
Requires: hwdata
Provides: %{name}-gui = %{version}-%{release}
Obsoletes: %{name}-gui < %{version}-%{release}
%description
lshw (Hardware Lister) is a small tool to provide detailed information
on the hardware configuration of the machine. It can report exact memory
configuration, firmware version, mainboard configuration, CPU version
and speed, cache configuration, bus speed, etc. on DMI-capable x86 or
EFI (IA-64) systems and on some PowerPC machines (PowerMac G4 is known
to work).
%package help
Summary: Doc files for %{name}
BuildArch: noarch
%description help
The %{name}-help package contains doc files for %{name}.
%prep
%setup -q
%patch00 -p1
%patch01 -p1
%patch02 -R -p1
%patch03 -p1
%build
mkdir -p build && cd build
%cmake .. -DNOLOGO=ON -DHWDATA=OFF -DPOLICYKIT=ON -DBUILD_SHARED_LIBS=OFF -GNinja
%ninja_build
%install
cd build
%ninja_install
ln -s gtk-lshw %{buildroot}/%{_sbindir}/lshw-gui
rm -rf %{buildroot}/%{_datadir}/locale/fr/
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
cd build
src/lshw -json -disable usb -disable pcmcia -disable isapnp \
-disable ide -disable scsi -disable dmi -disable memory \
-disable cpuinfo 2>/dev/null | %{__python3} -m json.tool
%files
%license COPYING
%{_bindir}/lshw-gui
%{_sbindir}/*lshw*
%{_datadir}/lshw/artwork
%{_datadir}/lshw/ui/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/gtk-lshw.desktop
%{_datadir}/appdata/gtk-lshw.appdata.xml
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
%files help
%doc README.md
%{_mandir}/man1/lshw.1.gz
%changelog
* Fri Feb 14 2020 chengquan <chengquan3@huawei.com> - B.02.18-21
- Rollback some patches for bugfix
* Mon Jan 13 2020 chengquan <chengquan3@huawei.com> - B.02.18-20
- remove gui function and unrelated patches
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - B.02.18-19
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jeff200902/lshw.git
git@gitee.com:jeff200902/lshw.git
jeff200902
lshw
lshw
master

搜索帮助