OBS User unknown 2007-03-26 23:54:56 +00:00 committed by Git OBS Bridge
parent 60cfd932fc
commit f29218c4d0
4 changed files with 51 additions and 40 deletions

View File

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

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

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Mar 26 14:56:54 CEST 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
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 4 00:37:22 CET 2007 - dkukawka@suse.de Sun Mar 4 00:37:22 CET 2007 - dkukawka@suse.de

View File

@ -1,5 +1,5 @@
# #
# spec file for package libsmbios (Version 0.12.4) # spec file for package libsmbios (Version 0.13.4)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -10,32 +10,29 @@
Name: libsmbios Name: libsmbios
BuildRequires: Xerces-c-devel gcc-c++ glibc-devel libxml libxml2-devel BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml libxml2-devel tree
URL: http://linux.dell.com/libsmbios/main/index.html URL: http://linux.dell.com/libsmbios/main/index.html
%define _unpackaged_files_terminate_build 0 %define _unpackaged_files_terminate_build 0
%define build_static 0
# automatically determine if we should build xml # automatically determine if we should build xml
%define build_xml %( ([ -e /usr/include/xercesc/ ] && echo 1) || echo 0 ) %define build_xml %( ([ -e /usr/include/xercesc/ ] && echo 1) || echo 0 )
# automatically determine if we should build docs # automatically determine if we should build docs
%define build_docs %( ( which doxygen > /dev/null 2>&1 && echo 1) || echo 0 ) %define build_docs %( ( which doxygen > /dev/null 2>&1 && echo 1) || echo 0 )
# build rpm containing everything statically linked %define run_cppunit %( ([ -e /usr/include/cppunit ] && echo 1) || echo 0)
%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}} %{?_without_docs: %{expand: %%define build_docs 0}}
%{?_with_docs: %{expand: %%define build_docs 1}} %{?_with_docs: %{expand: %%define build_docs 1}}
%{?_without_butrpm: %{expand: %%define build_butrpm 0}} %{?_without_cppunit: %{expand: %%define run_cppunit 0}}
%{?_with_butrpm: %{expand: %%define build_butrpm 1}} %{?_with_cppunit: %{expand: %%define run_cppunit 1}}
# if passed a "dist" variable, use it. Otherwise, not. %define major 0
%{!?dist: %{expand: %%define relver 1}} %define minor 13
%{?dist: %{expand: %%define relver 1.%{dist}}} %define sub 4
Version: 0.12.4 %define extralevel %{nil}
%define release_name libsmbios
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
Version: 0.13.4
Release: 1 Release: 1
License: GNU General Public License (GPL) License: BSD License and BSD-like, GNU General Public License (GPL)
Source: libsmbios-0.12.4.tar.bz2 Source: %{name}-%{version}.tar.bz2
Summary: Open BIOS parsing libs Summary: Open BIOS parsing libs
Group: System/Management Group: System/Management
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -161,25 +158,25 @@ Authors:
%prep %prep
%setup %setup
find . -type d -exec chmod -f 755 {} \;
find doc include libraries bins build supported-bins cppunit -type f -exec chmod -f 644 {} \;
%build %build
make default %configure
%if %{build_static} make %{?_smp_mflags} EXTRA_CXXFLAGS="%{optflags}" EXTRA_CFLAGS="%{optflags}" -e RELEASE_MAJOR=%{major} RELEASE_MINOR=%{minor} RELEASE_SUBLEVEL=%{sub} RELEASE_EXTRALEVEL=%{extralevel}
make static
%endif
%if %{build_xml}
make xml
%endif
%if %{build_docs} %if %{build_docs}
make doxygen 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
%endif %endif
%install %install
install -d -m 755 $RPM_BUILD_ROOT/%{_bindir} $RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/usr/include/ [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
install -p -D -m 555 supported-bins/output/* $RPM_BUILD_ROOT/%{_bindir} make install DESTDIR=%{buildroot}
install -p -D -m 555 bins/output/* $RPM_BUILD_ROOT/%{_bindir} mkdir -p %{buildroot}/usr/include
cp -p lib/libsmbios* $RPM_BUILD_ROOT/%{_libdir}/ cp -a include/smbios %{buildroot}/usr/include/
cp -a include/smbios $RPM_BUILD_ROOT/usr/include/ rm -f %{buildroot}/%{_libdir}/lib*.la
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT} [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
@ -202,14 +199,15 @@ ldconfig
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING-GPL COPYING-OSL README bins/getopts_LICENSE.txt
%if %{build_docs} %if %{build_docs}
%doc doc/full/html %doc doc/full/html
%endif %endif
%{_libdir}/libsmbios.so %{_libdir}/libsmbios.so
/usr/include/smbios %{_libdir}/libsmbios.so.1
%if %{build_xml}
%{_libdir}/libsmbiosxml.so %{_libdir}/libsmbiosxml.so
%endif %{_libdir}/libsmbiosxml.so.1
/usr/include/smbios
%files bin %files bin
%defattr(555,root,root) %defattr(555,root,root)
@ -223,10 +221,11 @@ ldconfig
%{_bindir}/verifySmiPassword %{_bindir}/verifySmiPassword
%{_bindir}/wakeupCtl %{_bindir}/wakeupCtl
%{_bindir}/dellLcdBrightness %{_bindir}/dellLcdBrightness
%{_bindir}/dellWirelessCtl
%files unsupported-bin %files unsupported-bin
%defattr(555,root,root) %defattr(555,root,root)
%doc COPYING-GPL COPYING-OSL README %doc COPYING-GPL COPYING-OSL README include/smbios/config/boost_LICENSE_1_0_txt bins/getopts_LICENSE.txt
%{_bindir}/activateCmosToken %{_bindir}/activateCmosToken
%{_bindir}/ascii2enUS_scancode %{_bindir}/ascii2enUS_scancode
%{_bindir}/createUnitTestFiles %{_bindir}/createUnitTestFiles
@ -238,7 +237,6 @@ ldconfig
%{_bindir}/smitest %{_bindir}/smitest
%{_bindir}/stateByteCtl %{_bindir}/stateByteCtl
%{_bindir}/upBootCtl %{_bindir}/upBootCtl
%{_bindir}/sysid
%if %{build_xml} %if %{build_xml}
%files -n libsmbiosxml-bin %files -n libsmbiosxml-bin
@ -253,6 +251,11 @@ ldconfig
%endif %endif
%changelog %changelog
* 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
* Sun Mar 04 2007 - dkukawka@suse.de * Sun Mar 04 2007 - dkukawka@suse.de
- fixed spec file: removed 'rm -rf ${RPM_BUILD_ROOT}' from install - fixed spec file: removed 'rm -rf ${RPM_BUILD_ROOT}' from install
section section