3 %bcond_without gui # build without GTK gui
5 Summary: Hardware Lister
6 Summary(pl): Narzêdzie wypisuj±ce sprzêt
11 Group: Applications/System
12 Source0: http://dl.sourceforge.net/ezix/%{name}-%{version}.tar.gz
13 # Source0-md5: 370e10e3dad089be3f24f1cdf3874a52
14 URL: http://ezix.sourceforge.net/software/lshw.html
15 BuildRequires: libstdc++-devel
16 %{?with_gui:BuildRequires: gtk+2-devel}
17 BuildRequires: pkgconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 lshw (Hardware Lister) is a small tool to provide detailed informaton
23 on the hardware configuration of the machine. It can report exact
24 memory configuration, firmware version, mainboard configuration, CPU
25 version and speed, cache configuration, bus speed, etc. on DMI-capable
26 x86 systems and on some PowerPC machines (PowerMac G4 is known to
29 Information can be output in plain text, XML or HTML.
31 It currently supports DMI (x86 only), OpenFirmware device tree
32 (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only
33 tested on x86) and SCSI.
36 lshw (Hardware Lister) to ma³e narzêdzie maj±ce udostêpniæ szczegó³owe
37 informacje dotycz±ce sprzêtowej konfiguracji maszyny. Mo¿e okre¶liæ
38 dok³adn± konfiguracjê pamiêci, wersjê firmware, konfiguracjê p³yty
39 g³ównej, wersjê i szybko¶æ CPU, konfiguracjê cache, szybko¶æ szyny
40 itp. na systemach x86 obs³uguj±cych DMI oraz niektórych maszynach
41 PowerPC (wiadomo, ¿e dzia³a na PowerMacu G4).
43 Informacje mog± byæ podawane jako czysty tekst, XML lub HTML.
45 Aktualnie program obs³uguje DMI (tylko x86), drzewo urz±dzeñ
46 OpenFirmware (tylko PowerPC), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI,
47 PCMCIA (testowane tylko na x86) oraz SCSI.
50 Summary: GTK+ version of lshw
51 Summary(pl): lshw w wersji GTK+
52 Group: Applications/System
58 %description gtk -l pl
67 CXXFLAGS="%{rpmcflags} -I./core"
72 CXXFLAGS="%{rpmcflags} -I../core `pkg-config --cflags gtk+-2.0`"
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
80 DESTDIR=$RPM_BUILD_ROOT
83 %{__make} install-gui \
84 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc docs/TODO docs/Changelog docs/lshw.xsd README
93 %attr(755,root,root) %{_sbindir}/%{name}
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_sbindir}/gtk-%{name}