Accepting request 1001527 from home:expeehaa:branches:devel:tools:scm
- Disable tests on Leap. - Remove gevent and geventhttpclient from Recommends since they are only required for tests. OBS-URL: https://build.opensuse.org/request/show/1001527 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/python-dulwich?expand=0&rev=14
This commit is contained in:
parent
1d93941c7c
commit
f9f97c893b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 6 23:57:31 UTC 2022 - Lukas Müller <expeehaa@outlook.com>
|
||||||
|
|
||||||
|
- Disable tests on Leap.
|
||||||
|
- Remove gevent and geventhttpclient from Recommends since they are only required for tests.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 31 10:32:01 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Wed Aug 31 10:32:01 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
@ -30,27 +36,27 @@ Source0: https://files.pythonhosted.org/packages/source/d/dulwich/dulwich
|
|||||||
# PATCH-FIX-UPSTREAM rmtree-ignore-errors.patch gh#jelmer/dulwich#1000 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM rmtree-ignore-errors.patch gh#jelmer/dulwich#1000 mcepl@suse.com
|
||||||
# shutil.rmtree should be more callous
|
# shutil.rmtree should be more callous
|
||||||
Patch0: rmtree-ignore-errors.patch
|
Patch0: rmtree-ignore-errors.patch
|
||||||
BuildRequires: %{python_module certifi}
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools >= 17.1}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: %{python_module certifi}
|
||||||
BuildRequires: %{python_module fastimport}
|
BuildRequires: %{python_module fastimport}
|
||||||
BuildRequires: %{python_module geventhttpclient}
|
BuildRequires: %{python_module geventhttpclient}
|
||||||
BuildRequires: %{python_module gevent}
|
BuildRequires: %{python_module gevent}
|
||||||
BuildRequires: %{python_module gpg}
|
BuildRequires: %{python_module gpg}
|
||||||
BuildRequires: %{python_module setuptools >= 17.1}
|
|
||||||
BuildRequires: %{python_module urllib3 >= 1.24.1}
|
BuildRequires: %{python_module urllib3 >= 1.24.1}
|
||||||
%if 0%{?suse_version} <= 1500
|
%if 0%{?suse_version} <= 1500
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
%endif
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: python3-Sphinx
|
|
||||||
Requires: python-certifi
|
Requires: python-certifi
|
||||||
Requires: python-urllib3 >= 1.24.1
|
Requires: python-urllib3 >= 1.24.1
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
Recommends: python-fastimport
|
Recommends: python-fastimport
|
||||||
Recommends: python-gevent
|
|
||||||
Recommends: python-geventhttpclient
|
|
||||||
Recommends: python-gpg
|
Recommends: python-gpg
|
||||||
Obsoletes: %{oldpython}-dulwich-doc < 0.20.5
|
Obsoletes: %{oldpython}-dulwich-doc < 0.20.5
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -76,7 +82,9 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack
|
%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest dulwich.tests.test_suite
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest dulwich.tests.test_suite
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative dulwich
|
%python_install_alternative dulwich
|
||||||
|
Loading…
Reference in New Issue
Block a user