From 6d5eade64372e274f1b897a7b1ffb5db68f85be5 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Feb 16 2017 10:29:11 +0000 Subject: address issues from fedora review * remove debug_package * remove supplied egg in %prep * use %python_provide macro * document patches Signed-off-by: Tomas Tomecek --- diff --git a/python-docker-2.0.2-1.fc26.src.rpm b/python-docker-2.0.2-1.fc26.src.rpm index bd4c64d..b17141d 100644 Binary files a/python-docker-2.0.2-1.fc26.src.rpm and b/python-docker-2.0.2-1.fc26.src.rpm differ diff --git a/python-docker.spec b/python-docker.spec index 89c8947..c8df97e 100644 --- a/python-docker.spec +++ b/python-docker.spec @@ -9,9 +9,6 @@ %bcond_without tests %endif -# disable debug package cause archful -%global debug_package %{nil} - %global srcname docker %global py2_docker_py_1 python2-docker-py %global py3_docker_py_1 python3-docker-py @@ -23,8 +20,17 @@ Summary: A Python library for the Docker Engine API License: ASL 2.0 URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz + +# remove version requirements on depedencies needed for testing +# we have those in Fedora in different versions Patch1: unpin-test-requirements.patch + +# This patch is required by `atomic` command Fedora version of docker engine +# has extended functionality to provide `inspect` data for remote images +# May be subject to remove: https://github.com/projectatomic/atomic/issues/898 Patch2: remote-inspection.patch + +# Python packages mentioned in `extras_require` are not available in CentOS Patch3: setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch BuildArch: noarch @@ -38,6 +44,7 @@ run containers, manage containers, manage Swarms, etc. %package -n python2-%{srcname} Summary: A Python library for the Docker Engine API +%{?python_provide:%python_provide python2-%{srcname}} %if %{with tests} BuildRequires: python-requests @@ -70,6 +77,7 @@ run containers, manage containers, manage Swarms, etc. %if %{with python3} %package -n python3-%{srcname} Summary: A Python library for the Docker Engine API +%{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -99,6 +107,7 @@ run containers, manage containers, manage Swarms, etc. %prep %autosetup -n %{srcname}-%{version} -p 1 +rm -fr docker.egg-info %build %py2_build