Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-setuptools.git#aab7290eab68a65cbdc6505f3779d6ba2664b1b9
This commit is contained in:
DistroBaker 2020-12-04 12:51:58 +00:00
parent 162a0d787d
commit 8c049cbc10
1 changed files with 17 additions and 4 deletions

View File

@ -1,9 +1,20 @@
%global srcname setuptools
# The original RHEL 9 content set is defined by (build)dependencies
# of the packages in Fedora ELN. Hence we disable tests here
# to prevent pulling many unwanted packages in.
# Once the RHEL 9 content set is defined and/or RHEL 9 forks from ELN,
# the conditional can be removed from the Fedora spec file.
# We intentionally keep this enabled on EPEL.
%if 0%{?rhel} >= 9 && !0%{?epel}
%bcond_with tests
%else
%bcond_without tests
%endif
# WARNING When bootstrapping, disable tests as well,
# because tests need pip.
%bcond_with bootstrap
%bcond_without tests
# Similar to what we have in pythonX.Y.spec files.
# If enabled, provides unversioned executables and other stuff.
# Disable it if you build this package in an alternative stack.
@ -18,7 +29,7 @@
Name: python-setuptools
# When updating, update the bundled libraries versions bellow!
Version: 50.3.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Easily build and distribute Python packages
# setuptools is MIT
# appdirs is MIT
@ -33,10 +44,9 @@ Source0: %{pypi_source %{srcname} %{version} zip}
BuildArch: noarch
BuildRequires: gcc
BuildRequires: python%{python3_pkgversion}-devel
%if %{with tests}
BuildRequires: gcc
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-mock
@ -189,6 +199,9 @@ PYTHONPATH=$(pwd) %pytest --ignore=pavement.py
%changelog
* Fri Dec 4 2020 Miro Hrončok <mhroncok@redhat.com> - 50.3.2-2
- Disable tests in Fedora ELN (and RHEL)
* Tue Oct 20 2020 Tomas Hrnciar <thrnciar@redhat.com> - 50.3.2-1
- Update to 50.3.2 (#1889093)