2007-01-16 00:23:15 +01:00
|
|
|
#
|
2011-03-21 10:18:21 +01:00
|
|
|
# spec file for package libsmbios
|
2007-01-16 00:23:15 +01:00
|
|
|
#
|
2015-02-22 13:13:48 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2011-03-21 10:18:33 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2007-01-16 00:23:15 +01:00
|
|
|
Name: libsmbios
|
2011-07-04 13:22:04 +02:00
|
|
|
Version: 2.2.28
|
2014-12-29 10:22:07 +01:00
|
|
|
Release: 0
|
2011-03-21 10:18:21 +01:00
|
|
|
Summary: Libraries to get information from standard BIOS tables
|
2012-05-08 17:19:09 +02:00
|
|
|
License: GPL-2.0+ or OSL-2.1
|
2007-01-16 00:23:15 +01:00
|
|
|
Group: System/Management
|
2014-12-29 10:22:07 +01:00
|
|
|
|
|
|
|
Url: http://linux.dell.com/libsmbios/main/
|
2011-03-21 10:18:21 +01:00
|
|
|
Source0: http://linux.dell.com/libsmbios/download/libsmbios/libsmbios-%{version}/%{name}-%{version}.tar.bz2
|
2014-12-29 10:22:07 +01:00
|
|
|
Patch1: %{name}-2.2.28-fix-bashisms.patch
|
2015-02-22 13:13:48 +01:00
|
|
|
Patch2: %{name}-pic-assembler.patch
|
2007-01-16 00:23:15 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-21 10:18:21 +01:00
|
|
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libcppunit-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-base
|
2014-12-29 10:22:07 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2008-06-03 16:25:09 +02:00
|
|
|
# Modules: dcdbas.ko
|
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
|
|
|
# Generated with: extract-modaliases dcdbas
|
2011-03-21 10:18:21 +01:00
|
|
|
# libsmbios only ever makes sense on intel compatible arches, no DMI tables on ppc, s390, etc.
|
|
|
|
ExclusiveArch: ia64 %{ix86} x86_64
|
2007-01-16 00:23:15 +01:00
|
|
|
|
|
|
|
%description
|
2011-03-21 10:18:21 +01:00
|
|
|
Libsmbios is a library and utilities that can be used by client programs
|
2007-01-16 00:23:15 +01:00
|
|
|
to get information from standard BIOS tables, such as the SMBIOS table.
|
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%package devel
|
2011-05-14 02:49:02 +02:00
|
|
|
Summary: Development files for libsmios
|
2011-03-21 10:18:21 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsmbios2 = %{version}
|
|
|
|
Requires: libstdc++-devel
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description devel
|
|
|
|
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.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-05-14 02:49:02 +02:00
|
|
|
This package contains the necessary files to compile new client programs
|
|
|
|
against libsmbios.
|
2007-10-16 18:21:08 +02:00
|
|
|
|
2009-06-19 01:04:59 +02:00
|
|
|
%package -n libsmbios2
|
2011-03-21 10:18:21 +01:00
|
|
|
Summary: Libraries to get information from standard BIOS tables
|
2007-01-16 00:23:15 +01:00
|
|
|
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
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description -n libsmbios2
|
|
|
|
Libsmbios is a library and utilities that can be used by client programs
|
2007-01-16 00:23:15 +01:00
|
|
|
to get information from standard BIOS tables, such as the SMBIOS table.
|
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%package -n python-smbios
|
|
|
|
Summary: Python interface to Libsmbios C library
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: libsmbios2 = %{version}
|
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
|
|
|
%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1}
|
|
|
|
BuildArch: noarch
|
2008-07-27 11:59:05 +02:00
|
|
|
%endif
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description -n python-smbios
|
|
|
|
This package provides a Python interface to libsmbios.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%package -n smbios-utils-bin
|
|
|
|
Summary: Binary utilities that use libsmbios
|
|
|
|
Group: System/Management
|
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
2011-05-14 02:49:02 +02:00
|
|
|
# libsmbios-unsupported-bin was last used in openSUSE 11.4 (libsmbios-unsupported-bin-2.0.2)
|
|
|
|
Obsoletes: libsmbios-unsupported-bin <= 2.0.2
|
|
|
|
Provides: libsmbios-unsupported-bin = %{version}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description -n smbios-utils-bin
|
|
|
|
Get BIOS information, such as System product name, product id, service tag and
|
|
|
|
asset tag.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%package -n smbios-utils-python
|
|
|
|
Summary: Python executables that use libsmbios
|
|
|
|
Group: System/Management
|
|
|
|
Requires: python-smbios = %{version}
|
|
|
|
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
|
2011-05-14 02:49:02 +02:00
|
|
|
# libsmbios-bin was last used in openSUSE 11.4 (libsmbios-bin-2.0.2)
|
|
|
|
Obsoletes: libsmbios-bin <= 2.0.2
|
|
|
|
Provides: libsmbios-bin = %{version}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description -n smbios-utils-python
|
|
|
|
Get BIOS information, such as System product name, product id, service tag and
|
|
|
|
asset tag. Set service and asset tags on Dell machines. Manipulate wireless
|
|
|
|
cards/bluetooth on Dell laptops. Set BIOS password on select Dell systems.
|
|
|
|
Update BIOS on select Dell systems. Set LCD brightness on select Dell laptops.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%package -n yum-dellsysid
|
|
|
|
Summary: YUM plugin to retrieve the Dell System ID
|
|
|
|
Group: System/Packages
|
2011-05-14 02:49:02 +02:00
|
|
|
Requires: smbios-utils-python = %{version}
|
2011-03-21 10:18:21 +01:00
|
|
|
Requires: yum
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%description -n yum-dellsysid
|
|
|
|
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.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
This package contains a YUM plugin which allows the use of certain
|
|
|
|
substitutions in yum repository configuration files on Dell systems.
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-12-29 10:22:07 +01:00
|
|
|
%patch1 -p1
|
2015-02-22 13:13:48 +01:00
|
|
|
%patch2 -p1
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%build
|
|
|
|
%configure --disable-rpath
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%install
|
2011-05-14 02:49:02 +02:00
|
|
|
%make_install
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Install headers
|
|
|
|
install -dp -m 0755 %{buildroot}%{_includedir}
|
|
|
|
cp -a src/include/* %{buildroot}/%{_includedir}/
|
|
|
|
cp -a out/public-include/* %{buildroot}/%{_includedir}/
|
|
|
|
find %{buildroot}/%{_includedir} out/libsmbios_c++ out/libsmbios_c -exec touch -r configure.ac {} \;
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Remove *.la files (package provides pkg-config files), remove static libraries
|
|
|
|
rm -f %{buildroot}/%{_libdir}/lib*.{la,a}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Prepare doc files for devel package
|
|
|
|
mv out/libsmbios_c out/libsmbios_c-%{_arch}
|
|
|
|
mv out/libsmbios_c++ out/libsmbios_c++-%{_arch}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Manually install the doc files for the devel package in order to fix duplicates with "fdupes -s"
|
|
|
|
install -dp -m 0755 %{buildroot}%{_defaultdocdir}/%{name}-devel
|
2011-07-04 13:22:04 +02:00
|
|
|
cp -a AUTHORS COPYING-GPL COPYING-OSL ChangeLog NEWS README TODO doc/old_news.txt %{buildroot}%{_defaultdocdir}/%{name}-devel/
|
|
|
|
cp -a src/bin/getopts_LICENSE.txt src/include/smbios/config/boost_LICENSE_1_0_txt %{buildroot}%{_defaultdocdir}/%{name}-devel/
|
2011-03-21 10:18:21 +01:00
|
|
|
cp -a out/libsmbios_c-%{_arch} %{buildroot}%{_defaultdocdir}/%{name}-devel/
|
|
|
|
cp -a out/libsmbios_c++-%{_arch} %{buildroot}%{_defaultdocdir}/%{name}-devel/
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
#
|
|
|
|
rename libsmbios.mo libsmbios-2.2-x86_64.mo $(find %{buildroot}/%{_datadir} -name libsmbios.mo)
|
2011-05-14 02:49:02 +02:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Remove unneeded locales
|
2011-05-14 02:49:02 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
2011-03-21 10:18:21 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/en/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/en@boldquot/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/en@quot/
|
2007-01-16 00:23:15 +01:00
|
|
|
%endif
|
2011-05-14 02:49:02 +02:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%find_lang %{name}-2.2-x86_64
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
# Backwards compatible symlinks
|
|
|
|
ln -s %{_sbindir}/dellWirelessCtl %{buildroot}%{_bindir}/dellWirelessCtl
|
|
|
|
ln -s smbios-lcd-brightness %{buildroot}%{_sbindir}/dellLcdBrightness
|
|
|
|
ln -s smbios-rbu-bios-update %{buildroot}%{_sbindir}/dellBiosUpdate
|
|
|
|
ln -s smbios-sys-info %{buildroot}%{_sbindir}/getSystemId
|
|
|
|
ln -s smbios-wireless-ctl %{buildroot}%{_sbindir}/dellWirelessCtl
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%post -n libsmbios2 -p /sbin/ldconfig
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%postun -n libsmbios2 -p /sbin/ldconfig
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_defaultdocdir}/%{name}-devel/
|
|
|
|
%{_includedir}/smbios/
|
|
|
|
%{_includedir}/smbios_c/
|
|
|
|
%{_libdir}/libsmbios.so
|
|
|
|
%{_libdir}/libsmbios_c.so
|
|
|
|
%{_libdir}/pkgconfig/libsmbios_c*.pc
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%files -n libsmbios2 -f %{name}-2.2-x86_64.lang
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-04 13:22:04 +02:00
|
|
|
%{_libdir}/libsmbios.so.2*
|
|
|
|
%{_libdir}/libsmbios_c.so.2*
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%files -n python-smbios
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-04 13:22:04 +02:00
|
|
|
%doc AUTHORS COPYING-GPL COPYING-OSL ChangeLog NEWS README TODO doc/old_news.txt
|
2011-03-21 10:18:21 +01:00
|
|
|
%{python_sitelib}/libsmbios_c/
|
2007-01-16 00:23:15 +01:00
|
|
|
|
2011-03-21 10:18:21 +01:00
|
|
|
%files -n smbios-utils-bin
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-04 13:22:04 +02:00
|
|
|
%doc AUTHORS COPYING-GPL COPYING-OSL ChangeLog NEWS README TODO doc/old_news.txt
|
2011-03-21 10:18:21 +01:00
|
|
|
%doc doc/pkgheader.sh
|
|
|
|
%defattr(555,root,root,-)
|
|
|
|
# legacy C++
|
|
|
|
%{_sbindir}/dellBiosUpdate-compat
|
|
|
|
%{_sbindir}/dellLEDCtl
|
|
|
|
%ifnarch ia64
|
|
|
|
%{_sbindir}/dellMediaDirectCtl
|
|
|
|
%endif
|
|
|
|
# new C utilities
|
|
|
|
%{_sbindir}/smbios-get-ut-data
|
|
|
|
%{_sbindir}/smbios-state-byte-ctl
|
|
|
|
%{_sbindir}/smbios-sys-info-lite
|
|
|
|
%{_sbindir}/smbios-upflag-ctl
|
|
|
|
|
|
|
|
%files -n smbios-utils-python
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-04 13:22:04 +02:00
|
|
|
%doc AUTHORS COPYING-GPL COPYING-OSL ChangeLog NEWS README TODO doc/old_news.txt
|
2011-03-21 10:18:21 +01:00
|
|
|
%dir %{_sysconfdir}/libsmbios
|
|
|
|
%config(noreplace) %{_sysconfdir}/libsmbios/*
|
|
|
|
%defattr(555,root,root,-)
|
|
|
|
# used by HAL in old location, so keep it around until HAL is updated
|
|
|
|
%{_bindir}/dellWirelessCtl
|
|
|
|
# python utilities
|
|
|
|
%{_sbindir}/smbios-lcd-brightness
|
|
|
|
%{_sbindir}/smbios-passwd
|
|
|
|
%{_sbindir}/smbios-rbu-bios-update
|
|
|
|
%{_sbindir}/smbios-sys-info
|
|
|
|
%{_sbindir}/smbios-token-ctl
|
|
|
|
%{_sbindir}/smbios-wakeup-ctl
|
|
|
|
%{_sbindir}/smbios-wireless-ctl
|
|
|
|
# backwards compatible symlinks
|
2007-11-05 12:27:26 +01:00
|
|
|
%{_sbindir}/dellBiosUpdate
|
|
|
|
%{_sbindir}/dellLcdBrightness
|
|
|
|
%{_sbindir}/dellWirelessCtl
|
2011-03-21 10:18:21 +01:00
|
|
|
%{_sbindir}/getSystemId
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/smbios-utils/
|
|
|
|
|
|
|
|
%files -n yum-dellsysid
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-04 13:22:04 +02:00
|
|
|
%doc AUTHORS COPYING-GPL COPYING-OSL ChangeLog NEWS README TODO doc/old_news.txt
|
2011-03-21 10:18:21 +01:00
|
|
|
%dir %{_sysconfdir}/yum
|
|
|
|
%dir %{_sysconfdir}/yum/pluginconf.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/dellsysid.conf
|
|
|
|
%dir %{_exec_prefix}/lib/yum-plugins
|
|
|
|
%{_exec_prefix}/lib/yum-plugins/dellsysid.*
|
2008-03-05 22:38:04 +01:00
|
|
|
|
2007-03-05 00:24:53 +01:00
|
|
|
%changelog
|