2019-09-30 11:02:47 -04:00
|
|
|
Name: lshw
|
|
|
|
|
Version: B.02.18
|
2020-01-13 11:04:30 +08:00
|
|
|
Release: 20
|
2019-09-30 11:02:47 -04:00
|
|
|
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
|
2020-01-13 11:04:30 +08:00
|
|
|
Patch1: lshw-B.02.18-revert-json.patch
|
2019-09-30 11:02:47 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++ cmake gettext
|
|
|
|
|
BuildRequires: desktop-file-utils libappstream-glib ninja-build
|
|
|
|
|
BuildRequires: python3-devel gtk2-devel >= 2.4
|
|
|
|
|
Requires: hwdata
|
|
|
|
|
|
|
|
|
|
%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
|
2020-01-13 11:04:30 +08:00
|
|
|
%autosetup -p1
|
2019-09-30 11:02:47 -04:00
|
|
|
|
|
|
|
|
%build
|
2020-01-13 11:04:30 +08:00
|
|
|
%make_build
|
2019-09-30 11:02:47 -04:00
|
|
|
|
|
|
|
|
%install
|
2020-01-13 11:04:30 +08:00
|
|
|
%make_install
|
2019-09-30 11:02:47 -04:00
|
|
|
ln -s gtk-lshw %{buildroot}/%{_sbindir}/lshw-gui
|
|
|
|
|
|
|
|
|
|
rm -rf %{buildroot}/%{_datadir}/locale/fr/
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_sbindir}/*lshw*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_mandir}/man1/lshw.1.gz
|
2020-01-13 11:04:30 +08:00
|
|
|
/usr/share/lshw/*
|
2019-09-30 11:02:47 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-01-13 11:04:30 +08:00
|
|
|
* Mon Jan 13 2020 chengquan <chengquan3@huawei.com> - B.02.18-20
|
|
|
|
|
- remove gui function and unrelated patches
|
|
|
|
|
|
2019-09-30 11:02:47 -04:00
|
|
|
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - B.02.18-19
|
|
|
|
|
- Package init
|