mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add more RHEL customizations to spec file
- Handle name / alt name for Fedora and RHEL. On Fedora, the packages are named "freeipa-*" with alternative names "ipa-*". On RHEL it is the other way around. - Don't build ipatests on RHEL. - Use latest versions of KRB5 on RHEL Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
+21
-13
@@ -13,9 +13,12 @@
|
|||||||
%global enable_server_option --enable-server
|
%global enable_server_option --enable-server
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Build with ipatests
|
# Build ipatests
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%global with_ipatests 0
|
||||||
|
%endif
|
||||||
%if ! %{ONLY_CLIENT}
|
%if ! %{ONLY_CLIENT}
|
||||||
%global with_ipatests 1
|
%{!?with_ipatests:%global with_ipatests 1}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?with_ipatests}
|
%if 0%{?with_ipatests}
|
||||||
%global with_ipatests_option --with-ipatests
|
%global with_ipatests_option --with-ipatests
|
||||||
@@ -25,23 +28,24 @@
|
|||||||
|
|
||||||
# Python 2/3 packages and default Python interpreter
|
# Python 2/3 packages and default Python interpreter
|
||||||
%if 0%{?rhel} > 7
|
%if 0%{?rhel} > 7
|
||||||
%global with_default_python 3
|
%global with_default_python 3
|
||||||
%global with_python2 0
|
%global with_python2 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 29
|
%if 0%{?fedora} >= 29
|
||||||
# F29 only supports Python 3 as default Python
|
# F29 only supports Python 3 as default Python
|
||||||
%global with_default_python 3
|
%global with_default_python 3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{!?with_default_python:%global with_default_python 3}
|
%{!?with_default_python:%global with_default_python 3}
|
||||||
%{!?with_python2:%global with_python2 1}
|
%{!?with_python2:%global with_python2 1}
|
||||||
|
|
||||||
%if %{with_default_python} == 3
|
%if %{with_default_python} == 3
|
||||||
%global python %{__python3}
|
%global with_python3 1
|
||||||
|
%global python %{__python3}
|
||||||
%else
|
%else
|
||||||
%global with_python2 1
|
%global with_python2 1
|
||||||
%global python %{__python2}
|
%global python %{__python2}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# lint is not executed during rpmbuild
|
# lint is not executed during rpmbuild
|
||||||
@@ -52,10 +56,11 @@
|
|||||||
%global linter_options --disable-pylint --without-jslint
|
%global linter_options --disable-pylint --without-jslint
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global alt_name ipa
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
%global krb5_version 1.15.2
|
%global package_name ipa
|
||||||
%global krb5_kdb_version 6.1
|
%global alt_name freeipa
|
||||||
|
%global krb5_version 1.16.1
|
||||||
|
%global krb5_kdb_version 7.0
|
||||||
# 0.7.16: https://github.com/drkjam/netaddr/issues/71
|
# 0.7.16: https://github.com/drkjam/netaddr/issues/71
|
||||||
%global python_netaddr_version 0.7.16
|
%global python_netaddr_version 0.7.16
|
||||||
# Require 4.7.0 which brings Python 3 bindings
|
# Require 4.7.0 which brings Python 3 bindings
|
||||||
@@ -65,6 +70,9 @@
|
|||||||
%global python_ldap_version 3.1.0-1
|
%global python_ldap_version 3.1.0-1
|
||||||
%global ds_version 1.4.0.8-1
|
%global ds_version 1.4.0.8-1
|
||||||
%else
|
%else
|
||||||
|
# Fedora
|
||||||
|
%global package_name freeipa
|
||||||
|
%global alt_name ipa
|
||||||
%global krb5_version 1.16.1
|
%global krb5_version 1.16.1
|
||||||
%global krb5_kdb_version 7.0
|
%global krb5_kdb_version 7.0
|
||||||
# 0.7.16: https://github.com/drkjam/netaddr/issues/71
|
# 0.7.16: https://github.com/drkjam/netaddr/issues/71
|
||||||
@@ -109,7 +117,7 @@
|
|||||||
%define IPA_VERSION nonsense.to.please.RPM.SPEC.parser
|
%define IPA_VERSION nonsense.to.please.RPM.SPEC.parser
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: freeipa
|
Name: %{package_name}
|
||||||
Version: %{IPA_VERSION}
|
Version: %{IPA_VERSION}
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
Summary: The Identity, Policy and Audit system
|
Summary: The Identity, Policy and Audit system
|
||||||
|
|||||||
Reference in New Issue
Block a user