From b4c1bf1c7d1a63e802abe6334bd1112d2d468513 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 22 Feb 2017 09:21:35 +0100 Subject: [PATCH] Add with_wheels global to install wheel and PyPI packaging dependencies Signed-off-by: Christian Heimes Reviewed-By: Martin Basti --- freeipa.spec.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/freeipa.spec.in b/freeipa.spec.in index acc197ef9..d8602c905 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -17,6 +17,9 @@ %global without_jslint_option --without-jslint %endif +# Python wheel support and PyPI packages +%global with_wheels 0 + %global alt_name ipa %if 0%{?rhel} %global samba_version 4.0.5-1 @@ -124,14 +127,16 @@ BuildRequires: python-libsss_nss_idmap BuildRequires: python-cffi # -# Build dependencies for wheel packaging +# Build dependencies for wheel packaging and PyPI upload # -%if 0%{?fedora} +%if 0%{with_wheels} +BuildRequires: python2-twine BuildRequires: python2-wheel %if 0%{?with_python3} +BuildRequires: python3-twine BuildRequires: python3-wheel %endif -%endif # Fedora +%endif # with_wheels # # Build dependencies for lint