forked from pool/python-inspektor
Accepting request 889351 from devel:languages:python:avocado
OBS-URL: https://build.opensuse.org/request/show/889351 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-inspektor?expand=0&rev=6
This commit is contained in:
commit
6dcc5a7923
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 29 13:20:53 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Only build for primary python3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <mpluskal@suse.com>
|
||||
|
||||
|
@ -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,19 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%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
|
||||
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 +37,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 +50,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 +70,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
|
||||
|
Loading…
Reference in New Issue
Block a user