diff --git a/README.md b/README.md index 35c57dc..525aabe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # lshw +lshw (Hardware Lister) is a small tool to provide detailed information 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 or EFI (IA-64) systems and on some PowerPC machines (PowerMac G4 is known to work). + +Information can be output in plain text, XML or HTML. + diff --git a/lshw-B.02.13-gcc43.patch b/lshw-B.02.13-gcc43.patch new file mode 100644 index 0000000..ec597d7 --- /dev/null +++ b/lshw-B.02.13-gcc43.patch @@ -0,0 +1,11 @@ +diff -Nru lshw-B.02.13.orig/src/core/abi.cc lshw-B.02.13/src/core/abi.cc +--- lshw-B.02.13.orig/src/core/abi.cc 2008-05-09 22:32:50.000000000 +0200 ++++ lshw-B.02.13/src/core/abi.cc 2008-12-08 19:05:27.000000000 +0100 +@@ -9,6 +9,7 @@ + #include "osutils.h" + #include + #include ++#include + + __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); + diff --git a/lshw-desktop b/lshw-desktop new file mode 100644 index 0000000..ebb9aaf --- /dev/null +++ b/lshw-desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=Hardware Lister +GenericName=Browse hardware on host computer +GenericName[it]=Elenca l'hardware del computer +Encoding=UTF-8 +MultipleArgs=false +Terminal=false +Icon=lshw +Exec=gtk-lshw +Type=Application +StartupNotify=false +Categories=System; +X-KDE-SubstituteUID=true +X-KDE-Username=root diff --git a/lshw-icon b/lshw-icon new file mode 100644 index 0000000..7344f42 Binary files /dev/null and b/lshw-icon differ diff --git a/lshw.spec b/lshw.spec new file mode 100644 index 0000000..32f0925 --- /dev/null +++ b/lshw.spec @@ -0,0 +1,98 @@ +Name: lshw +Version: B.02.17 +Release: 1mamba +Summary: Hardware Lister +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://ezix.org/project/wiki/HardwareLiSter +Source: http://ezix.org/software/files/lshw-%{version}.tar.gz +Source1: %{name}-icon +Source2: %{name}-desktop +Patch0: %{name}-B.02.13-gcc43.patch +License: GPL +BuildRequires: desktop-file-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +lshw (Hardware Lister) is a small tool to provide detailed information 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 or EFI (IA-64) systems and on some PowerPC machines (PowerMac G4 is known to work). + +Information can be output in plain text, XML or HTML. + +%package gui +Summary: Hardware Lister GUI +Group: Graphical Desktop/Applications/Administration +BuildRequires: libgtk-devel +Requires: %{name} >= %{?epoch:%epoch:}%{version}-%{release} +Requires: libgtk + +%description gui +lshw (Hardware Lister) is a small tool to provide detailed information 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 or EFI (IA-64) systems and on some PowerPC machines (PowerMac G4 is known to work). + +This package provides a graphical user interface to display hardware information. + +%prep +%setup -q +%patch0 -p1 + +%build +%make gui +%make -C src nologo + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall install-gui + +# install icon +install -D -m 0644 %{S:1} \ + %{buildroot}%{_datadir}/icons/crystalsvg/64x64/apps/%{name}.png + +# install desktop file +install -D -m 0644 %{S:2} \ + %{buildroot}%{_datadir}/applications/%{name}.desktop + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sbindir}/%{name} +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/*.txt +%{_datadir}/%{name}/*.ids +%{_mandir}/man1/* +%doc COPYING +# README docs/TODO docs/Changelog docs/lshw.xsd + +%files gui +%defattr(-,root,root) +%{_sbindir}/gtk-%{name} +%{_datadir}/%{name}/artwork +%dir %{_datadir}/%{name}/ui/ +%{_datadir}/%{name}/ui/gtk-lshw.ui +%{_datadir}/icons/crystalsvg/*/apps/%{name}.png +%{_datadir}/applications/%{name}.desktop + +%changelog +* Tue Aug 06 2013 Automatic Build System B.02.17-1mamba +- automatic update by autodist + +* Wed Jan 25 2012 Automatic Build System B.02.16-1mamba +- automatic version update by autodist + +* Mon Oct 25 2010 Automatic Build System B.02.15-1mamba +- automatic update by autodist + +* Wed Feb 25 2009 Silvan Calarco B.02.14-1mamba +- automatic update by autodist + +* Mon Dec 08 2008 Silvan Calarco B.02.13-1mamba +- automatic update by autodist + +* Sun Nov 18 2007 Stefano Cotta Ramusino B.02.12.01-1mamba +- package created by autospec