60918b
Summary:        Tool to analyse BIOS DMI data
60918b
Name:           dmidecode
60918b
Version:        3.1
60918b
Release:        2%{?dist}
60918b
Epoch:          1
60918b
Group:          System Environment/Base
60918b
License:        GPLv2+
60918b
Source0:        %{name}-%{version}.tar.xz
60918b
URL:            http://www.nongnu.org/dmidecode/
60918b
Patch0:         0001-dmidecode-Add-system-family-direct-string-option.patch
60918b
Patch1:         0002-Goodbye-CHANGELOG-welcome-NEWS.patch
60918b
Patch2:         0003-Fix-install-doc-target.patch
60918b
Patch3:         0004-biosdecode-Add-option-pir-full.patch
60918b
Patch4:         0005-biosdecode-Clean-up-the-PIR-table-output.patch
60918b
Patch5:         0006-biosdecode-Avoid-repeating-pointer-arithmetic.patch
60918b
Patch6:         0007-dmioem-Reflect-HPE-s-new-company-name.patch
60918b
Patch7:         0008-dmioem-Sort-vendor-names-alphabetically.patch
60918b
Patch8:         0009-UEFI-support-on-FreeBSD.patch
60918b
Patch9:         0010-dmidecode-Share-common-EFI-code.patch
60918b
Patch10:        0001-dmidecode-Fix-firmware-version-of-TPM-device.patch
60918b
Patch11:        0002-dmioem-decode-HPE-UEFI-type-219-Misc-Features.patch
60918b
Patch12:        0003-dmidecode-Use-lowercase-letters-for-UUID.patch
60918b
60918b
Buildroot:      %{_tmppath}/%{name}-%{version}-root
60918b
BuildRequires:  automake autoconf
60918b
ExclusiveArch:  %{ix86} x86_64 ia64 aarch64
60918b
60918b
%description
60918b
dmidecode reports information about x86 & ia64 hardware as described in the
60918b
system BIOS according to the SMBIOS/DMI standard. This information
60918b
typically includes system manufacturer, model name, serial number,
60918b
BIOS version, asset tag as well as a lot of other details of varying
60918b
level of interest and reliability depending on the manufacturer.
60918b
60918b
This will often include usage status for the CPU sockets, expansion
60918b
slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of
60918b
I/O ports (e.g. serial, parallel, USB).
60918b
60918b
%prep
60918b
%setup -q
60918b
%patch0 -p1 -b .add_system_family
60918b
%patch1 -p1 -b .changelog_to_new
60918b
%patch2 -p1 -b .fix_install_doc
60918b
%patch3 -p1 -b .add_option_pir
60918b
%patch4 -p1 -b .clean_up_pir
60918b
%patch5 -p1 -b .avoid_repeating
60918b
%patch6 -p1 -b .reflect_hpe
60918b
%patch7 -p1 -b .sort_vendor_names
60918b
%patch8 -p1 -b .uefi_support_bsd
60918b
%patch9 -p1 -b .share_common_efi
60918b
%patch10 -p1
60918b
%patch11 -p1
60918b
%patch12 -p1
60918b
60918b
%build
60918b
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-pie -Wl,-z,now"
60918b
60918b
%install
60918b
rm -rf ${buildroot}
60918b
make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install-man
60918b
60918b
%clean
60918b
rm -rf ${buildroot}
60918b
60918b
%files
60918b
%doc AUTHORS NEWS README
60918b
%{!?_licensedir:%global license %%doc}
60918b
%license LICENSE
60918b
%{_sbindir}/dmidecode
60918b
%ifnarch ia64 aarch64
60918b
%{_sbindir}/vpddecode
60918b
%{_sbindir}/ownership
60918b
%{_sbindir}/biosdecode
60918b
%endif
60918b
%{_mandir}/man8/*
60918b
60918b
%changelog
60918b
* Thu Apr 26 2018 Lianbo Jiang <lijiang@redhat.com> - 1:3.1-1
60918b
- Sync with upstream
60918b
- Resolves: rhbz#1568227
60918b
60918b
* Wed May 3 2017 Petr Oros <poros@redhat.com> - 1:3.0-5
60918b
- Update compiler flags for hardened builds
60918b
- Resolves: #1420763
60918b
60918b
* Tue Feb 28 2017 Petr Oros <poros@redhat.com> - 1:3.0-4
60918b
- Sync with upstream
60918b
- Resolves: #1385884
60918b
60918b
* Tue Nov 8 2016 Petr Oros <poros@redhat.com> - 1:3.0-3
60918b
- Hide irrelevant fixup message
60918b
- Resolves: #1384195
60918b
60918b
* Wed Jun 29 2016 Petr Oros <poros@redhat.com> - 1:3.0-2
60918b
- Unmask LRDIMM in memmory type detail
60918b
- Resolves: #1321342
60918b
60918b
* Wed May 4 2016 Petr Oros <poros@redhat.com> - 1:3.0-1
60918b
- Update to upstream 3.0 release.
60918b
- Resolves: #1273487
60918b
60918b
* Mon Sep 21 2015 Petr Oros <poros@redhat.com> - 1:2.12-9
60918b
- dmioem: Decode Acer-specific DMI type 170
60918b
- dmioem: Decode HP-specific DMI types 212 and 219
60918b
- dmioem: Decode HP-specific DMI type 233, and refactored 209 and 221 to use a common function
60918b
- Resolves: #1232501
60918b
60918b
* Thu Jul 23 2015 Petr Oros <poros@redhat.com> - 1:2.12-8
60918b
- Support upstream sysfs filename for smbios entry point (Mark Salter)
60918b
- Resolves: #1232153
60918b
60918b
* Thu Jul 16 2015 Petr Oros <poros@redhat.com> - 1:2.12-7
60918b
- only use SMBIOS3 on aarch64 systems (Jeffrey Bastian)
60918b
- Resolves: #1242409
60918b
60918b
* Wed May 13 2015 Petr Oros <poros@redhat.com> - 1:2.12-6
60918b
- Add preliminary support for SMBIOS 64-bit entry point (Mark Salter)
60918b
- Add support for DDR4 memmory
60918b
60918b
* Fri Feb 21 2014 Anton Arapov <anton@redhat.com> - 2.12-5
60918b
- Spec file fixes for the Aarch64. (John Feeney )
60918b
60918b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.12-4
60918b
- Mass rebuild 2013-12-27
60918b
60918b
* Thu May 09 2013 Anton Arapov <anton@redhat.com> - 1:2.12-3
60918b
- Accomodate few more necesary, to enable SMBIOS v2.8, changes from upstream.
60918b
60918b
* Fri Apr 26 2013 Anton Arapov <anton@redhat.com> - 1:2.12-2
60918b
- Fixup, so that it actually read SMBIOS 2.8.0 table.
60918b
60918b
* Wed Apr 17 2013 Anton Arapov <anton@redhat.com> - 1:2.12-1
60918b
- Update to upstream 2.12 release.
60918b
60918b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-10
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
60918b
60918b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-9
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
60918b
60918b
* Mon Mar 26 2012 Anton Arapov <anton@redhat.com> - 1:2.11-8
60918b
- Update dmidecode.8 manpage
60918b
60918b
* Mon Mar 12 2012 Anton Arapov <anton@redhat.com> - 1:2.11-7
60918b
- Add "PXE" to HP OEM Type 209 record output
60918b
- Properly print the hexadecimal value of invalid string characters
60918b
60918b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-6
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
60918b
60918b
* Mon Nov 14 2011 Anton Arapov <anton@redhat.com> - 1:2.11-5
60918b
- Fix the wrong call of the dmi_chassis_type function call. Thus fix
60918b
  an issue on the systems with the chassis lock available, application
60918b
  doesn't fall out with the out of spec error anymore.
60918b
60918b
* Tue May 03 2011 Anton Arapov <anton@redhat.com> - 1:2.11-4
60918b
- Update to SMBIOS 2.7.1
60918b
- Fix the boundaries check in type16
60918b
60918b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-3
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
60918b
60918b
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-2
60918b
- Update to upstream 2.11 release. (#623047)
60918b
60918b
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-1
60918b
- Fix the changelog's NVR.
60918b
60918b
* Mon Nov 08 2010 Prarit Bhargava <prarit@redhat.com> - 1:2.10-3
60918b
- updated kernel.spec for review [BZ 225698]
60918b
60918b
* Fri Oct 15 2010 Anton Arapov <aarapov@redhat.com> - 1:2.10-2
60918b
- Does not build with gnu make v3.82+ (#631407)
60918b
60918b
* Fri Dec 18 2009 Prarit Bhargava <prarit@redhat.com> - 1:2.10-1.40
60918b
- Fix rpmlint errors in specfile
60918b
60918b
* Fri Aug 28 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.39
60918b
- Fix cache associativity mapping (was missing some commas)
60918b
60918b
* Mon Aug 24 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.38
60918b
- Add support for newer sockets, processors and pcie slot types
60918b
60918b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.36.2
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
60918b
60918b
* Fri Feb 27 2009 Matthias Clasen <mclasen@redhat.com>
60918b
- Build for i586
60918b
60918b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.34.1
60918b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
60918b
60918b
* Mon Feb 09 2009 Prarit Bhargava <prarit@redhat.com> 1:2.10
60918b
- rebuild with version 2.10
60918b
60918b
* Wed Jan 28 2009 Prarit Bhargava <prarit@redhat.com> 1:2.9-1.32
60918b
- fix Summary field (BZ 225698)
60918b
60918b
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:2.9-1.30
60918b
- fix license tag
60918b
60918b
* Fri Mar 14 2008 Doug Chapman <doug.chapman@hp.com> 1:2.9-1.29.1
60918b
- Do not package vpddecode, ownership and biosdecode on ia64 since those are x86 only
60918b
60918b
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:2.9-1.27.1
60918b
- Autorebuild for GCC 4.3
60918b
60918b
* Mon Oct 22 2007 Prarit Bhargava <prarit@redhat.com> - 1:2.9
60918b
- rebuild with version 2.9
60918b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:2.7-1.25.1
60918b
- rebuild
60918b
60918b
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
60918b
- rebuild.
60918b
60918b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
60918b
- rebuilt
60918b
60918b
* Mon Nov 28 2005 Dave Jones <davej@redhat.com>
60918b
- Integrate several specfile cleanups from Robert Scheck. (#172543)
60918b
60918b
* Sat Sep 24 2005 Dave Jones <davej@redhat.com>
60918b
- Revert yesterdays patch, its unneeded in 2.7
60918b
60918b
* Fri Sep 23 2005 Dave Jones <davej@redhat.com>
60918b
- Don't try to modify areas mmap'd read-only.
60918b
- Don't build on ia64 any more.
60918b
  (It breaks on some boxes very badly, and works on very few).
60918b
60918b
* Mon Sep 12 2005 Dave Jones <davej@redhat.com>
60918b
- Update to upstream 2.7
60918b
60918b
* Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
60918b
- remove empty scripts
60918b
60918b
* Wed Mar  2 2005 Dave Jones <davej@redhat.com>
60918b
- Update to upstream 2.6
60918b
60918b
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
60918b
- Rebuild for gcc4
60918b
60918b
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
60918b
- Rebuild with -D_FORTIFY_SOURCE=2
60918b
60918b
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
60918b
- Add missing Obsoletes: kernel-utils
60918b
60918b
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
60918b
- Update to upstream 2.5 release.
60918b
60918b
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
60918b
- Initial packaging, based upon kernel-utils package.
60918b