e76131
Summary:        Tool to analyse BIOS DMI data
e76131
Name:           dmidecode
38ce75
Version:        3.2
78a694
Release:        5%{?dist}.1
e76131
Epoch:          1
e76131
Group:          System Environment/Base
e76131
License:        GPLv2+
fd304b
Source0:        %{name}-%{version}.tar.xz
e76131
URL:            http://www.nongnu.org/dmidecode/
38ce75
Patch0:         0001-dmidecode-Fix-Redfish-Hostname-print-length.patch
38ce75
Patch1:         0002-dmidecode-Don-t-use-memcpy-on-dev-mem-on-arm64.patch
38ce75
Patch2:         0003-dmidecode-Use-the-most-appropriate-unit-for-cache-si.patch
38ce75
Patch3:         0004-dmidecode-Use-dmi_cache_size_2-in-dmi_cache_size.patch
38ce75
Patch4:         0005-dmidecode-Add-Logical-non-volatile-device-to-the-mem.patch
4a6338
Patch5:         0001-dmidecode-Fix-System-Slot-Information-for-PCIe-SSD.patch
4a6338
Patch6:         0001-dmidecode-Reformat-the-FILES-section-of-the-manual-p.patch
4a6338
Patch7:         0002-dmidecode-Document-how-the-UUID-fields-are-interpret.patch
4a6338
Patch8:         0003-Use-comments-to-separate-sections-in-manual-pages.patch
4a6338
Patch9:         0004-dmidecode-Add-missing-standard-include.patch
4a6338
Patch10:        0005-dmidecode-Only-scan-dev-mem-for-entry-point-on-x86.patch
4a6338
Patch11:        0006-Fix-formatting-of-TPM-table-output.patch
4a6338
Patch12:        0007-dmidecode-Adding-bios-revision-to-s-option.patch
4a6338
Patch13:        0008-dmidecode-Adding-firmware-revision-support-to-s-opti.patch
4a6338
Patch14:        0009-Typo.patch
4a6338
Patch15:        0010-dmidecode-Add-enumerated-values-from-SMBIOS-3.3.0.patch
4a6338
Patch16:        0011-dmidecode-Decode-system-slot-base-bus-width-and-peer.patch
78a694
Patch17:        0001-dmidecode-Add-new-system-slot-types-from-SMBIOS-spec.patch
78a694
Patch18:        0002-dmidecode-Skip-details-of-uninstalled-memory-modules.patch
78a694
Patch19:        0003-Missing-comma-in-the-dmi_slot_type.patch
94a757
e76131
Buildroot:      %{_tmppath}/%{name}-%{version}-root
e76131
BuildRequires:  automake autoconf
043c82
ExclusiveArch:  %{ix86} x86_64 ia64 aarch64
e76131
e76131
%description
e76131
dmidecode reports information about x86 & ia64 hardware as described in the
e76131
system BIOS according to the SMBIOS/DMI standard. This information
e76131
typically includes system manufacturer, model name, serial number,
e76131
BIOS version, asset tag as well as a lot of other details of varying
e76131
level of interest and reliability depending on the manufacturer.
e76131
e76131
This will often include usage status for the CPU sockets, expansion
e76131
slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of
e76131
I/O ports (e.g. serial, parallel, USB).
e76131
e76131
%prep
e76131
%setup -q
38ce75
%patch0 -p1 -b .fix_Redfish_print
38ce75
%patch1 -p1
38ce75
%patch2 -p1
38ce75
%patch3 -p1
38ce75
%patch4 -p1
4a6338
%patch5 -p1
4a6338
%patch6 -p1
4a6338
%patch7 -p1
4a6338
%patch8 -p1
4a6338
%patch9 -p1
4a6338
%patch10 -p1
4a6338
%patch11 -p1
4a6338
%patch12 -p1
4a6338
%patch13 -p1
4a6338
%patch14 -p1
4a6338
%patch15 -p1
4a6338
%patch16 -p1
78a694
%patch17 -p1
78a694
%patch18 -p1
78a694
%patch19 -p1
fd304b
e76131
%build
94a757
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-pie -Wl,-z,now"
e76131
e76131
%install
e76131
rm -rf ${buildroot}
e76131
make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install-man
e76131
e76131
%clean
e76131
rm -rf ${buildroot}
e76131
e76131
%files
5f4333
%doc AUTHORS NEWS README
fd304b
%{!?_licensedir:%global license %%doc}
fd304b
%license LICENSE
e76131
%{_sbindir}/dmidecode
fd304b
%ifnarch ia64 aarch64
e76131
%{_sbindir}/vpddecode
e76131
%{_sbindir}/ownership
e76131
%{_sbindir}/biosdecode
e76131
%endif
e76131
%{_mandir}/man8/*
e76131
e76131
%changelog
78a694
* Tue Jan 12 2021 Lianbo Jiang <lijiang@redhat.com> - 1:3.2-5.1
78a694
- Fix the "OUT OF SPEC" error for empty NVMe and DIMM slots
78a694
- Resolves: rhbz#1858345
78a694
4a6338
* Mon Mar 30 2020 Lianbo Jiang <lijiang@redhat.com> - 1:3.2-5
4a6338
- Revert this patch("Use larger units for memory device and BIOS size")
4a6338
- Resolves: rhbz#1767323
4a6338
4a6338
* Wed Mar 18 2020 Lianbo Jiang <lijiang@redhat.com> - 1:3.2-4
4a6338
- Fix System Slot Information for PCIe SSD
4a6338
- Resolves: rhbz#1793900
4a6338
- Sync with upstream(commit:62bce59fed1)
4a6338
- Resolves: rhbz#1767323
4a6338
38ce75
* Fri Apr 26 2019 Lianbo Jiang <lijiang@redhat.com> - 1:3.2-3
38ce75
- Add "Logical non-volatile device" to the memory device types
38ce75
- Resolves: rhbz#1664921
38ce75
38ce75
* Tue Nov 6 2018 Lianbo Jiang <lijiang@redhat.com> - 1:3.2-1
38ce75
- Sync with upstream 3.2
38ce75
- Resolves: rhbz#1628992
38ce75
5f4333
* Thu Apr 26 2018 Lianbo Jiang <lijiang@redhat.com> - 1:3.1-1
5f4333
- Sync with upstream
5f4333
- Resolves: rhbz#1568227
5f4333
94a757
* Wed May 3 2017 Petr Oros <poros@redhat.com> - 1:3.0-5
94a757
- Update compiler flags for hardened builds
94a757
- Resolves: #1420763
94a757
94a757
* Tue Feb 28 2017 Petr Oros <poros@redhat.com> - 1:3.0-4
94a757
- Sync with upstream
94a757
- Resolves: #1385884
94a757
94a757
* Tue Nov 8 2016 Petr Oros <poros@redhat.com> - 1:3.0-3
966bd7
- Hide irrelevant fixup message
94a757
- Resolves: #1384195
966bd7
fd304b
* Wed Jun 29 2016 Petr Oros <poros@redhat.com> - 1:3.0-2
fd304b
- Unmask LRDIMM in memmory type detail
fd304b
- Resolves: #1321342
fd304b
fd304b
* Wed May 4 2016 Petr Oros <poros@redhat.com> - 1:3.0-1
fd304b
- Update to upstream 3.0 release.
fd304b
- Resolves: #1273487
fd304b
3ea658
* Mon Sep 21 2015 Petr Oros <poros@redhat.com> - 1:2.12-9
3ea658
- dmioem: Decode Acer-specific DMI type 170
3ea658
- dmioem: Decode HP-specific DMI types 212 and 219
3ea658
- dmioem: Decode HP-specific DMI type 233, and refactored 209 and 221 to use a common function
3ea658
- Resolves: #1232501
3ea658
3ea658
* Thu Jul 23 2015 Petr Oros <poros@redhat.com> - 1:2.12-8
3ea658
- Support upstream sysfs filename for smbios entry point (Mark Salter)
3ea658
- Resolves: #1232153
3ea658
3ea658
* Thu Jul 16 2015 Petr Oros <poros@redhat.com> - 1:2.12-7
3ea658
- only use SMBIOS3 on aarch64 systems (Jeffrey Bastian)
3ea658
- Resolves: #1242409
3ea658
3ea658
* Wed May 13 2015 Petr Oros <poros@redhat.com> - 1:2.12-6
3ea658
- Add preliminary support for SMBIOS 64-bit entry point (Mark Salter)
3ea658
- Add support for DDR4 memmory
3ea658
043c82
* Fri Feb 21 2014 Anton Arapov <anton@redhat.com> - 2.12-5
043c82
- Spec file fixes for the Aarch64. (John Feeney )
043c82
043c82
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.12-4
043c82
- Mass rebuild 2013-12-27
043c82
e76131
* Thu May 09 2013 Anton Arapov <anton@redhat.com> - 1:2.12-3
e76131
- Accomodate few more necesary, to enable SMBIOS v2.8, changes from upstream.
e76131
e76131
* Fri Apr 26 2013 Anton Arapov <anton@redhat.com> - 1:2.12-2
e76131
- Fixup, so that it actually read SMBIOS 2.8.0 table.
e76131
e76131
* Wed Apr 17 2013 Anton Arapov <anton@redhat.com> - 1:2.12-1
e76131
- Update to upstream 2.12 release.
e76131
e76131
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-10
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e76131
e76131
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-9
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e76131
e76131
* Mon Mar 26 2012 Anton Arapov <anton@redhat.com> - 1:2.11-8
e76131
- Update dmidecode.8 manpage
e76131
e76131
* Mon Mar 12 2012 Anton Arapov <anton@redhat.com> - 1:2.11-7
e76131
- Add "PXE" to HP OEM Type 209 record output
e76131
- Properly print the hexadecimal value of invalid string characters
e76131
e76131
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-6
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e76131
e76131
* Mon Nov 14 2011 Anton Arapov <anton@redhat.com> - 1:2.11-5
e76131
- Fix the wrong call of the dmi_chassis_type function call. Thus fix
e76131
  an issue on the systems with the chassis lock available, application
e76131
  doesn't fall out with the out of spec error anymore.
e76131
e76131
* Tue May 03 2011 Anton Arapov <anton@redhat.com> - 1:2.11-4
e76131
- Update to SMBIOS 2.7.1
e76131
- Fix the boundaries check in type16
e76131
e76131
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-3
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e76131
e76131
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-2
e76131
- Update to upstream 2.11 release. (#623047)
e76131
e76131
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-1
e76131
- Fix the changelog's NVR.
e76131
e76131
* Mon Nov 08 2010 Prarit Bhargava <prarit@redhat.com> - 1:2.10-3
e76131
- updated kernel.spec for review [BZ 225698]
e76131
e76131
* Fri Oct 15 2010 Anton Arapov <aarapov@redhat.com> - 1:2.10-2
e76131
- Does not build with gnu make v3.82+ (#631407)
e76131
e76131
* Fri Dec 18 2009 Prarit Bhargava <prarit@redhat.com> - 1:2.10-1.40
e76131
- Fix rpmlint errors in specfile
e76131
e76131
* Fri Aug 28 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.39
e76131
- Fix cache associativity mapping (was missing some commas)
e76131
e76131
* Mon Aug 24 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.38
e76131
- Add support for newer sockets, processors and pcie slot types
e76131
e76131
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.36.2
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e76131
e76131
* Fri Feb 27 2009 Matthias Clasen <mclasen@redhat.com>
e76131
- Build for i586
e76131
e76131
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.34.1
e76131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e76131
e76131
* Mon Feb 09 2009 Prarit Bhargava <prarit@redhat.com> 1:2.10
e76131
- rebuild with version 2.10
e76131
e76131
* Wed Jan 28 2009 Prarit Bhargava <prarit@redhat.com> 1:2.9-1.32
e76131
- fix Summary field (BZ 225698)
e76131
e76131
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:2.9-1.30
e76131
- fix license tag
e76131
e76131
* Fri Mar 14 2008 Doug Chapman <doug.chapman@hp.com> 1:2.9-1.29.1
e76131
- Do not package vpddecode, ownership and biosdecode on ia64 since those are x86 only
e76131
e76131
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:2.9-1.27.1
e76131
- Autorebuild for GCC 4.3
e76131
e76131
* Mon Oct 22 2007 Prarit Bhargava <prarit@redhat.com> - 1:2.9
e76131
- rebuild with version 2.9
e76131
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:2.7-1.25.1
e76131
- rebuild
e76131
e76131
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
e76131
- rebuild.
e76131
e76131
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
e76131
- rebuilt
e76131
e76131
* Mon Nov 28 2005 Dave Jones <davej@redhat.com>
e76131
- Integrate several specfile cleanups from Robert Scheck. (#172543)
e76131
e76131
* Sat Sep 24 2005 Dave Jones <davej@redhat.com>
e76131
- Revert yesterdays patch, its unneeded in 2.7
e76131
e76131
* Fri Sep 23 2005 Dave Jones <davej@redhat.com>
e76131
- Don't try to modify areas mmap'd read-only.
e76131
- Don't build on ia64 any more.
e76131
  (It breaks on some boxes very badly, and works on very few).
e76131
e76131
* Mon Sep 12 2005 Dave Jones <davej@redhat.com>
e76131
- Update to upstream 2.7
e76131
e76131
* Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
e76131
- remove empty scripts
e76131
e76131
* Wed Mar  2 2005 Dave Jones <davej@redhat.com>
e76131
- Update to upstream 2.6
e76131
e76131
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
e76131
- Rebuild for gcc4
e76131
e76131
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
e76131
- Rebuild with -D_FORTIFY_SOURCE=2
e76131
e76131
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
e76131
- Add missing Obsoletes: kernel-utils
e76131
e76131
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
e76131
- Update to upstream 2.5 release.
e76131
e76131
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
e76131
- Initial packaging, based upon kernel-utils package.
e76131