2007-01-16 00:23:15 +01:00
|
|
|
#
|
2007-11-05 12:27:26 +01:00
|
|
|
# spec file for package libsmbios (Version 0)
|
2007-01-16 00:23:15 +01:00
|
|
|
#
|
2007-03-05 00:24:53 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:15 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libsmbios
|
2007-03-27 01:54:56 +02:00
|
|
|
BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml libxml2-devel tree
|
2007-10-16 18:21:08 +02:00
|
|
|
Url: http://linux.dell.com/libsmbios/main/index.html
|
2007-03-27 01:54:56 +02:00
|
|
|
%define _unpackaged_files_terminate_build 0
|
|
|
|
%define build_static 0
|
2007-01-16 00:23:15 +01:00
|
|
|
# automatically determine if we should build xml
|
|
|
|
%define build_xml %( ([ -e /usr/include/xercesc/ ] && echo 1) || echo 0 )
|
|
|
|
# automatically determine if we should build docs
|
|
|
|
%define build_docs %( ( which doxygen > /dev/null 2>&1 && echo 1) || echo 0 )
|
2007-03-27 01:54:56 +02:00
|
|
|
%define run_cppunit %( ([ -e /usr/include/cppunit ] && echo 1) || echo 0)
|
2007-01-16 00:23:15 +01:00
|
|
|
%{?_without_docs: %{expand: %%define build_docs 0}}
|
|
|
|
%{?_with_docs: %{expand: %%define build_docs 1}}
|
2007-03-27 01:54:56 +02:00
|
|
|
%{?_without_cppunit: %{expand: %%define run_cppunit 0}}
|
|
|
|
%{?_with_cppunit: %{expand: %%define run_cppunit 1}}
|
|
|
|
%define major 0
|
|
|
|
%define minor 13
|
2007-11-05 12:27:26 +01:00
|
|
|
%define sub 12
|
2007-03-27 01:54:56 +02:00
|
|
|
%define extralevel %{nil}
|
|
|
|
%define release_name libsmbios
|
|
|
|
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
|
2007-11-05 12:27:26 +01:00
|
|
|
Version: %{major}.%{minor}.%{sub}
|
2007-03-05 00:24:53 +01:00
|
|
|
Release: 1
|
2007-10-16 18:21:08 +02:00
|
|
|
License: BSD 3-Clause; GPL v2 or later; Other uncritical OpenSource License
|
2007-03-27 01:54:56 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-01-16 00:23:15 +01:00
|
|
|
Summary: Open BIOS parsing libs
|
|
|
|
Group: System/Management
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-03-05 00:24:53 +01:00
|
|
|
ExcludeArch: ppc ppc64 s390 s390x
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael Brown
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libsmbios shared libraries.
|
|
|
|
Group: System/Management
|
|
|
|
Provides: %name = %version
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package -n libsmbiosxml-libs
|
|
|
|
Summary: Libsmbiosxml shared libraries.
|
|
|
|
Group: System/Management
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package bin
|
|
|
|
Summary: The "supported" sample binaries that use libsmbios
|
|
|
|
Group: System/Management
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package unsupported-bin
|
|
|
|
Summary: Unsupported sample binaries using libsmbios
|
|
|
|
Group: System/Management
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package -n libsmbiosxml-bin
|
|
|
|
Summary: sample binaries that use libsmbiosxml
|
|
|
|
Group: System/Management
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package devel
|
|
|
|
Summary: development headers and archives
|
|
|
|
Group: System/Management
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package static
|
|
|
|
Summary: Open BIOS parsing libs
|
|
|
|
Group: System/Management
|
|
|
|
|
|
|
|
%description 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains the headers and .a files necessary to compile new
|
|
|
|
client programs against libsmbios
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains some sample binaries that use libsmbios.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains some sample binaries that use libsmbios.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains some sample binaries that use libsmbios.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael Brown
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2007-03-27 01:54:56 +02:00
|
|
|
find . -type d -exec chmod -f 755 {} \;
|
2007-05-04 00:51:21 +02:00
|
|
|
find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \;
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%build
|
2007-03-27 01:54:56 +02:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags} EXTRA_CXXFLAGS="%{optflags}" EXTRA_CFLAGS="%{optflags}" -e RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel}
|
2007-01-16 00:23:15 +01:00
|
|
|
%if %{build_docs}
|
2007-03-27 01:54:56 +02:00
|
|
|
make -e RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel} doxygen
|
|
|
|
%endif
|
|
|
|
%if %{run_cppunit}
|
|
|
|
make -e EXTRA_CXXFLAGS="%{optflags}" EXTRA_CFLAGS="%{optflags}" RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel} unit_test
|
2007-01-16 00:23:15 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2007-03-27 01:54:56 +02:00
|
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
mkdir -p %{buildroot}/usr/include
|
|
|
|
cp -a include/smbios %{buildroot}/usr/include/
|
|
|
|
rm -f %{buildroot}/%{_libdir}/lib*.la
|
2007-05-04 00:51:21 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/lib*.a
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%post libs
|
|
|
|
ldconfig
|
|
|
|
|
|
|
|
%post -n libsmbiosxml-libs
|
|
|
|
ldconfig
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsmbios.so.*.*
|
|
|
|
%if %{build_xml}
|
|
|
|
|
|
|
|
%files -n libsmbiosxml-libs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsmbiosxml.so.*.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-05-04 00:51:21 +02:00
|
|
|
%doc COPYING-GPL COPYING-OSL README bin-unsupported/getopts_LICENSE.txt
|
2007-01-16 00:23:15 +01:00
|
|
|
%if %{build_docs}
|
|
|
|
%doc doc/full/html
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libsmbios.so
|
2007-03-27 01:54:56 +02:00
|
|
|
%{_libdir}/libsmbios.so.1
|
2007-01-16 00:23:15 +01:00
|
|
|
%{_libdir}/libsmbiosxml.so
|
2007-03-27 01:54:56 +02:00
|
|
|
%{_libdir}/libsmbiosxml.so.1
|
|
|
|
/usr/include/smbios
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%files bin
|
|
|
|
%defattr(555,root,root)
|
2007-03-05 00:24:53 +01:00
|
|
|
%doc COPYING-GPL COPYING-OSL README
|
2007-11-05 12:27:26 +01:00
|
|
|
%{_sbindir}/assetTag
|
|
|
|
%{_sbindir}/dellBiosUpdate
|
|
|
|
%{_sbindir}/getSystemId
|
|
|
|
%{_sbindir}/propertyTag
|
|
|
|
%{_sbindir}/serviceTag
|
|
|
|
%{_sbindir}/tokenCtl
|
|
|
|
%{_sbindir}/verifySmiPassword
|
|
|
|
%{_sbindir}/wakeupCtl
|
|
|
|
%{_sbindir}/dellLcdBrightness
|
|
|
|
%{_sbindir}/dellWirelessCtl
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%files unsupported-bin
|
|
|
|
%defattr(555,root,root)
|
2007-05-04 00:51:21 +02:00
|
|
|
%doc COPYING-GPL COPYING-OSL README include/smbios/config/boost_LICENSE_1_0_txt bin-unsupported/getopts_LICENSE.txt
|
2007-11-05 12:27:26 +01:00
|
|
|
%{_sbindir}/activateCmosToken
|
|
|
|
%{_sbindir}/ascii2enUS_scancode
|
|
|
|
%{_sbindir}/createUnitTestFiles
|
|
|
|
%{_sbindir}/disable_console_redir
|
|
|
|
%{_sbindir}/dumpCmos
|
|
|
|
%{_sbindir}/dellLEDCtl
|
|
|
|
%{_sbindir}/getPasswordFormat
|
|
|
|
%{_sbindir}/isCmosTokenActive
|
|
|
|
%{_sbindir}/probes
|
|
|
|
%{_sbindir}/smitest
|
|
|
|
%{_sbindir}/stateByteCtl
|
|
|
|
%{_sbindir}/upBootCtl
|
2007-01-16 00:23:15 +01:00
|
|
|
%if %{build_xml}
|
|
|
|
|
|
|
|
%files -n libsmbiosxml-bin
|
|
|
|
%defattr(555,root,root)
|
2007-11-05 12:27:26 +01:00
|
|
|
%{_sbindir}/dumpSmbios
|
2007-01-16 00:23:15 +01:00
|
|
|
%endif
|
|
|
|
%if %{build_static}
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%defattr(555,root,root)
|
|
|
|
%{_bindir}/*S
|
|
|
|
%endif
|
2007-03-05 00:24:53 +01:00
|
|
|
%changelog
|
2007-11-05 12:27:26 +01:00
|
|
|
* Sun Nov 04 2007 - dkukawka@suse.de
|
|
|
|
- updated to new version 0.13.12:
|
|
|
|
- removed upstream gone patch:
|
|
|
|
- libsmbios-fix-includes.diff
|
|
|
|
- fixed spec-file:
|
|
|
|
- binaries moved from /usr/bin to /usr/sbin
|
2007-10-16 18:21:08 +02:00
|
|
|
* 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)
|
2007-05-04 00:51:21 +02:00
|
|
|
* Wed May 02 2007 - dkukawka@suse.de
|
|
|
|
- updated to new version 0.13.6:
|
|
|
|
- critical bugfix to dellBiosUpdate utility to fix packet mode
|
|
|
|
- autoconf/automake support for automatically building docs
|
|
|
|
- more readable 'make' lines by splitting out env vars
|
|
|
|
- remove run_cppunit option... always run unit tests.
|
|
|
|
- update autoconf/automake utilities to latest version
|
|
|
|
- fix LDFLAGS to not overwrite user entered LDFLAGS
|
|
|
|
- add automatic doxygen build of docs
|
|
|
|
- fix urls of public repos
|
|
|
|
- remove yum repo page in favor of official page from docs
|
|
|
|
- split dmi table entry point from smbios table entry point
|
|
|
|
- support legacy _DMI_ tables
|
|
|
|
- fix support for EFI-based imacs without proper _SM_ anchor
|
2007-03-27 01:54:56 +02:00
|
|
|
* Mon Mar 26 2007 - dkukawka@suse.de
|
|
|
|
- updated to new version 0.13.4 as requested by DELL maintainer
|
|
|
|
- autotools conversion
|
|
|
|
- new util dellWirelessCtl to control builtin wireless on Dell
|
|
|
|
laptops
|
2007-03-05 00:24:53 +01:00
|
|
|
* Sun Mar 04 2007 - dkukawka@suse.de
|
|
|
|
- fixed spec file: removed 'rm -rf ${RPM_BUILD_ROOT}' from install
|
|
|
|
section
|
|
|
|
- added ExcludeArch for ppc/ppc64 and s390/s390x
|
|
|
|
* Wed Feb 28 2007 - dkukawka@suse.de
|
|
|
|
- updated to new version 0.12.4:
|
|
|
|
* the package no longer provide bios_update_tools subpackage,
|
|
|
|
since they are no longer part of the source
|
2007-01-16 00:23:15 +01:00
|
|
|
* Fri Feb 10 2006 - bwise@suse.de
|
|
|
|
- put description ib bios_update_check
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Thu Jan 19 2006 - ro@suse.de
|
|
|
|
- provide main package name in one subpackage
|
|
|
|
(needed for debuginfo since we do not have a main package here)
|
|
|
|
* Wed Jan 11 2006 - bwhiteley@suse.de
|
|
|
|
- first build
|