OBS User unknown 2008-07-27 09:59:05 +00:00 committed by Git OBS Bridge
parent 92c1d09441
commit 3720759623
5 changed files with 81 additions and 57 deletions

View File

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

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

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

View File

@ -0,0 +1,11 @@
--- bin-supported/getopts.c 2008-01-08 18:57:17.000000000 +0100
+++ bin-supported/getopts.c 2008-01-08 18:57:46.000000000 +0100
@@ -55,7 +55,7 @@
printf(" --help,\t-h\t\t\tDisplays this information\n");
for (count = 0; opts[count].description; count++)
{
- char *cmd = 0;
+ char *cmd = NULL;
if (opts[count].name && opts[count].shortName)
{
cmd = calloc(1, strlen(opts[count].name) + strlen(opts[count].shortName) + 15);

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 7 20:19:32 CEST 2008 - dkukawka@suse.de
- change naming of the lib package because of 'Shared Library
Packaging Policy' and rpmlint
- updated to latest version v2.0.2
-------------------------------------------------------------------
Mon Jun 2 17:53:10 CEST 2008 - dkukawka@suse.de
@ -15,11 +22,22 @@ Fri Mar 7 14:53:54 CET 2008 - dmueller@suse.de
- fix documentation permissions
-------------------------------------------------------------------
Tue Jan 8 19:00:09 CET 2008 - dkukawka@suse.de
- added new patch:
- libsmbios-fix-compiler_warning_cgcc.diff
-------------------------------------------------------------------
Sat Dec 29 10:04:52 CET 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-postun errors
-------------------------------------------------------------------
Wed Dec 19 18:47:41 CET 2007 - dkukawka@suse.de
- updated to new version 0.13.13
-------------------------------------------------------------------
Sun Nov 4 15:34:03 CET 2007 - dkukawka@suse.de

View File

@ -15,8 +15,6 @@ BuildRequires: Xerces-c-devel cppunit-devel gcc-c++ glibc-devel libxml2-devel t
Url: http://linux.dell.com/libsmbios/main/index.html
%define _unpackaged_files_terminate_build 0
%define build_static 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 )
%define run_cppunit %( ([ -e /usr/include/cppunit ] && echo 1) || echo 0)
@ -24,16 +22,18 @@ Url: http://linux.dell.com/libsmbios/main/index.html
%{?_with_docs: %{expand: %%define build_docs 1}}
%{?_without_cppunit: %{expand: %%define run_cppunit 0}}
%{?_with_cppunit: %{expand: %%define run_cppunit 1}}
%define major 0
%define minor 13
%define sub 12
%define major 2
%define minor 0
%define sub 2
%define extralevel %{nil}
%define release_name libsmbios
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
%define LIBNAME libsmbios2
Version: %{major}.%{minor}.%{sub}
Release: 5
Release: 7
License: BSD 3-Clause; GPL v2 or later; Other uncritical OpenSource License
Source: %{name}-%{version}.tar.bz2
Patch0: libsmbios-fix-compiler_warning_cgcc.diff
Summary: Open BIOS parsing libs
Group: System/Management
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -52,17 +52,19 @@ Authors:
--------
Michael Brown
%if 0%{?suse_version} < 1100
%package libs
License: GPL v2 or later
Summary: Libsmbios shared libraries
%else
%package -n %LIBNAME
%endif
Summary: Libsmbios shared libraries.
Group: System/Management
Provides: %name = %version
%package -n libsmbiosxml-libs
License: GPL v2 or later
Summary: Libsmbiosxml Shared Libraries
Group: System/Management
%package bin
License: GPL v2 or later
Summary: The "supported" sample binaries that use libsmbios
@ -73,11 +75,6 @@ License: GPL v2 or later
Summary: Unsupported sample binaries using libsmbios
Group: System/Management
%package -n libsmbiosxml-bin
License: GPL v2 or later
Summary: sample binaries that use libsmbiosxml
Group: System/Management
%package devel
License: GPL v2 or later
Summary: development headers and archives
@ -87,6 +84,7 @@ Group: System/Management
License: GPL v2 or later; Other uncritical OpenSource License
Summary: Open BIOS parsing libs
Group: System/Management
%if 0%{?suse_version} < 1100
%description libs
Libsmbios is a library and utilites that can be used by client programs
@ -98,12 +96,13 @@ Authors:
--------
Michael Brown
%description -n libsmbiosxml-libs
%else
%description -n %LIBNAME
%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.
Authors:
--------
Michael Brown
@ -141,18 +140,6 @@ 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
@ -169,6 +156,7 @@ Authors:
%prep
%setup
%patch0
find . -type d -exec chmod -f 755 {} \;
find doc include libraries bin-supported bin-unsupported build cppunit -type f -exec chmod -f 644 {} \;
@ -183,6 +171,7 @@ make %{?_smp_mflags} EXTRA_CXXFLAGS="%{optflags}" EXTRA_CFLAGS="%{optflags}" -e
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/usr/include
cp -a include/smbios %{buildroot}/usr/include/
@ -190,25 +179,30 @@ rm -f %{buildroot}/%{_libdir}/lib*.la
rm -f %{buildroot}/%{_libdir}/lib*.a
%clean
rm -rf ${RPM_BUILD_ROOT}
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%if 0%{?suse_version} < 1100
%post libs -p /sbin/ldconfig
%else
%post -n %LIBNAME -p /sbin/ldconfig
%endif
%if 0%{?suse_version} < 1100
%postun libs -p /sbin/ldconfig
%else
%post -n libsmbiosxml-libs -p /sbin/ldconfig
%postun -n libsmbiosxml-libs -p /sbin/ldconfig
%postun -n %LIBNAME -p /sbin/ldconfig
%endif
%if 0%{?suse_version} < 1100
%files libs
%defattr(-,root,root)
%{_libdir}/libsmbios.so.*.*
%if %{build_xml}
%else
%files -n libsmbiosxml-libs
%defattr(-,root,root)
%{_libdir}/libsmbiosxml.so.*.*
%files -n %LIBNAME
%endif
%defattr(-,root,root)
%{_libdir}/libsmbios.so.*
%files devel
%defattr(-,root,root)
@ -216,11 +210,8 @@ rm -rf ${RPM_BUILD_ROOT}
%if %{build_docs}
%doc doc/full/html
%endif
%{_libdir}/libsmbios.so
%{_libdir}/libsmbios.so.1
%{_libdir}/libsmbiosxml.so
%{_libdir}/libsmbiosxml.so.1
/usr/include/smbios
%{_libdir}/libsmbios.so
%files bin
%defattr(644,root,root,755)
@ -231,16 +222,16 @@ rm -rf ${RPM_BUILD_ROOT}
%{_sbindir}/getSystemId
%{_sbindir}/propertyTag
%{_sbindir}/serviceTag
%{_sbindir}/tokenCtl
%{_sbindir}/verifySmiPassword
%{_sbindir}/wakeupCtl
%{_sbindir}/dellLcdBrightness
%{_sbindir}/dellWirelessCtl
%{_sbindir}/mkbiospkg.sh
%files unsupported-bin
%defattr(644,root,root,755)
%doc COPYING-GPL COPYING-OSL README include/smbios/config/boost_LICENSE_1_0_txt bin-unsupported/getopts_LICENSE.txt
%defattr(555,root,root,-)
%defattr(555,root,root)
%{_sbindir}/activateCmosToken
%{_sbindir}/ascii2enUS_scancode
%{_sbindir}/createUnitTestFiles
@ -253,12 +244,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_sbindir}/smitest
%{_sbindir}/stateByteCtl
%{_sbindir}/upBootCtl
%if %{build_xml}
%files -n libsmbiosxml-bin
%defattr(555,root,root)
%{_sbindir}/dumpSmbios
%endif
%if %{build_static}
%files static
@ -267,6 +253,10 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
* Mon Jul 07 2008 dkukawka@suse.de
- change naming of the lib package because of 'Shared Library
Packaging Policy' and rpmlint
- updated to latest version v2.0.2
* Mon Jun 02 2008 dkukawka@suse.de
- added: 'Supplements: modalias(dmi:*:[bs]vnD[Ee][Ll][Ll]*:*)'
to specfile to get the package installed on Dell machines
@ -275,8 +265,13 @@ rm -rf ${RPM_BUILD_ROOT}
- dont buildrequire libxml, only libxml2 is used
* Fri Mar 07 2008 dmueller@suse.de
- fix documentation permissions
* Tue Jan 08 2008 dkukawka@suse.de
- added new patch:
- libsmbios-fix-compiler_warning_cgcc.diff
* Sat Dec 29 2007 crrodriguez@suse.de
- fix library-without-ldconfig-postun errors
* Wed Dec 19 2007 dkukawka@suse.de
- updated to new version 0.13.13
* Sun Nov 04 2007 dkukawka@suse.de
- updated to new version 0.13.12:
- removed upstream gone patch: