From c3c2d83a1a2b14a160270c3a509e7b7339c7edec Mon Sep 17 00:00:00 2001 From: dongyuzhen Date: Thu, 14 Apr 2022 16:25:32 +0800 Subject: [PATCH] fix test case failed (cherry picked from commit e44b464a5382d1c987aba0ca2198e8ad40bfe6a4) --- python-dmidecode.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/python-dmidecode.spec b/python-dmidecode.spec index 8b7c546..23b3683 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -2,7 +2,7 @@ Name: python-dmidecode Version: 3.12.2 -Release: 20 +Release: 22 Summary: Python extension module for dmidecode License: GPLv2 @@ -41,7 +41,7 @@ data structures or XML data. sed -i 's/python2/python3/g' Makefile unit-tests/Makefile %build -export CFLAGS="${CFLAGS-} -std=gnu89" +export CFLAGS="${CFLAGS-} -std=gnu89 -s" make build %install @@ -49,9 +49,9 @@ export CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="${RPM_LD_FLAGS}" %{__python3} src/setup.py install --root %{buildroot} --prefix=%{_prefix} %check -pushd unit-tests -make -popd +export PYTHONPATH=%{buildroot}%{python3_sitearch} +export PYTHON_BIN=%{__python3} +make -C unit-tests %files -n python3-dmidecode %license doc/LICENSE doc/AUTHORS doc/AUTHORS.upstream @@ -65,6 +65,12 @@ popd %doc README doc/README.upstream %changelog +* Thu Apr 14 2022 dongyuzhen - 3.12.2-22 +- fix test case failed + +* Sat Mar 20 2021 Dehui Fan - 3.12.2-21 +- strip binary files + * Fri Oct 30 2020 chengguipeng - 3.12.2-20 - remove python2-dmidecode subpackage