use python_provide macro
This commit is contained in:
parent
dec3e81542
commit
8f4b37f47f
@ -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 <jpopelka@redhat.com> - 1.9.72-4
|
||||
- do not use py3dir
|
||||
- use python_provide macro
|
||||
|
||||
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 1.9.72-3
|
||||
- %%py3_build && %%py3_install
|
||||
|
Loading…
Reference in New Issue
Block a user