2008-04-15 19:39:24 +00:00
|
|
|
Summary: Hardware lister
|
|
|
|
Name: lshw
|
2009-03-01 09:52:43 +00:00
|
|
|
Version: B.02.14
|
2009-05-06 17:51:47 +00:00
|
|
|
Release: 2%{?dist}
|
2008-04-15 19:39:24 +00:00
|
|
|
License: GPLv2
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://ezix.org/project/wiki/HardwareLiSter
|
|
|
|
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
|
|
|
|
Source1: lshw.desktop
|
|
|
|
Source2: lshw.consolehelper
|
|
|
|
Source3: lshw.pam
|
2007-08-15 21:02:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-05-06 17:51:47 +00:00
|
|
|
Requires: hwdata
|
|
|
|
|
2007-08-15 21:02:06 +00:00
|
|
|
%description
|
|
|
|
lshw 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.
|
|
|
|
|
|
|
|
%package gui
|
|
|
|
Summary: Graphical hardware lister
|
|
|
|
Group: Applications/System
|
|
|
|
Requires: usermode
|
2009-05-06 17:51:47 +00:00
|
|
|
Requires: hwdata
|
2007-08-15 21:02:06 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildRequires: gtk2-devel >= 2.4
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
Graphical frontend for the hardware lister (lshw) tool.
|
|
|
|
If desired, hardware information can be saved to file in
|
|
|
|
plain, XML or HTML format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%{__sed} -i 's|-g -Wall -g|%{optflags}|' src/Makefile
|
|
|
|
%{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/core/Makefile
|
|
|
|
%{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/gui/Makefile
|
|
|
|
%{__sed} -i 's|LDFLAGS= -Os -s|LDFLAGS=|' src/gui/Makefile
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__make} %{?_smp_mflags} SBINDIR="%{_sbindir}" gui
|
|
|
|
|
2007-11-05 19:03:01 +00:00
|
|
|
# Replace copyrighted icons
|
|
|
|
pushd src
|
|
|
|
%{__make} nologo
|
|
|
|
|
2007-08-15 21:02:06 +00:00
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%{__make} install \
|
|
|
|
DESTDIR="%{buildroot}" \
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
SBINDIR="%{_sbindir}" \
|
|
|
|
MANDIR="%{_mandir}" \
|
|
|
|
INSTALL="%{__install} -p"
|
|
|
|
|
|
|
|
%{__make} install-gui \
|
|
|
|
DESTDIR="%{buildroot}" \
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
SBINDIR="%{_sbindir}" \
|
|
|
|
MANDIR="%{_mandir}" \
|
|
|
|
INSTALL="%{__install} -p"
|
|
|
|
|
|
|
|
%{__ln_s} -f gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
|
|
|
|
|
2009-05-06 17:51:47 +00:00
|
|
|
# don't package these copies, use the ones from hwdata instead
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/pci.ids
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/usb.ids
|
|
|
|
# don't package these copies, they're not actually used by the app,
|
|
|
|
# and even if they were, should use the hwdata versions
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/oui.txt
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/manuf.txt
|
|
|
|
|
2007-08-15 21:02:06 +00:00
|
|
|
# desktop icon
|
|
|
|
%{__install} -D -m 0644 -p ./src/gui/artwork/logo.svg \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/%{name}-logo.svg
|
|
|
|
|
|
|
|
desktop-file-install --vendor fedora \
|
|
|
|
--dir %{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
|
|
|
|
# consolehelper
|
|
|
|
%{__install} -d %{buildroot}%{_bindir}
|
|
|
|
%{__ln_s} -f consolehelper %{buildroot}%{_bindir}/%{name}-gui
|
|
|
|
%{__install} -D -m 0644 %{SOURCE2} \
|
|
|
|
%{buildroot}%{_sysconfdir}/security/console.apps/%{name}-gui
|
|
|
|
%{__install} -D -m 0644 %{SOURCE3} \
|
|
|
|
%{buildroot}%{_sysconfdir}/pam.d/%{name}-gui
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%doc COPYING README docs/*
|
|
|
|
%doc %{_mandir}/man1/lshw.1*
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
|
|
|
%files gui
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%doc COPYING
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-gui
|
|
|
|
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-gui
|
|
|
|
%{_bindir}/%{name}-gui
|
|
|
|
%{_sbindir}/gtk-%{name}
|
|
|
|
%{_sbindir}/%{name}-gui
|
|
|
|
%{_datadir}/%{name}/artwork
|
|
|
|
%{_datadir}/pixmaps/%{name}-logo.svg
|
|
|
|
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
|
|
|
|
|
%changelog
|
2009-05-06 17:51:47 +00:00
|
|
|
* Wed May 06 2009 Adam Jackson <ajax@redhat.com> B.02.14-2
|
|
|
|
- Requires: hwdata
|
|
|
|
- Drop redundant copies of pci.ids and friends, since we'll pick up the
|
|
|
|
copies in hwdata at runtime.
|
|
|
|
|
2009-03-01 09:52:43 +00:00
|
|
|
* Sun Mar 1 2009 Terje Rosten <terjeros@phys.ntnu.no> - B.02.14-1
|
|
|
|
- B.02.14
|
|
|
|
- Drop gcc43 patch now upstream
|
|
|
|
|
2009-02-25 21:11:58 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.13-4
|
2009-03-01 09:52:43 +00:00
|
|
|
- rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
2009-02-25 21:11:58 +00:00
|
|
|
|
2008-08-13 20:06:02 +00:00
|
|
|
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-3
|
|
|
|
- rebuild
|
|
|
|
|
2008-08-13 19:52:21 +00:00
|
|
|
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-2
|
|
|
|
- proper patch macro
|
|
|
|
|
2008-08-13 18:15:32 +00:00
|
|
|
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-1
|
|
|
|
- B.02.13
|
|
|
|
- remove patches now upstream
|
|
|
|
- add new gcc43 patch
|
|
|
|
|
2008-04-15 20:05:43 +00:00
|
|
|
* Tue Apr 15 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-5
|
|
|
|
- rebuild
|
|
|
|
|
2008-04-15 19:39:24 +00:00
|
|
|
* Tue Apr 15 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-4
|
|
|
|
- add patch to fix bz #442501
|
|
|
|
|
2008-02-11 07:52:59 +00:00
|
|
|
* Mon Feb 11 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-3
|
|
|
|
- add patch to build with gcc-4.3
|
|
|
|
|
2008-02-09 15:28:43 +00:00
|
|
|
* Mon Feb 9 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-2
|
|
|
|
- rebuild
|
|
|
|
|
2007-11-05 19:03:01 +00:00
|
|
|
* Mon Nov 5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
|
|
|
|
- B.02.12.01
|
|
|
|
- Replace trademark icons
|
|
|
|
|
2007-08-15 21:02:06 +00:00
|
|
|
* Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
|
|
|
|
- Move desktop and pam config to files
|
|
|
|
- Simplify build
|
|
|
|
|
|
|
|
* Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
|
|
|
|
- Remove trademarks
|
|
|
|
|
|
|
|
* Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
|
|
|
|
- B.02.11.01
|
|
|
|
|
|
|
|
* Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
|
|
|
|
- Move artwork to gui subpackage
|
|
|
|
- Implement consolehelper support
|
|
|
|
|
|
|
|
* Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
|
|
|
|
- License is GPLv2 (only)
|
|
|
|
- Fix ui %%description
|
|
|
|
|
|
|
|
* Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
|
|
|
|
- Follow upstream version scheme
|
|
|
|
|
|
|
|
* Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
|
|
|
|
- 2.11
|
|
|
|
|
|
|
|
* Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
|
|
|
|
- minor fixes
|
|
|
|
- add patch to avoid stripping
|
|
|
|
- add desktop file
|
|
|
|
- strip changelog
|
|
|
|
- move from sbin to bin
|
|
|
|
- new url
|
|
|
|
|
|
|
|
* Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
|
|
|
|
- Updated to release B.02.10.
|
|
|
|
|
|
|
|
* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
|
|
|
|
- Initial package. (using DAR)
|
|
|
|
|