From 4a85e50d0f1a02c9842151b598ea076de1f65884 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Thu, 3 Aug 2023 18:21:15 +0900 Subject: [PATCH] fix install error for opensuse 15.x distro Change-Id: I048a0e8b9e4f5d6be7f431b3a7ae3847ebede76d Signed-off-by: biao716.wang --- packaging/itest-core.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packaging/itest-core.spec b/packaging/itest-core.spec index e305888..0e9f819 100644 --- a/packaging/itest-core.spec +++ b/packaging/itest-core.spec @@ -1,5 +1,3 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_version: %define python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")} Name: itest-core Summary: Functional testing utility Version: 1.7 @@ -25,6 +23,7 @@ Requires: spm Requires: python3-Jinja2 Requires: python3-unittest2 +Requires: python3-distro BuildRequires: python3-setuptools BuildRequires: python3-devel @@ -34,11 +33,8 @@ Functional testing utility %package -n spm Summary: smart package management tool -Requires: python-Jinja2 -Requires: python-yaml -%if "%{?python_version}" < "2.7" -Requires: python-ordereddict -%endif +Requires: python3-Jinja2 +Requires: python3-PyYAML %if ! 0%{?suse_version} Requires: yum-plugin-remove-with-leaves %endif @@ -51,7 +47,7 @@ Support Redhat, Debian, SuSE %package -n nosexcase Summary: nose plugin Requires: itest-core -Requires: python-nose +Requires: python3-nose %description -n nosexcase This is a nose plugin that provides test cases -- 2.34.1