a50e7366b5
* Adds support for SMBIOS 3.0. This includes a new (64-bit) entry point format and new enumerated values for recent hardware. * Adds support for the new kernel interface (as of Linux v4.2) as an alternative to relying on /dev/mem to access the entry point and DMI table. * Adds decoding of Acer-specific DMI type 170 and HP-specific DMI types 212, 219 and 233. * Obsoletes dmidecode-1.173-drop-cast.patch, dmidecode-1.175-fix-SMBIOS-2.8.0.patch, dmidecode-1.176-SMBIOS-2.8-is-supported.patch, dmidecode-1.177-decode-pcie3-slot-id.patch, dmidecode-1.181-decode-CPUID-recent-AMD.patch, and dmidecode-1.182-decode-ddr4-memory-type.patch. * Various minor fixes and clean-ups. OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=32
77 lines
2.7 KiB
RPMSpec
77 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package dmidecode
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: dmidecode
|
|
Version: 3.0
|
|
Release: 0
|
|
Summary: DMI table decoder
|
|
License: GPL-2.0+
|
|
Group: System/Console
|
|
Url: http://www.nongnu.org/dmidecode/
|
|
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
|
Source1: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz.sig
|
|
# would be, but tarball is signed by someone else without signatures.
|
|
# https://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=dmidecode
|
|
# Source2: %{name}.keyring
|
|
Provides: pmtools:%{_sbindir}/dmidecode
|
|
Obsoletes: pmtools < 20071117
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: %ix86 ia64 x86_64 %arm aarch64
|
|
|
|
%description
|
|
Dmidecode reports information about your system's hardware as described
|
|
in your system BIOS according to the SMBIOS/DMI standard. This
|
|
information typically includes system manufacturer, model name, serial
|
|
number, BIOS version, asset tag as well as a lot of other details of
|
|
varying level of interest and reliability depending on the
|
|
manufacturer. This will often include usage status for the CPU sockets,
|
|
expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the
|
|
list of I/O ports (e.g. serial, parallel, USB).
|
|
|
|
Beware that DMI data have proven to be too unreliable to be blindly
|
|
trusted. Dmidecode does not scan your hardware, it only reports what
|
|
the BIOS told it to.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
%install
|
|
install -dm 755 %{buildroot}%{_sbindir}
|
|
install -dm 755 %{buildroot}%{_mandir}/man8
|
|
install -dm 755 %{buildroot}%{_docdir}/%{name}
|
|
%ifarch ia64 %arm aarch64
|
|
for i in dmidecode ; do
|
|
%else
|
|
for i in dmidecode vpddecode ownership biosdecode ; do
|
|
%endif
|
|
install -m 755 $i %{buildroot}%{_sbindir}/
|
|
install -m 644 man/$i.8 %{buildroot}%{_mandir}/man8/
|
|
install -m 644 AUTHORS CHANGELOG LICENSE README %{buildroot}%{_docdir}/%{name}/
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/*
|
|
%doc %{_docdir}/%{name}
|
|
%{_mandir}/man8/*
|
|
|
|
%changelog
|