2015-07-24 12:51:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package lshw
|
|
|
|
#
|
2017-05-02 19:12:18 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-08-06 21:06:11 +02:00
|
|
|
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2015-07-24 12:51:09 +02:00
|
|
|
#
|
2013-08-06 21:06:11 +02:00
|
|
|
|
2011-04-30 03:46:51 +02:00
|
|
|
|
2012-01-11 01:03:03 +01:00
|
|
|
Name: lshw
|
2016-04-26 22:07:28 +02:00
|
|
|
Version: B.02.18
|
2012-01-11 01:03:03 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: HardWare LiSter
|
2015-07-24 12:51:09 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: Hardware/Other
|
2017-05-02 19:12:18 +02:00
|
|
|
Url: https://www.ezix.org/project/wiki/HardwareLiSter
|
|
|
|
Source: https://www.ezix.org/software/files/lshw-%{version}.tar.gz
|
2015-07-24 12:51:09 +02:00
|
|
|
Source1: lshw.desktop.in
|
|
|
|
Source2: lshw.png
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libpng-devel
|
2016-06-20 13:27:24 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-07-24 12:51:09 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2017-05-02 19:12:18 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.4
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
%lang_package
|
2011-04-30 03:46:51 +02:00
|
|
|
|
|
|
|
%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 config uration, 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
|
|
|
|
|
|
|
|
%package gui
|
2012-01-11 01:03:03 +01:00
|
|
|
Summary: HardWare LiSter (GUI Frontend)
|
|
|
|
Group: Hardware/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-07-24 12:51:09 +02:00
|
|
|
Requires: hicolor-icon-theme
|
2016-04-26 22:07:28 +02:00
|
|
|
Requires(post): hicolor-icon-theme
|
|
|
|
Requires(post): update-desktop-files
|
|
|
|
Requires(postun): hicolor-icon-theme
|
|
|
|
Requires(postun): update-desktop-files
|
2011-04-30 03:46:51 +02:00
|
|
|
|
|
|
|
%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 config uration, 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
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-06-20 13:27:24 +02:00
|
|
|
make \
|
|
|
|
SBINDIR="%{_sbindir}" \
|
2016-06-20 20:03:20 +02:00
|
|
|
RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing" \
|
2016-06-20 13:27:24 +02:00
|
|
|
STRIP=touch \
|
|
|
|
all gui
|
2011-04-30 03:46:51 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-02 19:12:18 +02:00
|
|
|
%make_install install-gui
|
2011-04-30 03:46:51 +02:00
|
|
|
|
2015-07-24 12:51:09 +02:00
|
|
|
install -d "%{buildroot}%{_datadir}/applications"
|
|
|
|
sed 's,@@EXEC@@,%{_sbindir}/gtk-lshw,g' < "%{SOURCE1}" \
|
2012-01-11 01:03:03 +01:00
|
|
|
> "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
2015-07-24 12:51:09 +02:00
|
|
|
chmod 0644 "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
2017-05-02 19:12:18 +02:00
|
|
|
install -D -p -m 0644 %{SOURCE2} \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2011-04-30 03:46:51 +02:00
|
|
|
|
|
|
|
%suse_update_desktop_file -r "%{name}" System HardwareSettings
|
2016-06-20 13:27:24 +02:00
|
|
|
# All of following are shipped by other packages as well
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/pci.ids
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/usb.ids
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/oui.txt
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/manuf.txt
|
2011-04-30 03:46:51 +02:00
|
|
|
|
|
|
|
%find_lang lshw
|
|
|
|
|
2015-07-24 12:51:09 +02:00
|
|
|
%post gui
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun gui
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2011-04-30 03:46:51 +02:00
|
|
|
|
2017-05-02 19:12:18 +02:00
|
|
|
%files
|
2011-04-30 03:46:51 +02:00
|
|
|
%defattr(-,root,root,0755)
|
2016-04-26 22:07:28 +02:00
|
|
|
%doc README.md COPYING docs/TODO docs/Changelog docs/lshw.xsd
|
2011-04-30 03:46:51 +02:00
|
|
|
%attr(0755,root,root) %{_sbindir}/lshw
|
|
|
|
%dir %{_datadir}/lshw
|
2015-07-24 12:51:09 +02:00
|
|
|
%{_mandir}/man1/lshw.1%{ext_man}
|
2011-04-30 03:46:51 +02:00
|
|
|
|
2017-05-02 19:12:18 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2011-04-30 03:46:51 +02:00
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc COPYING
|
|
|
|
%attr(0755,root,root) %{_sbindir}/gtk-lshw
|
|
|
|
%{_datadir}/lshw/artwork
|
2012-01-11 01:03:03 +01:00
|
|
|
%{_datadir}/lshw/ui
|
2011-04-30 03:46:51 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
%changelog
|