remove gui function and unrelated patches
This commit is contained in:
parent
ac93bdcde3
commit
b7fc03f574
39
lshw.spec
39
lshw.spec
@ -1,21 +1,17 @@
|
|||||||
Name: lshw
|
Name: lshw
|
||||||
Version: B.02.18
|
Version: B.02.18
|
||||||
Release: 19
|
Release: 20
|
||||||
Summary: Hardware lister
|
Summary: Hardware lister
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://ezix.org/project/wiki/HardwareLiSter
|
URL: http://ezix.org/project/wiki/HardwareLiSter
|
||||||
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
|
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
|
||||||
Patch0: lshw-B.02.18-scandir.patch
|
Patch0: lshw-B.02.18-scandir.patch
|
||||||
Patch1: lshw-B.02.18-20cda77.patch
|
Patch1: lshw-B.02.18-revert-json.patch
|
||||||
Patch2: lshw-B.02.18-revert-json.patch
|
|
||||||
Patch3: lshw-B.02.18-cmake.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ cmake gettext
|
BuildRequires: gcc gcc-c++ cmake gettext
|
||||||
BuildRequires: desktop-file-utils libappstream-glib ninja-build
|
BuildRequires: desktop-file-utils libappstream-glib ninja-build
|
||||||
BuildRequires: python3-devel gtk2-devel >= 2.4
|
BuildRequires: python3-devel gtk2-devel >= 2.4
|
||||||
Requires: hwdata
|
Requires: hwdata
|
||||||
Provides: %{name}-gui = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-gui < %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
lshw (Hardware Lister) is a small tool to provide detailed information
|
lshw (Hardware Lister) is a small tool to provide detailed information
|
||||||
@ -33,46 +29,29 @@ BuildArch: noarch
|
|||||||
The %{name}-help package contains doc files for %{name}.
|
The %{name}-help package contains doc files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch00 -p1
|
|
||||||
%patch01 -p1
|
|
||||||
%patch02 -R -p1
|
|
||||||
%patch03 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p build && cd build
|
%make_build
|
||||||
%cmake .. -DNOLOGO=ON -DHWDATA=OFF -DPOLICYKIT=ON -DBUILD_SHARED_LIBS=OFF -GNinja
|
|
||||||
%ninja_build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
%make_install
|
||||||
%ninja_install
|
|
||||||
ln -s gtk-lshw %{buildroot}/%{_sbindir}/lshw-gui
|
ln -s gtk-lshw %{buildroot}/%{_sbindir}/lshw-gui
|
||||||
|
|
||||||
rm -rf %{buildroot}/%{_datadir}/locale/fr/
|
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
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/lshw-gui
|
|
||||||
%{_sbindir}/*lshw*
|
%{_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
|
%files help
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_mandir}/man1/lshw.1.gz
|
%{_mandir}/man1/lshw.1.gz
|
||||||
|
/usr/share/lshw/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - B.02.18-19
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user