From 029bc91f7a95c9cca2f09e75dd5c943e18f48b0a Mon Sep 17 00:00:00 2001 From: JinWang An Date: Mon, 14 Dec 2020 15:51:11 +0900 Subject: [PATCH] Bump to python-packaging 20.8 Change-Id: I2e347309f820c7462ae89a5cd48117e954b6b249 Signed-off-by: JinWang An --- packaging/python-packaging.manifest | 5 +++ packaging/python-packaging.spec | 76 +++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 packaging/python-packaging.manifest create mode 100644 packaging/python-packaging.spec diff --git a/packaging/python-packaging.manifest b/packaging/python-packaging.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python-packaging.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python-packaging.spec b/packaging/python-packaging.spec new file mode 100644 index 0000000..9862d9d --- /dev/null +++ b/packaging/python-packaging.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-packaging +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%if "%{run_tests}" == "1" + %define __spec_check_pre %___build_pre + %define check %%check +%endif + +%define debug_package %{nil} + +Name: python-packaging +Version: 20.8 +Release: 0 +Summary: Core utilities for Python packages +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://github.com/pypa/packaging +Source: https://pypi.io/packages/source/p/packaging/packaging-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: python +BuildRequires: python-pyparsing +BuildRequires: python-six + +# do not add setuptools dependency, this is now a dependency +# of setuptools. Ensure that all dependencies also don't depend +# on setuptools +# (at the moment, six and pyparsing are ok) + +Requires: python-pyparsing +Requires: python-six +BuildArch: noarch + +%description +Core utilities for Python packages + +%prep +%setup -q -n packaging-%{version} + +%build +cp %{SOURCE1001} . +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# ensure egg-info is a directory +rm %{buildroot}%{python_sitelib}/*.egg-info +cp -r packaging.egg-info %{buildroot}%{python_sitelib}/packaging-%{version}-py%{python_version}.egg-info + + +%check + + +%files +%defattr(-,root,root,-) +%manifest %{name}.manifest +%license LICENSE.APACHE +%{python_sitelib}/packaging +%{python_sitelib}/packaging-%{version}-py*.egg-info/ + +%changelog -- 2.7.4