- ABI incompatible, minor API changes

- sync up libsmbios soname with version #
- move binaries to /usr/sbin as they are only runnable by root
- drop libsmbiosxml lib as it was mostly unused.
- drop autotools generated files out of git and add autogen.sh
- drop tokenCtl binary-- pysmbios has a *much* improved version
This commit is contained in:
Michael E Brown 2008-02-13 15:22:30 +00:00
parent 30c67332ae
commit 121fda855f
3 changed files with 36 additions and 60 deletions

View File

@ -1 +1 @@
libsmbios-0.13.13.tar.gz libsmbios-2.0.0.tar.gz

View File

@ -1,7 +1,7 @@
# these are all substituted by autoconf # these are all substituted by autoconf
%define major 0 %define major 2
%define minor 13 %define minor 0
%define sub 13 %define sub 0
%define extralevel %{nil} %define extralevel %{nil}
%define release_name libsmbios %define release_name libsmbios
%define release_version %{major}.%{minor}.%{sub}%{extralevel} %define release_version %{major}.%{minor}.%{sub}%{extralevel}
@ -13,15 +13,15 @@ License: GPLv2+ or OSL
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://linux.dell.com/libsmbios/download/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz Source: http://linux.dell.com/libsmbios/download/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
URL: http://linux.dell.com/libsmbios/main URL: http://linux.dell.com/libsmbios/main
Summary: Open BIOS parsing libs Summary: Libsmbios shared libraries
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: libsmbios-libs = %{version}-%{release}
BuildRequires: libxml2-devel
# libsmbios only ever makes sense on intel compatible arches # libsmbios only ever makes sense on intel compatible arches
# no DMI tables on ppc, s390, etc. # no DMI tables on ppc, s390, etc.
ExclusiveArch: x86_64 ia64 %{ix86} ExclusiveArch: x86_64 ia64 %{ix86}
BuildRequires: libxml2-devel
#EPEL4/5 dont have cppunit/cppunit-devel, so skip build tests #EPEL4/5 dont have cppunit/cppunit-devel, so skip build tests
# everything else should be able to pull in cppunit to run unit tests # everything else should be able to pull in cppunit to run unit tests
# during build. Doesnt affect binaries produced, so doesnt affect # during build. Doesnt affect binaries produced, so doesnt affect
@ -35,39 +35,24 @@ BuildRequires: cppunit-devel
BuildRequires: doxygen BuildRequires: doxygen
%endif %endif
%description %description
Libsmbios is a library and utilities that can be used by client programs Libsmbios is a library and utilities that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
%package libs %package -n smbios-utils
Summary: Libsmbios shared libraries
Group: System Environment/Libraries
Obsoletes: libsmbiosxml-libs < 0:%{version}-%{release}
Obsoletes: libsmbios < 0:%{version}-%{release}
Provides: libsmbiosxml-libs = %{version}-%{release}
%package bin
Summary: The "supported" sample binaries that use libsmbios Summary: The "supported" sample binaries that use libsmbios
Group: Applications/System Group: Applications/System
Requires: libsmbios-libs = %{version}-%{release} Requires: libsmbios = %{version}-%{release}
Obsoletes: libsmbiosxml-bin < 0:%{version}-%{release} Obsoletes: libsmbios-bin < 0:0.13.11
Provides: libsmbiosxml-bin = %{version}-%{release} Provides: libsmbios-bin = %{version}-%{release}
Obsoletes: smbios-utils < 0:%{version}-%{release} Obsoletes: libsmbios-unsupported-bin < 0.13.11
Provides: libsmbios-unsupported-bin = %{version}-%{release}
%package unsupported-bin
Summary: Unsupported sample binaries using libsmbios
Group: Applications/System
Requires: libsmbios-libs = %{version}-%{release}
%package devel %package devel
Summary: Development headers and archives Summary: Development headers and archives
Group: Development/Libraries Group: Development/Libraries
Requires: libsmbios-libs = %{version}-%{release} Requires: libsmbios = %{version}-%{release}
%description libs
Libsmbios is a library and utilities that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table.
%description devel %description devel
Libsmbios is a library and utilities that can be used by client programs Libsmbios is a library and utilities that can be used by client programs
@ -76,13 +61,7 @@ to get information from standard BIOS tables, such as the SMBIOS table.
This package contains the headers and .a files necessary to compile new This package contains the headers and .a files necessary to compile new
client programs against libsmbios. client programs against libsmbios.
%description bin %description -n smbios-utils
Libsmbios is a library and utilities that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table.
This package contains some sample binaries that use libsmbios.
%description unsupported-bin
Libsmbios is a library and utilities that can be used by client programs Libsmbios is a library and utilities that can be used by client programs
to get information from standard BIOS tables, such as the SMBIOS table. to get information from standard BIOS tables, such as the SMBIOS table.
@ -107,7 +86,7 @@ make -e %{?_smp_mflags}
[ ! -d /usr/include/cppunit ] || make -e check [ ! -d /usr/include/cppunit ] || make -e check
%install %install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
mkdir -p %{buildroot}/usr/include mkdir -p %{buildroot}/usr/include
@ -119,18 +98,16 @@ find doc/full -exec touch -r configure.ac {} \;
# backwards compatible: # backwards compatible:
ln -s /usr/sbin/dellWirelessCtl %{buildroot}/usr/bin/dellWirelessCtl ln -s /usr/sbin/dellWirelessCtl %{buildroot}/usr/bin/dellWirelessCtl
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post libs -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files libs %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING-GPL COPYING-OSL README %doc COPYING-GPL COPYING-OSL README
%{_libdir}/libsmbios.so.* %{_libdir}/libsmbios.so.*
%{_libdir}/libsmbiosxml.so.*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -138,27 +115,27 @@ rm -rf %{buildroot}
/usr/include/smbios /usr/include/smbios
%{_libdir}/libsmbios.a %{_libdir}/libsmbios.a
%{_libdir}/libsmbios.so %{_libdir}/libsmbios.so
%{_libdir}/libsmbiosxml.a %doc doc/full/html
%{_libdir}/libsmbiosxml.so
%files bin %files -n smbios-utils
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING-GPL COPYING-OSL README bin-unsupported/getopts_LICENSE.txt %doc COPYING-GPL COPYING-OSL README
%doc bin-unsupported/getopts_LICENSE.txt include/smbios/config/boost_LICENSE_1_0_txt
%{_sbindir}/assetTag %{_sbindir}/assetTag
%{_sbindir}/dellBiosUpdate %{_sbindir}/dellBiosUpdate
%{_sbindir}/getSystemId %{_sbindir}/getSystemId
%{_sbindir}/propertyTag %{_sbindir}/propertyTag
%{_sbindir}/serviceTag %{_sbindir}/serviceTag
%{_sbindir}/tokenCtl
%{_sbindir}/verifySmiPassword %{_sbindir}/verifySmiPassword
%{_sbindir}/wakeupCtl %{_sbindir}/wakeupCtl
%{_sbindir}/dellLcdBrightness %{_sbindir}/dellLcdBrightness
# used by HAL in old location, so keep it around until HAL is updated.
%{_sbindir}/dellWirelessCtl %{_sbindir}/dellWirelessCtl
%{_bindir}/dellWirelessCtl %{_bindir}/dellWirelessCtl
%files unsupported-bin # community supported stuff...
%defattr(-,root,root,-) # may or may not work
%doc COPYING-GPL COPYING-OSL README include/smbios/config/boost_LICENSE_1_0_txt bin-unsupported/getopts_LICENSE.txt
%{_sbindir}/dellLEDCtl %{_sbindir}/dellLEDCtl
%{_sbindir}/activateCmosToken %{_sbindir}/activateCmosToken
%{_sbindir}/ascii2enUS_scancode %{_sbindir}/ascii2enUS_scancode
@ -175,14 +152,13 @@ rm -rf %{buildroot}
# ./ChangeLog is appended by configure # ./ChangeLog is appended by configure
%changelog %changelog
* Mon Nov 26 2007 Michael Brown <mebrown@michaels-house.net> - 0.13.13-1 * Wed Jan 9 2008 Michael E Brown <michael_e_brown at dell.com> - 2.0.0
- Fix for compiling with recent gcc (from Danny Kukawa @ suse) - ABI incompatible, minor API changes
- fix for lsb issues - moved binaries to /usr/sbin/ because they require admin - sync up libsmbios soname with version #
privs to run. Made one backwards-compat symlink to work with existing HAL - move binaries to /usr/sbin as they are only runnable by root
which expects current location. - drop libsmbiosxml lib as it was mostly unused.
- drop autotools generated files out of git and add autogen.sh
* Mon Aug 28 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.10-1 - drop tokenCtl binary-- pysmbios has a *much* improved version
- Fix one instance where return code to fread was incorrectly checked.
* Wed Aug 22 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.9 * Wed Aug 22 2007 Michael E Brown <michael_e_brown at dell.com> - 0.13.9
- Fix a couple of failure-to-check-return on fopen. most were unit-test code - Fix a couple of failure-to-check-return on fopen. most were unit-test code

View File

@ -1 +1 @@
38ac169cfe866a8472e76df5c184a8ca libsmbios-0.13.13.tar.gz c66e2c6549010ac777dd51ea65e91faa libsmbios-2.0.0.tar.gz