From 8f4b37f47fcf3179607465bef08d4c7cd680c63f Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Nov 20 2015 15:24:18 +0000 Subject: use python_provide macro --- diff --git a/python-cups.spec b/python-cups.spec index fdd2017..9c9e873 100644 --- a/python-cups.spec +++ b/python-cups.spec @@ -14,6 +14,11 @@ BuildRequires: cups-devel BuildRequires: python2-devel python3-devel BuildRequires: epydoc +# defined in /usr/lib/rpm/macros.d/macros.python +# if python_provide() is defined, call python_provide(python-cups) +# which may eventually add Provides: ... (see the function definition) +%{?python_provide:%python_provide python-cups} + %description This package provides Python bindings for CUPS API, known as pycups. It was written for use with @@ -21,6 +26,7 @@ system-config-printer, but can be put to other uses as well. %package -n python3-cups Summary: Python3 bindings for CUPS API, known as pycups. +%{?python_provide:%python_provide python3-cups} %description -n python3-cups This package provides Python bindings for CUPS API, @@ -69,6 +75,7 @@ chmod 755 %{buildroot}%{python3_sitearch}/cups*.so %changelog * Fri Nov 20 2015 Jiri Popelka - 1.9.72-4 - do not use py3dir +- use python_provide macro * Tue Aug 11 2015 Jiri Popelka - 1.9.72-3 - %%py3_build && %%py3_install