Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37764842
en ru br
ALT Linux repos
S:B.02.19.2-alt2.1
5.0: 2.13-alt2
4.1: 2.12-alt1
4.0: 2.10-alt1
3.0: 2.05-alt1

Group :: System/Kernel and hardware
RPM: lshw

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: lshw
Version: 2.13
Release: alt2
%define real_version B.0%version

Packager: Victor Forsyuk <force at altlinux.org>

Summary: Hardware Lister
License: GPLv2 only
Group: System/Kernel and hardware

URL: http://ezix.org/project/wiki/HardwareLiSter
Source: http://ezix.org/software/files/lshw-%real_version.tar.gz
Source100: lshw.png
Source101: lshw.desktop

Patch1: lshw-2.11-guiname.patch
Patch2: lshw-2.13-gcc43.patch

Requires: pciids usbids

# Automatically added by buildreq on Tue Nov 07 2006

BuildRequires: gcc-c++ libgtk+2-devel

%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
configuration, bus speed, etc. on DMI-capable x86 systems, on some PowerPC
machines (PowerMac G4 is known to work) and AMD64.

Information can be output in plain text, XML or HTML.

%package gui
Summary: Graphical hardware lister
Group: System/Kernel and hardware
Requires: pciids usbids
# Probably we should now drop this requirements...
Requires: lshw = %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
configuration, bus speed, etc. on DMI-capable x86 systems, on some PowerPC
machines (PowerMac G4 is known to work) and AMD64.

This package provides graphical (GTK+) front-end to lshw.

%prep
%setup -n lshw-%real_version
%patch1 -p1
%patch2 -p1

%build
%__subst 's/-g -Wall -Os/%optflags/' src/core/Makefile src/gui/Makefile src/Makefile
# parallel build seems OK now. let's try...
%make_build all gui

%install
%make_install install install-gui DESTDIR=%buildroot SBINDIR=%_bindir
ln -s -f lshw-gtk %buildroot%_bindir/lshw-gui

install -Dp -m644 %_sourcedir/lshw.png %buildroot%_pixmapsdir/lshw.png
install -Dp -m644 %_sourcedir/lshw.desktop %buildroot%_desktopdir/lshw.desktop

%post gui
%update_menus

%postun gui
%clean_menus

%files
%_bindir/lshw
%exclude %_datadir/lshw/*.txt
%exclude %_datadir/lshw/*.ids
%_man1dir/*

%files gui
%_bindir/lshw-gtk
%_bindir/lshw-gui
%dir %_datadir/lshw
%_datadir/lshw/artwork/
%_pixmapsdir/*
%_desktopdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin