Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
lshw
> lshw.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lshw.spec of Package lshw
%define disable_gui 0 %define _default_patch_fuzz 3 %if 0%{?sles_version} %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10 %define disable_gui 1 %endif %endif %if 0%{?rhel} == 5 || 0%{?centos_version} == 5 %define disable_gui 1 %endif %if 0%{?rhel_version} %if 0%{?rhel_version} == 500 %define disable_gui 1 %endif %if 0%{?rhel_version} == 501 %define disable_gui 1 %endif %if 0%{?rhel_version} == 502 %define disable_gui 1 %endif %if 0%{?rhel_version} == 503 %define disable_gui 1 %endif %if 0%{?rhel_version} == 504 %define disable_gui 1 %endif %if 0%{?rhel_version} == 505 %define disable_gui 1 %endif %if 0%{?rhel_version} == 506 %define disable_gui 1 %endif %if 0%{?rhel_version} == 507 %define disable_gui 1 %endif %if 0%{?rhel_version} == 508 %define disable_gui 1 %endif %if 0%{?rhel_version} == 509 %define disable_gui 1 %endif %if 0%{?rhel_version} == 510 %define disable_gui 1 %endif %if 0%{?rhel_version} == 511 %define disable_gui 1 %endif %endif %if 0%{?sl_version} %if 0%{?sl_version} == 500 %define disable_gui 1 %endif %if 0%{?sl_version} == 501 %define disable_gui 1 %endif %if 0%{?sl_version} == 502 %define disable_gui 1 %endif %if 0%{?sl_version} == 503 %define disable_gui 1 %endif %if 0%{?sl_version} == 504 %define disable_gui 1 %endif %if 0%{?sl_version} == 505 %define disable_gui 1 %endif %if 0%{?sl_version} == 506 %define disable_gui 1 %endif %if 0%{?sl_version} == 507 %define disable_gui 1 %endif %if 0%{?sl_version} == 508 %define disable_gui 1 %endif %if 0%{?sl_version} == 509 %define disable_gui 1 %endif %if 0%{?sl_version} == 510 %define disable_gui 1 %endif %if 0%{?sl_version} == 511 %define disable_gui 1 %endif %endif Summary: HardWare LiSter Name: lshw Version: B.02.17 Release: 1 Source: %{name}-%{version}.tar.bz2 Patch0: lshw-malloc.diff Patch1: lshw-fix-segfault_bufferoverflow-in-readlogicalblocks.patch URL: http://ezix.org/project/wiki/HardwareLiSter License: GPL Group: Applications/System Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gtk2-devel gcc-c++ pkgconfig glibc-devel gcc BuildRequires: sqlite-devel >= 3.0 %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 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 0%{?disable_gui} == 0 %package gui Summary: HardWare LiSter (GUI version) Group: Applications/System Requires: %{name} Requires: gtk2 BuildRequires: gtk2-devel %endif %if 0%{?disable_gui} == 0 %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 configura tion, CPU version and speed, cache configuration, 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 %prep %setup %patch0 %patch1 -p1 %build ## % if 0%{?suse_version} ## % ifarch x86_64 ## % define optflags -O2 -g ## % else ## % define optflags -O2 -g ## % endif ## % endif %{__make} %if 0%{?disable_gui} == 0 %{__make} gui %endif %install make DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix SBINDIR=%_sbindir MANDIR=%_mandir install %if 0%{?disable_gui} == 0 make DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix SBINDIR=%_sbindir MANDIR=%_mandir install-gui %endif %files %defattr(-,root,root) %doc COPYING %defattr(-,root,root) %attr(555,bin,bin) %{_sbindir}/lshw %{_mandir}/man?/* %{_datadir}/lshw/ %config(noreplace) %{_datadir}/lshw/pci.ids %config(noreplace) %{_datadir}/lshw/manuf.txt %config(noreplace) %{_datadir}/lshw/oui.txt %config(noreplace) %{_datadir}/lshw/usb.ids %{_datadir}/locale/fr/LC_MESSAGES/lshw.mo %if 0%{?disable_gui} == 0 %files gui %defattr(-,root,root) %doc COPYING %attr(555,bin,bin) %{_sbindir}/gtk-lshw %endif %clean rm -rf $RPM_BUILD_ROOT %changelog * Wed Jan 11 2012 Carsten Schoene <cs@linux-administrator.com> - B.02.16-1 - updated to version B.02.16 * Tue Oct 05 2010 Carsten Schoene <cs@linux-administrator.com> - B.02.15-1 - updated to version B.02.15 * Sun Jul 18 2010 Carsten Schoene <cs@linux-administrator.com> - B.02.14-2 - added gcc 4.5 patch * Sat Feb 14 2009 Carsten Schoene <cs@linux-administrator.com> - B.02.14-1 - version bump to B.02.14 * Mon May 12 2008 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.13 * Mon Oct 15 2007 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.12.01 * Sat Oct 13 2007 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.12 * Wed Aug 22 2007 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.11.01 * Fri Jun 15 2007 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.10 * Mon Dec 25 2006 Carsten Scheone <cs@linux-administrator.com> - version bump to B.02.09 * Wed Oct 19 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.06 for SuSE 10.0 * Sat Jul 23 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.05.01 * Wed Jul 20 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.05 * Thu Apr 28 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.04 * Sat Apr 09 2005 Carsten Schoene <cs@linux-administrator.com> - rebuild for SuSE9.3 * Fri Feb 04 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.03 * Fri Jan 21 2005 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.02 * Wed Dec 22 2004 Carsten Schoene <cs@linux-administrator.com> - version bump to B.02.00 * Thu Dec 16 2004 Carsten Schoene <cs@linux-administrator.com> - version bump to A.01.09 * Wed Oct 27 2004 Carsten Schoene <cs@linux-administrator.com> - rebuild for SuSE 9.2