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
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