4f8197
Summary:        Tool to analyse BIOS DMI data
4f8197
Name:           dmidecode
4f8197
Version:        2.12
4f8197
Release:        5.1%{?dist}
4f8197
Epoch:          1
4f8197
Group:          System Environment/Base
4f8197
License:        GPLv2+
4f8197
Source0:        %{name}-%{version}.tar.bz2
4f8197
URL:            http://www.nongnu.org/dmidecode/
4f8197
Patch0:         dmidecode-2.12-smbios_fix.patch
4f8197
Patch1:		dmidecode-use-common-function-to-get-SMBIOS-version.patch
4f8197
Patch2:		dmidecode-use-common-function-to-put-SMBIOS-in-dumpf.patch
4f8197
Patch3:		dmidecode-move-memory-map-function-from-dmi_decode.patch
4f8197
Patch4:		dmidecode-add-dmi-sysfs-support.patch
4f8197
Patch5:		Add-libdmifs-from-Linaro.patch
4f8197
Patch6:		Support-SMBIOS-3.0-64-bit-header.patch
4f8197
Buildroot:      %{_tmppath}/%{name}-%{version}-root
4f8197
BuildRequires:  automake autoconf
4f8197
ExclusiveArch:  %{ix86} x86_64 ia64 aarch64
4f8197
4f8197
%description
4f8197
dmidecode reports information about x86 & ia64 hardware as described in the
4f8197
system BIOS according to the SMBIOS/DMI standard. This information
4f8197
typically includes system manufacturer, model name, serial number,
4f8197
BIOS version, asset tag as well as a lot of other details of varying
4f8197
level of interest and reliability depending on the manufacturer.
4f8197
4f8197
This will often include usage status for the CPU sockets, expansion
4f8197
slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of
4f8197
I/O ports (e.g. serial, parallel, USB).
4f8197
4f8197
%prep
4f8197
%setup -q
4f8197
%patch0 -p1 -b .smbios_fix
4f8197
%patch1 -p1 -b .smbios_ver
4f8197
%patch2 -p1 -b .smbios_dump
4f8197
%patch3 -p1 -b .smbios_memmap
4f8197
%patch4 -p1 -b .dmi_sysfs
4f8197
%patch5 -p1 -b .libdmifs
4f8197
%patch6 -p1 -b .smbios3
4f8197
4f8197
%build
4f8197
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
4f8197
4f8197
%install
4f8197
rm -rf ${buildroot}
4f8197
make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install-man
4f8197
4f8197
%clean
4f8197
rm -rf ${buildroot}
4f8197
4f8197
%files
4f8197
%defattr(-,root,root)
4f8197
%doc AUTHORS CHANGELOG LICENSE README
4f8197
%{_sbindir}/dmidecode
4f8197
%ifarch %{ix86} x86_64
4f8197
%{_sbindir}/vpddecode
4f8197
%{_sbindir}/ownership
4f8197
%{_sbindir}/biosdecode
4f8197
%endif
4f8197
%{_mandir}/man8/*
4f8197
4f8197
%changelog
4f8197
* Wed Feb 25 2015 Mark Salter <msalter@redhat.com> - 1:2.12-5.1
4f8197
- Add preliminary support for SMBIOS 64-bit entry point
4f8197
4f8197
* Fri Feb 21 2014 Anton Arapov <anton@redhat.com> - 2.12-5
4f8197
- Spec file fixes for the Aarch64. (John Feeney )
4f8197
4f8197
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.12-4
4f8197
- Mass rebuild 2013-12-27
4f8197
4f8197
* Thu May 09 2013 Anton Arapov <anton@redhat.com> - 1:2.12-3
4f8197
- Accomodate few more necesary, to enable SMBIOS v2.8, changes from upstream.
4f8197
4f8197
* Fri Apr 26 2013 Anton Arapov <anton@redhat.com> - 1:2.12-2
4f8197
- Fixup, so that it actually read SMBIOS 2.8.0 table.
4f8197
4f8197
* Wed Apr 17 2013 Anton Arapov <anton@redhat.com> - 1:2.12-1
4f8197
- Update to upstream 2.12 release.
4f8197
4f8197
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-10
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4f8197
4f8197
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-9
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f8197
4f8197
* Mon Mar 26 2012 Anton Arapov <anton@redhat.com> - 1:2.11-8
4f8197
- Update dmidecode.8 manpage
4f8197
4f8197
* Mon Mar 12 2012 Anton Arapov <anton@redhat.com> - 1:2.11-7
4f8197
- Add "PXE" to HP OEM Type 209 record output
4f8197
- Properly print the hexadecimal value of invalid string characters
4f8197
4f8197
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-6
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f8197
4f8197
* Mon Nov 14 2011 Anton Arapov <anton@redhat.com> - 1:2.11-5
4f8197
- Fix the wrong call of the dmi_chassis_type function call. Thus fix
4f8197
  an issue on the systems with the chassis lock available, application
4f8197
  doesn't fall out with the out of spec error anymore.
4f8197
4f8197
* Tue May 03 2011 Anton Arapov <anton@redhat.com> - 1:2.11-4
4f8197
- Update to SMBIOS 2.7.1
4f8197
- Fix the boundaries check in type16
4f8197
4f8197
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.11-3
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f8197
4f8197
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-2
4f8197
- Update to upstream 2.11 release. (#623047)
4f8197
4f8197
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> - 1:2.11-1
4f8197
- Fix the changelog's NVR.
4f8197
4f8197
* Mon Nov 08 2010 Prarit Bhargava <prarit@redhat.com> - 1:2.10-3
4f8197
- updated kernel.spec for review [BZ 225698]
4f8197
4f8197
* Fri Oct 15 2010 Anton Arapov <aarapov@redhat.com> - 1:2.10-2
4f8197
- Does not build with gnu make v3.82+ (#631407)
4f8197
4f8197
* Fri Dec 18 2009 Prarit Bhargava <prarit@redhat.com> - 1:2.10-1.40
4f8197
- Fix rpmlint errors in specfile
4f8197
4f8197
* Fri Aug 28 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.39
4f8197
- Fix cache associativity mapping (was missing some commas)
4f8197
4f8197
* Mon Aug 24 2009 Jarod Wilson <jarod@redhat.com> - 1:2.10-1.38
4f8197
- Add support for newer sockets, processors and pcie slot types
4f8197
4f8197
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.36.2
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4f8197
4f8197
* Fri Feb 27 2009 Matthias Clasen <mclasen@redhat.com>
4f8197
- Build for i586
4f8197
4f8197
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.10-1.34.1
4f8197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4f8197
4f8197
* Mon Feb 09 2009 Prarit Bhargava <prarit@redhat.com> 1:2.10
4f8197
- rebuild with version 2.10
4f8197
4f8197
* Wed Jan 28 2009 Prarit Bhargava <prarit@redhat.com> 1:2.9-1.32
4f8197
- fix Summary field (BZ 225698)
4f8197
4f8197
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:2.9-1.30
4f8197
- fix license tag
4f8197
4f8197
* Fri Mar 14 2008 Doug Chapman <doug.chapman@hp.com> 1:2.9-1.29.1
4f8197
- Do not package vpddecode, ownership and biosdecode on ia64 since those are x86 only
4f8197
4f8197
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:2.9-1.27.1
4f8197
- Autorebuild for GCC 4.3
4f8197
4f8197
* Mon Oct 22 2007 Prarit Bhargava <prarit@redhat.com> - 1:2.9
4f8197
- rebuild with version 2.9
4f8197
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:2.7-1.25.1
4f8197
- rebuild
4f8197
4f8197
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
4f8197
- rebuild.
4f8197
4f8197
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
4f8197
- rebuilt
4f8197
4f8197
* Mon Nov 28 2005 Dave Jones <davej@redhat.com>
4f8197
- Integrate several specfile cleanups from Robert Scheck. (#172543)
4f8197
4f8197
* Sat Sep 24 2005 Dave Jones <davej@redhat.com>
4f8197
- Revert yesterdays patch, its unneeded in 2.7
4f8197
4f8197
* Fri Sep 23 2005 Dave Jones <davej@redhat.com>
4f8197
- Don't try to modify areas mmap'd read-only.
4f8197
- Don't build on ia64 any more.
4f8197
  (It breaks on some boxes very badly, and works on very few).
4f8197
4f8197
* Mon Sep 12 2005 Dave Jones <davej@redhat.com>
4f8197
- Update to upstream 2.7
4f8197
4f8197
* Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
4f8197
- remove empty scripts
4f8197
4f8197
* Wed Mar  2 2005 Dave Jones <davej@redhat.com>
4f8197
- Update to upstream 2.6
4f8197
4f8197
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
4f8197
- Rebuild for gcc4
4f8197
4f8197
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
4f8197
- Rebuild with -D_FORTIFY_SOURCE=2
4f8197
4f8197
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
4f8197
- Add missing Obsoletes: kernel-utils
4f8197
4f8197
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
4f8197
- Update to upstream 2.5 release.
4f8197
4f8197
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
4f8197
- Initial packaging, based upon kernel-utils package.
4f8197