Accepting request 70232 from Base:System

Update to version 2.2.27, Spec file updates (forwarded request 70228 from adra)

OBS-URL: https://build.opensuse.org/request/show/70232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsmbios?expand=0&rev=27
This commit is contained in:
Sascha Peilicke 2011-05-16 09:25:00 +00:00 committed by Git OBS Bridge
commit aa59942fb4
4 changed files with 46 additions and 39 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dc5512f64783c4160822e77070a80dd783010e0bd844c240495b7662b774a46d
size 905847

3
libsmbios-2.2.27.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a68bad70e8a187def3540e7cb577311ecdf9fb68eaefe3f383d6b7ce3075814
size 926742

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Fri May 13 20:23:47 UTC 2011 - asterios.dramis@gmail.com
- Update to version 2.2.27:
* print out all the OEM strings in smbios-sys-info-lite output.
* fixup logic error in bayonette id detection which could potentially cause
segfault.
* Adding support to compile on solaris.
* update string extracts for spanish.
* Fix output of translated unicode strings.
* By default, python was trying to output all translated strings as ascii,
which breaks for unicode. Wrap sys.stdout with a streamwriter that outputs
unicode.
* add spanish translations.
* localize messages from import/export token dumps.
* add another exception case for missing header line.
- Spec file updates:
* Removed Provides/Obsoletes for libsmbios-libs-0.13.12 in libsmbios2
(0.13.12 was released at 2007-11-02).
* Removed smbios-utils meta-package (not needed). Provides/Obsoletes for
libsmbios-bin and libsmbios-unsupported-bin moved to smbios-utils-python
and smbios-utils-bin respectively.
* Fix locales removal if suse_version is not set.
* Minor other updates.
-------------------------------------------------------------------
Tue May 10 02:55:25 UTC 2011 - crrodriguez@opensuse.org

View File

@ -20,8 +20,8 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: libsmbios
Version: 2.2.26
Release: 2
Version: 2.2.27
Release: 1
Summary: Libraries to get information from standard BIOS tables
License: GPLv2+ or OSL 2.1
@ -48,7 +48,7 @@ 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.
%package devel
Summary: Development headers and archives
Summary: Development files for libsmios
License: GPLv2+ or OSL 2.1
Group: Development/Libraries/C and C++
Requires: libsmbios2 = %{version}
@ -58,16 +58,14 @@ Requires: libstdc++-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.
This package contains the headers and .a files necessary to compile new client
programs against libsmbios.
This package contains the necessary files to compile new client programs
against libsmbios.
%package -n libsmbios2
Summary: Libraries to get information from standard BIOS tables
License: GPLv2+ or OSL 2.1
Group: System/Management
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
Obsoletes: libsmbios-libs <= 0.13.12
Provides: libsmbios-libs = %{version}
%description -n libsmbios2
Libsmbios is a library and utilities that can be used by client programs
@ -86,28 +84,14 @@ BuildArch: noarch
%description -n python-smbios
This package provides a Python interface to libsmbios.
%package -n smbios-utils
Summary: Meta-package that pulls in all smbios binaries and python scripts
License: GPLv2+ or OSL 2.1
Group: System/Management
Requires: smbios-utils-bin
Requires: smbios-utils-python
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
Obsoletes: libsmbios-bin <= 2.0.2
Provides: libsmbios-bin = %{version}
Obsoletes: libsmbios-unsupported-bin <= 2.0.2
Provides: libsmbios-unsupported-bin = %{version}
%description -n smbios-utils
This is a meta-package that pulls in the binary libsmbios executables as well
as the python executables.
%package -n smbios-utils-bin
Summary: Binary utilities that use libsmbios
License: GPLv2+ or OSL 2.1
Group: System/Management
Requires: libsmbios2 = %{version}
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
# 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}
%description -n smbios-utils-bin
Get BIOS information, such as System product name, product id, service tag and
@ -119,6 +103,9 @@ License: GPLv2+ or OSL 2.1
Group: System/Management
Requires: python-smbios = %{version}
Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)
# libsmbios-bin was last used in openSUSE 11.4 (libsmbios-bin-2.0.2)
Obsoletes: libsmbios-bin <= 2.0.2
Provides: libsmbios-bin = %{version}
%description -n smbios-utils-python
Get BIOS information, such as System product name, product id, service tag and
@ -130,8 +117,7 @@ Update BIOS on select Dell systems. Set LCD brightness on select Dell laptops.
Summary: YUM plugin to retrieve the Dell System ID
License: GPLv2+ or OSL 2.1
Group: System/Packages
# yum plugin and supporting functions first appeared in 2.2.0
Requires: smbios-utils-python >= 2.2.0
Requires: smbios-utils-python = %{version}
Requires: yum
%description -n yum-dellsysid
@ -145,21 +131,21 @@ substitutions in yum repository configuration files on Dell systems.
%setup -q
%build
# Fix build with GCC 4.6
sed -i -e "s@-Werror@@g" Makefile.am
autoreconf -fiv
%configure --disable-rpath
make %{?_smp_mflags}
%install
%makeinstall
%make_install
# 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 {} \;
# Remove *.la files (package provides pkg-config files), remove static libraries
@ -176,12 +162,14 @@ cp -a out/libsmbios_c++-%{_arch} %{buildroot}%{_defaultdocdir}/%{name}-devel/
#
rename libsmbios.mo libsmbios-2.2-x86_64.mo $(find %{buildroot}/%{_datadir} -name libsmbios.mo)
# Remove unneeded locales
%if 0%{?suse_version} < 1140
%if 0%{?suse_version} && 0%{?suse_version} < 1140
rm -rf %{buildroot}%{_datadir}/locale/en/
rm -rf %{buildroot}%{_datadir}/locale/en@boldquot/
rm -rf %{buildroot}%{_datadir}/locale/en@quot/
%endif
%find_lang %{name}-2.2-x86_64
# Backwards compatible symlinks
@ -220,10 +208,6 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%{python_sitelib}/libsmbios_c/
%files -n smbios-utils
%defattr(-,root,root,-)
%doc COPYING-GPL COPYING-OSL README
%files -n smbios-utils-bin
%defattr(-,root,root,-)
%doc doc/pkgheader.sh
@ -261,12 +245,10 @@ rm -rf %{buildroot}
%{_sbindir}/dellWirelessCtl
%{_sbindir}/getSystemId
%defattr(-,root,root,-)
# data files
%{_datadir}/smbios-utils/
%files -n yum-dellsysid
%defattr(-,root,root,-)
# YUM Plugin
%dir %{_sysconfdir}/yum
%dir %{_sysconfdir}/yum/pluginconf.d
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/dellsysid.conf