From 411fbb3cab13485eeab9f14929ae9fdd78abc085ff135a4aa06d09ade52075f6 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 14 Apr 2021 04:52:27 +0000 Subject: [PATCH 1/4] - Only build for 3.8, some depends only built there. - There is no test suite, remove trying to run it. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=14 --- python-inspektor.changes | 6 ++++++ python-inspektor.spec | 19 +++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/python-inspektor.changes b/python-inspektor.changes index 0ae195e..50a1b5c 100644 --- a/python-inspektor.changes +++ b/python-inspektor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik + +- Only build for 3.8, some depends only built there. +- There is no test suite, remove trying to run it. + ------------------------------------------------------------------- Tue Apr 16 09:59:52 UTC 2019 - Martin Pluskal diff --git a/python-inspektor.spec b/python-inspektor.spec index 9c1e4f9..4e73daa 100644 --- a/python-inspektor.spec +++ b/python-inspektor.spec @@ -1,7 +1,7 @@ # # spec file for package python-inspektor # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,18 +17,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# cliff and stevedore are not built for 3.6 +%define skip_python36 1 %global pkgname inspektor Name: python-%{pkgname} Version: 0.5.2 Release: 0 Summary: Program used to verify the code of your python project License: GPL-2.0-only -Group: Development/Languages/Python URL: https://github.com/avocado-framework/inspektor -#Source: https://github.com/avocado-framework/inspektor/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/42/8a/9e375ac0bb498760fe2408a2e0f1fe09808933e593d1b6f04193492b9048/inspektor-%{version}.tar.gz BuildRequires: %{python_module astroid >= 1.2.1} -BuildRequires: %{python_module cliff} BuildRequires: %{python_module cmd2} BuildRequires: %{python_module devel} BuildRequires: %{python_module logutils >= 0.3.3} @@ -36,9 +35,10 @@ BuildRequires: %{python_module pbr >= 1.4} BuildRequires: %{python_module pycodestyle >= 2.0.0} BuildRequires: %{python_module pylint >= 1.3.1} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module stevedore} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-cliff +BuildRequires: python3-stevedore Requires: python-astroid >= 1.2.1 Requires: python-cliff Requires: python-cmd2 @@ -48,12 +48,10 @@ Requires: python-pycodestyle >= 2.0.0 Requires: python-pylint >= 1.3.1 Requires: python-stevedore Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch -%ifpython3 BuildRequires: python3-typed-ast Requires: python3-typed-ast -%endif %python_subpackages %description @@ -70,10 +68,7 @@ Inspektor can work with Git and SVN checkouts. %python_build %check -# No worky on SLE -%if 0%{?suse_version} >= 1500 -%python_exec setup.py test -%endif +# No test suite %install %python_install From 811f47792fea3f33a632d471bd7638ad9f1bd9f4e1b66b55d2467b37e9f73cea Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 14 Apr 2021 05:32:23 +0000 Subject: [PATCH 2/4] - Remove broken %ifpython3 macro. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=15 --- python-inspektor.changes | 1 + 1 file changed, 1 insertion(+) diff --git a/python-inspektor.changes b/python-inspektor.changes index 50a1b5c..ec75408 100644 --- a/python-inspektor.changes +++ b/python-inspektor.changes @@ -3,6 +3,7 @@ Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik - Only build for 3.8, some depends only built there. - There is no test suite, remove trying to run it. +- Remove broken %ifpython3 macro. ------------------------------------------------------------------- Tue Apr 16 09:59:52 UTC 2019 - Martin Pluskal From cd1b9f2b2666a7b884346383228cc432d443ce337b8b2897a10fdc0a8411925e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 16 Apr 2021 07:41:33 +0000 Subject: [PATCH 3/4] Also skip 3.9, and correct comment OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=16 --- python-inspektor.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-inspektor.spec b/python-inspektor.spec index 4e73daa..65c8bb7 100644 --- a/python-inspektor.spec +++ b/python-inspektor.spec @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# cliff and stevedore are not built for 3.6 +# cliff and stevedore are only built for 3.8 %define skip_python36 1 +%define skip_python39 1 %global pkgname inspektor Name: python-%{pkgname} Version: 0.5.2 From fb66f3640c03c421eb7ff5c25761f4c24afef151e8fc4fa805028ae4972421e0 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 29 Apr 2021 15:12:18 +0000 Subject: [PATCH 4/4] Accepting request 889301 from home:bnavigator:branches:devel:languages:python:avocado - Only build for primary python3 OBS-URL: https://build.opensuse.org/request/show/889301 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=17 --- python-inspektor.changes | 5 +++++ python-inspektor.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-inspektor.changes b/python-inspektor.changes index ec75408..11e0e74 100644 --- a/python-inspektor.changes +++ b/python-inspektor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 29 13:20:53 UTC 2021 - Benjamin Greiner + +- Only build for primary python3 + ------------------------------------------------------------------- Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik diff --git a/python-inspektor.spec b/python-inspektor.spec index 65c8bb7..cbc9bdf 100644 --- a/python-inspektor.spec +++ b/python-inspektor.spec @@ -17,9 +17,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# cliff and stevedore are only built for 3.8 -%define skip_python36 1 -%define skip_python39 1 +%if 0%{suse_version} >= 1550 +# cliff and stevedore are only built for primary python3 +%define pythons python3 +%endif %global pkgname inspektor Name: python-%{pkgname} Version: 0.5.2