summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'freeipa.spec.in')
-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