summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-02-22 09:21:35 +0100
committerMartin Basti <mbasti@redhat.com>2017-03-02 14:43:37 +0100
commitb4c1bf1c7d1a63e802abe6334bd1112d2d468513 (patch)
treeba91d712ac3c6a949736f7ac610b17d3b047b46e
parentacdd1f59782bb836d6c4c255689918368adb8dab (diff)
downloadfreeipa-b4c1bf1c7d1a63e802abe6334bd1112d2d468513.tar.gz
freeipa-b4c1bf1c7d1a63e802abe6334bd1112d2d468513.tar.xz
freeipa-b4c1bf1c7d1a63e802abe6334bd1112d2d468513.zip
Add with_wheels global to install wheel and PyPI packaging dependencies
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--freeipa.spec.in11
1 files 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