2009-04-08 04:32:10 +02:00
|
|
|
#
|
2011-01-24 16:17:46 +01:00
|
|
|
# spec file for package dmidecode
|
2009-04-08 04:32:10 +02:00
|
|
|
#
|
2013-03-25 16:30:46 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-04-08 04:32:10 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
Url: http://www.nongnu.org/dmidecode/
|
2011-01-20 13:57:17 +01:00
|
|
|
Version: 2.11
|
2013-03-25 16:30:46 +01:00
|
|
|
Release: 0
|
2009-04-08 04:32:10 +02:00
|
|
|
Provides: pmtools:/usr/sbin/dmidecode
|
|
|
|
Summary: DMI table decoder
|
2013-03-25 16:30:46 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Console
|
|
|
|
Source: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.bz2
|
2011-01-25 18:11:47 +01:00
|
|
|
Patch1: dmidecode-fix-memory-array-location-overrun.patch
|
2011-04-13 17:46:30 +02:00
|
|
|
Patch2: dmidecode-add-SMBIOS-2_7_1-support.patch
|
2009-04-08 04:32:10 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExclusiveArch: %ix86 ia64 x86_64
|
2009-05-05 18:05:13 +02:00
|
|
|
Obsoletes: pmtools < 20071117
|
2009-04-08 04:32:10 +02:00
|
|
|
|
|
|
|
%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
|
2011-01-25 18:02:53 +01:00
|
|
|
%patch1 -p1
|
2011-04-13 17:46:30 +02:00
|
|
|
%patch2 -p1
|
2009-04-08 04:32:10 +02:00
|
|
|
|
|
|
|
%build
|
2011-09-19 13:47:43 +02:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
2009-04-08 04:32:10 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -dm 755 %{buildroot}/usr/sbin
|
|
|
|
install -dm 755 %{buildroot}%{_mandir}/man8
|
|
|
|
install -dm 755 %{buildroot}%{_docdir}/%{name}
|
|
|
|
%ifarch ia64
|
|
|
|
for i in dmidecode ; do
|
|
|
|
%else
|
|
|
|
for i in dmidecode vpddecode ownership biosdecode ; do
|
|
|
|
%endif
|
|
|
|
install -m 755 $i %{buildroot}/usr/sbin/
|
|
|
|
install -m 644 man/$i.8 %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m 644 AUTHORS CHANGELOG LICENSE README %{buildroot}%{_docdir}/%{name}/
|
|
|
|
done
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/sbin/*
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
/%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%changelog
|