17
0

- add no-legacyversion-warning.patch to restore compatibility with 20.4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=48
This commit is contained in:
2021-05-01 21:06:55 +00:00
committed by Git OBS Bridge
parent 7d52b98075
commit f09c646ff6
3 changed files with 39 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-packaging
# spec file for package python-packaging-test
#
# Copyright (c) 2021 SUSE LLC
#
@@ -32,6 +32,8 @@ Summary: Core utilities for Python packages
License: Apache-2.0
URL: https://github.com/pypa/packaging
Source: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
# Restore compatibility with 20.4 for setuptools
Patch1: no-legacyversion-warning.patch
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -55,6 +57,7 @@ Core utilities for Python packages
%prep
%setup -q -n packaging-%{version}
%patch1 -p1
# sdist must provide a packaging.egg-info, used below in install phase
test -d packaging.egg-info