2007-01-16 00:23:15 +01:00
|
|
|
#
|
2009-11-16 14:33:40 +01:00
|
|
|
# spec file for package libsmbios (Version 2.0.2)
|
2007-01-16 00:23:15 +01:00
|
|
|
#
|
2009-03-02 17:51:48 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:15 +01:00
|
|
|
#
|
2008-08-13 18:17:23 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
Name: libsmbios
|
2009-11-16 14:33:40 +01:00
|
|
|
BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ 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 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}}
|
2008-07-27 11:59:05 +02:00
|
|
|
%define major 2
|
|
|
|
%define minor 0
|
|
|
|
%define sub 2
|
2007-03-27 01:54:56 +02:00
|
|
|
%define extralevel %{nil}
|
|
|
|
%define release_name libsmbios
|
|
|
|
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
|
2008-07-27 11:59:05 +02:00
|
|
|
%define LIBNAME libsmbios2
|
2007-11-05 12:27:26 +01:00
|
|
|
Version: %{major}.%{minor}.%{sub}
|
2009-11-16 14:33:40 +01:00
|
|
|
Release: 2
|
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 or later ; Other uncritical OpenSource License
|
2007-03-27 01:54:56 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2008-07-27 11:59:05 +02:00
|
|
|
Patch0: libsmbios-fix-compiler_warning_cgcc.diff
|
2009-03-02 17:51:48 +01:00
|
|
|
Patch1: libsmbios-2.0.2-gcc44.patch
|
2007-01-16 00:23:15 +01:00
|
|
|
Summary: Open BIOS parsing libs
|
|
|
|
Group: System/Management
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-08-13 18:17:23 +02:00
|
|
|
ExclusiveArch: %ix86 ia64 x86_64
|
2008-06-03 16:25:09 +02:00
|
|
|
# Modules: dcdbas.ko
|
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
|
|
|
# Generated with: extract-modaliases dcdbas
|
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
|
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%if 0%{?suse_version} < 1100
|
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package libs
|
2008-06-03 16:25:09 +02:00
|
|
|
License: GPL v2 or later
|
2008-07-27 11:59:05 +02:00
|
|
|
%else
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2009-06-19 01:04:59 +02:00
|
|
|
%package -n libsmbios2
|
2009-11-16 14:33:40 +01:00
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 or later ; Other uncritical OpenSource License
|
2008-07-27 11:59:05 +02:00
|
|
|
%endif
|
2009-06-19 01:04:59 +02:00
|
|
|
Summary: Libsmbios shared libraries
|
2007-01-16 00:23:15 +01:00
|
|
|
Group: System/Management
|
2008-07-27 11:59:05 +02:00
|
|
|
Provides: %name = %version
|
2008-07-29 23:34:29 +02:00
|
|
|
Obsoletes: libsmbios-libs <= 0.13.12
|
2008-11-07 15:20:11 +01:00
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package bin
|
2008-06-03 16:25:09 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:23:15 +01:00
|
|
|
Summary: The "supported" sample binaries that use libsmbios
|
|
|
|
Group: System/Management
|
2008-11-07 15:20:11 +01:00
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package unsupported-bin
|
2008-06-03 16:25:09 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:23:15 +01:00
|
|
|
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 devel
|
2008-06-03 16:25:09 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:23:15 +01:00
|
|
|
Summary: development headers and archives
|
|
|
|
Group: System/Management
|
2009-11-16 14:33:40 +01:00
|
|
|
Requires: libstdc++-devel
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
%package static
|
2009-11-16 14:33:40 +01:00
|
|
|
License: GPL v2 or later ; Other uncritical OpenSource License
|
2007-01-16 00:23:15 +01:00
|
|
|
Summary: Open BIOS parsing libs
|
|
|
|
Group: System/Management
|
2008-07-27 11:59:05 +02:00
|
|
|
%if 0%{?suse_version} < 1100
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%else
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%description -n %LIBNAME
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%endif
|
|
|
|
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.
|
2007-01-16 00:23:15 +01:00
|
|
|
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 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
|
2009-03-02 17:51:48 +01:00
|
|
|
%setup -q
|
2008-07-27 11:59:05 +02:00
|
|
|
%patch0
|
2009-03-02 17:51:48 +01:00
|
|
|
%patch1
|
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
|
2009-03-02 17:51:48 +01:00
|
|
|
%configure --disable-static --with-pic
|
2007-03-27 01:54:56 +02:00
|
|
|
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
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
mkdir -p %{buildroot}/usr/include
|
|
|
|
cp -a include/smbios %{buildroot}/usr/include/
|
2009-03-02 17:51:48 +01:00
|
|
|
rm -vf %{buildroot}/%{_libdir}/lib*.la
|
|
|
|
rm -fv %{buildroot}/%{_libdir}/lib*.a
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%clean
|
2009-03-02 17:51:48 +01:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2008-07-27 11:59:05 +02:00
|
|
|
%if 0%{?suse_version} < 1100
|
2008-03-05 22:38:04 +01:00
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
2008-07-27 11:59:05 +02:00
|
|
|
%else
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%post -n %LIBNAME -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1100
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%else
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%postun -n %LIBNAME -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1100
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%files libs
|
2008-07-27 11:59:05 +02:00
|
|
|
%else
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2008-07-27 11:59:05 +02:00
|
|
|
%files -n %LIBNAME
|
2007-01-16 00:23:15 +01:00
|
|
|
%endif
|
2008-07-27 11:59:05 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsmbios.so.*
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%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
|
2007-03-27 01:54:56 +02:00
|
|
|
/usr/include/smbios
|
2008-07-27 11:59:05 +02:00
|
|
|
%{_libdir}/libsmbios.so
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%files bin
|
2008-03-07 22:46:10 +01:00
|
|
|
%defattr(644,root,root,755)
|
2007-03-05 00:24:53 +01:00
|
|
|
%doc COPYING-GPL COPYING-OSL README
|
2008-03-07 22:46:10 +01:00
|
|
|
%defattr(555,root,root)
|
2007-11-05 12:27:26 +01:00
|
|
|
%{_sbindir}/assetTag
|
|
|
|
%{_sbindir}/dellBiosUpdate
|
|
|
|
%{_sbindir}/getSystemId
|
|
|
|
%{_sbindir}/propertyTag
|
|
|
|
%{_sbindir}/serviceTag
|
|
|
|
%{_sbindir}/verifySmiPassword
|
|
|
|
%{_sbindir}/wakeupCtl
|
|
|
|
%{_sbindir}/dellLcdBrightness
|
|
|
|
%{_sbindir}/dellWirelessCtl
|
2008-07-27 11:59:05 +02:00
|
|
|
%{_sbindir}/mkbiospkg.sh
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%files unsupported-bin
|
2008-03-07 22:46:10 +01:00
|
|
|
%defattr(644,root,root,755)
|
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
|
2008-07-27 11:59:05 +02:00
|
|
|
%defattr(555,root,root)
|
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
|
|
|
|
%{_sbindir}/dumpSmbios
|
2007-01-16 00:23:15 +01:00
|
|
|
%if %{build_static}
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%defattr(555,root,root)
|
|
|
|
%{_bindir}/*S
|
|
|
|
%endif
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2007-03-05 00:24:53 +01:00
|
|
|
%changelog
|