Updated to release 2.4.2, fixed file lists

This commit is contained in:
Giovanni Mariani 2019-10-31 18:28:28 +01:00
parent 04f77fd4c6
commit a6d168aa87
2 changed files with 39 additions and 41 deletions

View file

@ -1,2 +1,2 @@
sources:
"libsmbios-2.2.28.tar.bz2": 54c267411d2225cd54a3c8a696ca5c2a74e9d66e
libsmbios-2.4.2.tar.gz: 84bc52f51bc1ecdcc392f402c5ceef2221bd56b9

View file

@ -1,26 +1,30 @@
%define major 2
%define libname %mklibname smbios %{major}
%define devname %mklibname smbios -d
%define major 2
%define libname %mklibname smbios %{major}
%define devname %mklibname smbios -d
Summary: Open BIOS parsing libs
Name: libsmbios
Version: 2.2.28
Release: 8
License: GPLv2+ or OSL
Version: 2.4.2
Release: 1
License: GPLv2+
Group: System/Libraries
Url: http://linux.dell.com/libsmbios/main
Source0: http://linux.dell.com/libsmbios/download/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
# libsmbios only ever makes sense on intel compatible arches
# no DMI tables on ppc, s390, etc.
Url: https://github.com/dell
Source0: https://github.com/dell/libsmbios/archive/%{name}-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: help2man
BuildRequires: gettext-devel
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(python3)
# libsmbios only ever makes sense on intel compatible arches:
# no DMI tables on ppc, s390, etc.
ExclusiveArch: %{ix86} x86_64
%description
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.
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.
#----------------------------------------------------------------------------
@ -33,7 +37,8 @@ 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.
%files -n %{libname}
%{_libdir}/libsmbios.so.%{major}*
%doc COPYING
#{_libdir}/libsmbios.so.%%{major}*
%{_libdir}/libsmbios_c.so.%{major}*
#----------------------------------------------------------------------------
@ -47,15 +52,14 @@ Provides: %{name}-devel = %{EVRD}
%description -n %{devname}
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
This package contains the headers and the files necessary to compile new
client programs against libsmbios.
%files -n %{devname}
%{_includedir}/smbios*
%{_libdir}/*.a
%doc COPYING
%{_includedir}/smbios_c
%{_libdir}/*.so
%{_libdir}/pkgconfig/libsmbios*.pc
%{_libdir}/pkgconfig/libsmbios_c.pc
#----------------------------------------------------------------------------
@ -67,16 +71,15 @@ Provides: %{name}-bin = %{EVRD}
%description utils
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 some sample binaries that use libsmbios.
This package contains some utilities that use libsmbios.
%files utils -f %{name}.lang
%doc AUTHORS README TODO ChangeLog doc/*
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%{_sbindir}/*
%{_bindir}/*
%doc COPYING README.md doc/*
%config(noreplace) %{_sysconfdir}/%{name}/logging.conf
%{_sbindir}/smbios-*
%{_datadir}/smbios-utils
%{python_sitelib}/%{name}_c
%{_mandir}/man1/smbios-*.1.*
%{py3_platsitedir}/%{name}_c/*
#----------------------------------------------------------------------------
@ -86,31 +89,26 @@ This package contains some sample binaries that use libsmbios.
#fix tests
find src/ -name *.py -exec sed -i -e 's|python2|python|g' {} \;
sed -i -e 's#-Werror ##' Makefile.*
#sed -i -e 's#-Werror ##' Makefile.*
%build
%global optflags %{optflags} -std=c++11
%configure2_5x \
--disable-rpath
autoreconf -vfi
%configure2_5x --disable-rpath \
--disable-static
%make
%install
%makeinstall_std
mkdir -p %{buildroot}/%{_includedir}
cp -a src/include/smbios %{buildroot}/%{_includedir}
cp -a src/include/smbios_c %{buildroot}/%{_includedir}
# (tpg) looks like hal need this
ln -s %{_sbindir}/dellWirelessCtl %{buildroot}%{_bindir}/dellWirelessCtl
# (tpg) wtf is yum ? ;)
rm -rf %{buildroot}%{_prefix}/lib/yum-plugins
rm -rf %{buildroot}%{_sysconfdir}/yum
# Fix perms
chmod +x %{buildroot}%{py3_platsitedir}/%{name}_c/trace_decorator.py
%find_lang %{name}
%check
%make check