From: biao716.wang Date: Thu, 3 Aug 2023 09:21:15 +0000 (+0900) Subject: fix install error for opensuse 15.x distro X-Git-Tag: accepted/tools/devbase/tools/20250527.103754~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F296713%2F3;p=tools%2Fitest-core.git fix install error for opensuse 15.x distro Change-Id: I048a0e8b9e4f5d6be7f431b3a7ae3847ebede76d Signed-off-by: biao716.wang --- 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