diff --git a/libsmbios-0.13.10.tar.bz2 b/libsmbios-0.13.10.tar.bz2 new file mode 100644 index 0000000..aa23400 --- /dev/null +++ b/libsmbios-0.13.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eecbad56e94905f52b09fb869972e2a06d99e73d8b73290b58ee5e477fe5fe21 +size 3299227 diff --git a/libsmbios-0.13.6.tar.bz2 b/libsmbios-0.13.6.tar.bz2 deleted file mode 100644 index b3820d5..0000000 --- a/libsmbios-0.13.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6b38f9b6c75252c2b4e73593007b1178f03eae0036f125488539ee46b6d27e6 -size 3447619 diff --git a/libsmbios-fix-includes.diff b/libsmbios-fix-includes.diff new file mode 100644 index 0000000..38075b8 --- /dev/null +++ b/libsmbios-fix-includes.diff @@ -0,0 +1,297 @@ +--- libsmbios-0.13.10/libraries/smbios/SmbiosStrategy.cpp 2007-08-21 08:16:20.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smbios/SmbiosStrategy.cpp 2007-10-12 14:21:03.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "smbios/IMemory.h" + #include "SmbiosImpl.h" +--- libsmbios-0.13.10/libraries/smbios/SmbiosTable.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smbios/SmbiosTable.cpp 2007-10-12 14:20:35.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "SmbiosImpl.h" + +--- libsmbios-0.13.10/libraries/memory/Memory_Linux.cpp 2007-08-21 08:16:20.000000000 +0200 ++++ libsmbios-0.13.10/libraries/memory/Memory_Linux.cpp 2007-10-12 14:22:52.000000000 +0200 +@@ -23,6 +23,7 @@ + #include + #include /* mmap */ + #include /* getpagesize */ ++#include /* memcpy etc. */ + + #include "MemoryImpl.h" + +--- libsmbios-0.13.10/libraries/smbios/SmbiosWorkaround.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smbios/SmbiosWorkaround.cpp 2007-10-12 14:24:48.000000000 +0200 +@@ -26,6 +26,8 @@ + // message.h should be included last. + #include "smbios/message.h" + ++#include ++ + using namespace std; + + // convenience function. +--- libsmbios-0.13.10/libraries/smbios/SmbiosStrategy_Linux.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smbios/SmbiosStrategy_Linux.cpp 2007-10-12 14:25:44.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "smbios/IMemory.h" + #include "SmbiosImpl.h" +--- libsmbios-0.13.10/libraries/smbios/SmbiosItem.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smbios/SmbiosItem.cpp 2007-10-12 14:26:27.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "SmbiosImpl.h" + // message.h should be included last. +--- libsmbios-0.13.10/libraries/smi/Smi.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smi/Smi.cpp 2007-10-12 14:27:07.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + //#include ++#include + + #include "SmiImpl.h" + #include "smbios/ISmbios.h" +--- libsmbios-0.13.10/libraries/memory/Memory.cpp 2007-08-21 08:16:20.000000000 +0200 ++++ libsmbios-0.13.10/libraries/memory/Memory.cpp 2007-10-12 14:36:43.000000000 +0200 +@@ -22,6 +22,7 @@ + + #include + #include ++#include + + #include "MemoryImpl.h" + +--- libsmbios-0.13.10/libraries/smi/Smi_Linux.cpp 2007-08-23 04:44:40.000000000 +0200 ++++ libsmbios-0.13.10/libraries/smi/Smi_Linux.cpp 2007-10-12 15:16:02.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "SmiImpl.h" + +--- libsmbios-0.13.10/libraries/systeminfo/IdByte.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/systeminfo/IdByte.cpp 2007-10-12 15:55:06.000000000 +0200 +@@ -28,6 +28,8 @@ + #include "SystemDetect.h" + #include "DellMagic.h" + ++#include ++ + // should always be included last. + #include "smbios/message.h" + +--- libsmbios-0.13.10/libraries/systeminfo/System.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/systeminfo/System.cpp 2007-10-12 16:15:15.000000000 +0200 +@@ -31,6 +31,8 @@ + + #include "smbios/version.h" + ++#include ++ + // this always should be included last + #include "smbios/message.h" + +--- libsmbios-0.13.10/libraries/systeminfo/SystemDetect.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/systeminfo/SystemDetect.cpp 2007-10-12 16:16:32.000000000 +0200 +@@ -30,6 +30,8 @@ + // all our magic numbers + #include "DellMagic.h" + ++#include ++ + // include this last. + #include "smbios/message.h" + +--- libsmbios-0.13.10/libraries/token/TokenDA.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/token/TokenDA.cpp 2007-10-12 16:27:56.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "TokenImpl.h" + +--- libsmbios-0.13.10/libraries/token/TokenD6.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/token/TokenD6.cpp 2007-10-12 16:28:41.000000000 +0200 +@@ -22,6 +22,7 @@ + + #include + #include ++#include + + #include "TokenImpl.h" + +--- libsmbios-0.13.10/libraries/token/TokenD5.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/token/TokenD5.cpp 2007-10-12 16:29:31.000000000 +0200 +@@ -22,6 +22,7 @@ + + #include + #include ++#include + + #include "TokenImpl.h" + +--- libsmbios-0.13.10/libraries/token/TokenD4.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/token/TokenD4.cpp 2007-10-12 16:30:10.000000000 +0200 +@@ -21,6 +21,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "TokenImpl.h" + +--- libsmbios-0.13.10/libraries/xml_libxml2/SmbiosXml.cpp 2007-05-24 17:46:25.000000000 +0200 ++++ libsmbios-0.13.10/libraries/xml_libxml2/SmbiosXml.cpp 2007-10-12 16:44:59.000000000 +0200 +@@ -22,6 +22,7 @@ + + #include + #include ++#include + + #include "SmbiosXmlImpl.h" + #include "StdSmbiosXml.h" +--- libsmbios-0.13.10/bin-supported/assetTag.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/assetTag.cpp 2007-10-12 16:46:11.000000000 +0200 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "smbios/IMemory.h" // only needed if you want to use fake input (memdump.dat) + #include "smbios/ICmosRW.h" // only needed if you want to use fake input (cmos.dat) +--- libsmbios-0.13.10/bin-supported/propertyTag.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/propertyTag.cpp 2007-10-12 17:51:17.000000000 +0200 +@@ -22,7 +22,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/ISmi.h" // only needed if you want to use fake input (memdump.dat) + #include "smbios/SystemInfo.h" // this is the main header to include to use the C interface +--- libsmbios-0.13.10/bin-supported/serviceTag.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/serviceTag.cpp 2007-10-12 17:52:30.000000000 +0200 +@@ -22,7 +22,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/IMemory.h" // only needed if you want to use fake input (memdump.dat) + #include "smbios/ICmosRW.h" // only needed if you want to use fake input (cmos.dat) +--- libsmbios-0.13.10/bin-supported/verifySmiPassword.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/verifySmiPassword.cpp 2007-10-12 19:22:43.000000000 +0200 +@@ -20,6 +20,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "smbios/ISmi.h" + #include "smbios/SystemInfo.h" +--- libsmbios-0.13.10/bin-supported/dellLcdBrightness.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/dellLcdBrightness.cpp 2007-10-12 20:20:26.000000000 +0200 +@@ -22,7 +22,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/ISmi.h" + #include "smbios/IToken.h" +--- libsmbios-0.13.10/bin-supported/tokenCtl.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/tokenCtl.cpp 2007-10-12 20:21:33.000000000 +0200 +@@ -35,7 +35,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/IToken.h" + #include "smbios/IMemory.h" +--- libsmbios-0.13.10/bin-supported/dellBiosUpdate.cpp 2007-07-21 01:36:29.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/dellBiosUpdate.cpp 2007-10-12 20:22:32.000000000 +0200 +@@ -20,6 +20,7 @@ + #include "smbios/compat.h" + + #include ++#include + + #include "smbios/DellRbu.h" + #include "smbios/SystemInfo.h" +--- libsmbios-0.13.10/bin-supported/dellWirelessCtl.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-supported/dellWirelessCtl.cpp 2007-10-12 20:45:55.000000000 +0200 +@@ -22,7 +22,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/ISmi.h" + #include "smbios/IToken.h" +--- libsmbios-0.13.10/bin-unsupported/ascii2enUS_scancode.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-unsupported/ascii2enUS_scancode.cpp 2007-10-12 22:12:51.000000000 +0200 +@@ -21,6 +21,8 @@ + + #include + ++#include ++ + #include "smbios/ISmi.h" + #include "smbios/version.h" + #include "getopts.h" +--- libsmbios-0.13.10/bin-unsupported/dellLEDCtl.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-unsupported/dellLEDCtl.cpp 2007-10-12 22:14:47.000000000 +0200 +@@ -30,6 +30,7 @@ + #include + #endif + #include ++#include + + #include "smbios/ISmi.h" + #include "smbios/IToken.h" +--- libsmbios-0.13.10/bin-unsupported/smitest.cpp 2007-05-24 17:46:23.000000000 +0200 ++++ libsmbios-0.13.10/bin-unsupported/smitest.cpp 2007-10-12 22:55:38.000000000 +0200 +@@ -22,7 +22,9 @@ + #include + #include + #include ++ + #include ++#include + + #include "smbios/ISmi.h" // only needed if you want to use fake input (memdump.dat) + #include "getopts.h" diff --git a/libsmbios.changes b/libsmbios.changes index b1db6c1..21a4d82 100644 --- a/libsmbios.changes +++ b/libsmbios.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Oct 16 14:08:56 CEST 2007 - dkukawka@suse.de + +- updated to new version 0.13.10: + - Fix a couple of failure-to-check-return on fopen. most were + unit-test code only, but two or three were in regular code. + - Add hinting to the memory class, so that it can intelligently + close /dev/mem file handle when it is not needed (which is + most of the time). it only leaves it open when it is scanning, + so speed is not impacted. + - new upstream +- added patches: + - libsmbios-fix-includes.diff: fix missing includes (needed to + build in beta tree) + ------------------------------------------------------------------- Wed May 2 13:55:51 CEST 2007 - dkukawka@suse.de diff --git a/libsmbios.spec b/libsmbios.spec index 5ff8375..4aee0fe 100644 --- a/libsmbios.spec +++ b/libsmbios.spec @@ -1,5 +1,5 @@ # -# spec file for package libsmbios (Version 0.13.6) +# spec file for package libsmbios (Version 0.13.10) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -11,7 +11,7 @@ Name: libsmbios BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml libxml2-devel tree -URL: http://linux.dell.com/libsmbios/main/index.html +Url: http://linux.dell.com/libsmbios/main/index.html %define _unpackaged_files_terminate_build 0 %define build_static 0 # automatically determine if we should build xml @@ -29,10 +29,11 @@ URL: http://linux.dell.com/libsmbios/main/index.html %define extralevel %{nil} %define release_name libsmbios %define release_version %{major}.%{minor}.%{sub}%{extralevel} -Version: 0.13.6 +Version: 0.13.10 Release: 1 -License: BSD License and BSD-like, GNU General Public License (GPL) +License: BSD 3-Clause; GPL v2 or later; Other uncritical OpenSource License Source: %{name}-%{version}.tar.bz2 +Patch0: libsmbios-fix-includes.diff Summary: Open BIOS parsing libs Group: System/Management BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -52,21 +53,27 @@ Authors: Summary: Libsmbios shared libraries. Group: System/Management Provides: %name = %version + %package -n libsmbiosxml-libs Summary: Libsmbiosxml shared libraries. Group: System/Management + %package bin Summary: The "supported" sample binaries that use libsmbios Group: System/Management + %package unsupported-bin Summary: Unsupported sample binaries using libsmbios Group: System/Management + %package -n libsmbiosxml-bin Summary: sample binaries that use libsmbiosxml Group: System/Management + %package devel Summary: development headers and archives Group: System/Management + %package static Summary: Open BIOS parsing libs Group: System/Management @@ -81,7 +88,6 @@ Authors: -------- Michael Brown - %description -n libsmbiosxml-libs Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -92,7 +98,6 @@ Authors: -------- Michael Brown - %description devel Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -106,7 +111,6 @@ Authors: -------- Michael Brown - %description bin Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -119,7 +123,6 @@ Authors: -------- Michael Brown - %description unsupported-bin Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -132,7 +135,6 @@ Authors: -------- Michael Brown - %description -n libsmbiosxml-bin Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -145,7 +147,6 @@ Authors: -------- Michael Brown - %description static Libsmbios is a library and utilites that can be used by client programs to get information from standard BIOS tables, such as the SMBIOS table. @@ -158,6 +159,7 @@ Authors: %prep %setup +%patch0 -p1 find . -type d -exec chmod -f 755 {} \; find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \; @@ -251,8 +253,19 @@ ldconfig %defattr(555,root,root) %{_bindir}/*S %endif - %changelog +* Tue Oct 16 2007 - dkukawka@suse.de +- updated to new version 0.13.10: + - Fix a couple of failure-to-check-return on fopen. most were + unit-test code only, but two or three were in regular code. + - Add hinting to the memory class, so that it can intelligently + close /dev/mem file handle when it is not needed (which is + most of the time). it only leaves it open when it is scanning, + so speed is not impacted. + - new upstream +- added patches: + - libsmbios-fix-includes.diff: fix missing includes (needed to + build in beta tree) * Wed May 02 2007 - dkukawka@suse.de - updated to new version 0.13.6: - critical bugfix to dellBiosUpdate utility to fix packet mode