273 lines
6.9 KiB
RPMSpec
273 lines
6.9 KiB
RPMSpec
#
|
|
# spec file for package libsmbios (Version 0.12.4)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# 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
|
|
BuildRequires: Xerces-c-devel gcc-c++ glibc-devel libxml libxml2-devel
|
|
URL: http://linux.dell.com/libsmbios/main/index.html
|
|
%define _unpackaged_files_terminate_build 0
|
|
# 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 )
|
|
# build rpm containing everything statically linked
|
|
%define build_static 0
|
|
# allow --with[out] <feature> at rpm command line build, to override the above
|
|
# e.g. --with xml ...or... --without xml
|
|
%{?_without_xml: %{expand: %%define build_xml 0}}
|
|
%{?_with_xml: %{expand: %%define build_xml 1}}
|
|
%{?_without_static: %{expand: %%define build_static 0}}
|
|
%{?_with_static: %{expand: %%define build_static 1}}
|
|
%{?_without_docs: %{expand: %%define build_docs 0}}
|
|
%{?_with_docs: %{expand: %%define build_docs 1}}
|
|
%{?_without_butrpm: %{expand: %%define build_butrpm 0}}
|
|
%{?_with_butrpm: %{expand: %%define build_butrpm 1}}
|
|
# if passed a "dist" variable, use it. Otherwise, not.
|
|
%{!?dist: %{expand: %%define relver 1}}
|
|
%{?dist: %{expand: %%define relver 1.%{dist}}}
|
|
Version: 0.12.4
|
|
Release: 1
|
|
License: GNU General Public License (GPL)
|
|
Source: libsmbios-0.12.4.tar.bz2
|
|
Summary: Open BIOS parsing libs
|
|
Group: System/Management
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExcludeArch: ppc ppc64 s390 s390x
|
|
|
|
%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
|
|
%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
|
|
|
|
%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
|
|
|
|
%build
|
|
make default
|
|
%if %{build_static}
|
|
make static
|
|
%endif
|
|
%if %{build_xml}
|
|
make xml
|
|
%endif
|
|
%if %{build_docs}
|
|
make doxygen
|
|
%endif
|
|
|
|
%install
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_bindir} $RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/usr/include/
|
|
install -p -D -m 555 supported-bins/output/* $RPM_BUILD_ROOT/%{_bindir}
|
|
install -p -D -m 555 bins/output/* $RPM_BUILD_ROOT/%{_bindir}
|
|
cp -p lib/libsmbios* $RPM_BUILD_ROOT/%{_libdir}/
|
|
cp -a include/smbios $RPM_BUILD_ROOT/usr/include/
|
|
|
|
%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)
|
|
%if %{build_docs}
|
|
%doc doc/full/html
|
|
%endif
|
|
%{_libdir}/libsmbios.so
|
|
/usr/include/smbios
|
|
%if %{build_xml}
|
|
%{_libdir}/libsmbiosxml.so
|
|
%endif
|
|
|
|
%files bin
|
|
%defattr(555,root,root)
|
|
%doc COPYING-GPL COPYING-OSL README
|
|
%{_bindir}/assetTag
|
|
%{_bindir}/dellBiosUpdate
|
|
%{_bindir}/getSystemId
|
|
%{_bindir}/propertyTag
|
|
%{_bindir}/serviceTag
|
|
%{_bindir}/tokenCtl
|
|
%{_bindir}/verifySmiPassword
|
|
%{_bindir}/wakeupCtl
|
|
%{_bindir}/dellLcdBrightness
|
|
|
|
%files unsupported-bin
|
|
%defattr(555,root,root)
|
|
%doc COPYING-GPL COPYING-OSL README
|
|
%{_bindir}/activateCmosToken
|
|
%{_bindir}/ascii2enUS_scancode
|
|
%{_bindir}/createUnitTestFiles
|
|
%{_bindir}/disable_console_redir
|
|
%{_bindir}/dumpCmos
|
|
%{_bindir}/getPasswordFormat
|
|
%{_bindir}/isCmosTokenActive
|
|
%{_bindir}/probes
|
|
%{_bindir}/smitest
|
|
%{_bindir}/stateByteCtl
|
|
%{_bindir}/upBootCtl
|
|
%{_bindir}/sysid
|
|
%if %{build_xml}
|
|
|
|
%files -n libsmbiosxml-bin
|
|
%defattr(555,root,root)
|
|
%{_bindir}/dumpSmbios
|
|
%endif
|
|
%if %{build_static}
|
|
|
|
%files static
|
|
%defattr(555,root,root)
|
|
%{_bindir}/*S
|
|
%endif
|
|
|
|
%changelog
|
|
* 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
|
|
* 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
|