From af4b389c6c66c72edbeb02eb245c13509c483064 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Wed, 4 Apr 2018 08:55:25 -0400 Subject: [PATCH] SPEC: add python_provide macro also on the Python 3 package So that, if the system version on a given distro is Python 3, the python3-avocado package will automatically "Provide:" python-avocado. Reference: https://fedoraproject.org/wiki/Packaging:Python#The_.25python_provide_macro Signed-off-by: Cleber Rosa --- python-avocado.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-avocado.spec b/python-avocado.spec index 08d72582..cf5cd93d 100644 --- a/python-avocado.spec +++ b/python-avocado.spec @@ -147,6 +147,7 @@ Requires: python3-requests Requires: python3-setuptools Requires: python3-six Requires: python3-stevedore +%{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Avocado is a set of tools and libraries (what people call @@ -754,6 +755,7 @@ Again Shell code (and possibly other similar shells). %changelog * Wed Apr 4 2018 Cleber Rosa - 60.0-2 - Moved all requirements to python2-avocado and python3-avocado +- Added python_provides macro on Python 3 package * Wed Mar 28 2018 Cleber Rosa - 60.0-1 - Moved "common" dep into python2-avocado and python3-avocado -- GitLab