102b83323d
Patch for a stack curruption introduced in B.02.17 and fixed upstream (ticket #632) OBS-URL: https://build.opensuse.org/request/show/203542 OBS-URL: https://build.opensuse.org/package/show/hardware/lshw?expand=0&rev=5
166 lines
4.8 KiB
RPMSpec
166 lines
4.8 KiB
RPMSpec
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
# vim: set ts=4 sw=4 et:
|
|
|
|
%if %{?!_without_gui:1}0
|
|
%define with_gui 1
|
|
%endif
|
|
|
|
Name: lshw
|
|
Version: B.02.17
|
|
Release: 0
|
|
Summary: HardWare LiSter
|
|
Source: http://ezix.org/software/files/lshw-%{version}.tar.gz
|
|
Source1: %{name}.desktop.in
|
|
Source2: %{name}.png
|
|
Patch1: lshw-gcc43.patch
|
|
Patch2: lshw-stack-corruption.patch
|
|
URL: http://ezix.org/project/wiki/HardwareLiSter
|
|
Group: Hardware/Other
|
|
License: GNU General Public License (GPL)
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: make gcc gcc-c++ update-desktop-files
|
|
BuildRequires: sqlite3-devel
|
|
BuildRequires: libstdc++-devel
|
|
%if %{?with_gui:1}0
|
|
BuildRequires: gtk2-devel >= 2.4.0
|
|
BuildRequires: libglade2-devel
|
|
BuildRequires: libpng-devel pango-devel zlib-devel
|
|
%endif
|
|
|
|
%description
|
|
lshw (Hardware Lister) is a small tool to provide detailed informaton on the
|
|
hardware configuration of the machine. It can report exact memory
|
|
configuration, firmware version, mainboard configuration, CPU version and
|
|
speed, cache config uration, bus speed, etc. on DMI-capable x86 systems and
|
|
on some PowerPC machines (PowerMac G4 is known to work).
|
|
|
|
Information can be output in plain text, XML or HTML.
|
|
|
|
For detailed information on lshw features and usage, please see the
|
|
included documentation or go to the lshw Web page,
|
|
http://www.ezix.org/software/lshw.html
|
|
|
|
%if %{?with_gui:1}0
|
|
%package gui
|
|
Summary: HardWare LiSter (GUI Frontend)
|
|
Group: Hardware/Other
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description gui
|
|
lshw (Hardware Lister) is a small tool to provide detailed informaton on the
|
|
hardware configuration of the machine. It can report exact memory
|
|
configuration, firmware version, mainboard configuration, CPU version and
|
|
speed, cache config uration, bus speed, etc. on DMI-capable x86 systems and
|
|
on some PowerPC machines (PowerMac G4 is known to work).
|
|
|
|
This package provides a graphical user interface to display hardware
|
|
information.
|
|
|
|
For detailed information on lshw features and usage, please see the
|
|
included documentation or go to the lshw Web page,
|
|
http://www.ezix.org/software/lshw.html
|
|
%endif
|
|
|
|
%debug_package
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
%patch2
|
|
|
|
%build
|
|
%__make %{?_smp_flags} \
|
|
PREFIX="%{_prefix}" \
|
|
SBINDIR="%{_sbindir}" \
|
|
MANDIR="%{_mandir}" \
|
|
DATADIR="%{_datadir}" \
|
|
CXX="%__cxx" \
|
|
CC="%__cc" \
|
|
RPM_OPT_FLAGS="%{optflags}" \
|
|
STRIP=touch \
|
|
all
|
|
|
|
%if %{?with_gui:1}0
|
|
%__make %{?_smp_flags} \
|
|
PREFIX="%{_prefix}" \
|
|
SBINDIR="%{_sbindir}" \
|
|
MANDIR="%{_mandir}" \
|
|
DATADIR="%{_datadir}" \
|
|
CXX="%__cxx" \
|
|
CC="%__cc" \
|
|
RPM_OPT_FLAGS="%{optflags}" \
|
|
STRIP=touch \
|
|
gui
|
|
%endif
|
|
|
|
%install
|
|
%__make %{?_smp_flags} \
|
|
DESTDIR="%{buildroot}" \
|
|
PREFIX="%{_prefix}" \
|
|
SBINDIR="%{_sbindir}" \
|
|
MANDIR="%{_mandir}" \
|
|
DATADIR="%{_datadir}" \
|
|
CXX="%__cxx" \
|
|
CC="%__cc" \
|
|
OPTFLAGS="%{optflags}" \
|
|
install
|
|
|
|
%if %{?with_gui:1}0
|
|
%__make %{?_smp_flags} \
|
|
DESTDIR="%{buildroot}" \
|
|
PREFIX="%{_prefix}" \
|
|
SBINDIR="%{_sbindir}" \
|
|
MANDIR="%{_mandir}" \
|
|
DATADIR="%{_datadir}" \
|
|
CXX="%__cxx" \
|
|
CC="%__cc" \
|
|
OPTFLAGS="%{optflags}" \
|
|
install-gui
|
|
%endif
|
|
|
|
%__install -d "%{buildroot}%{_datadir}/applications"
|
|
%__sed 's,@@EXEC@@,%{_sbindir}/gtk-lshw,g' < "%{SOURCE1}" \
|
|
> "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
%__chmod 0644 "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
|
|
|
|
%suse_update_desktop_file -r "%{name}" System HardwareSettings
|
|
|
|
%find_lang lshw
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files -f lshw.lang
|
|
%defattr(-,root,root,0755)
|
|
%doc README COPYING docs/TODO docs/Changelog docs/lshw.xsd
|
|
%attr(0755,root,root) %{_sbindir}/lshw
|
|
%dir %{_datadir}/lshw
|
|
%{_datadir}/lshw/*.txt
|
|
%{_datadir}/lshw/*.ids
|
|
%doc %{_mandir}/man1/lshw.1%{ext_man}
|
|
|
|
%if %{?with_gui:1}0
|
|
%files gui
|
|
%defattr(-,root,root,0755)
|
|
%doc COPYING
|
|
%attr(0755,root,root) %{_sbindir}/gtk-lshw
|
|
%{_datadir}/lshw/artwork
|
|
%{_datadir}/lshw/ui
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%endif
|
|
|
|
%changelog
|