mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3 spec: remove python2 dependencies from freeipa-server
When building the package with for python3, use only python3 dependencies. Changed: python -> python2 / python3 python-gssapi -> python2-gssapi / python3-gssapi python-ldap -> python-ldap / python3-pyldap systemd-python -> python2-systemd / python3-systemd Fixes: https://pagure.io/freeipa/issue/7208 Signed-off-by: Tomas Krizek <tkrizek@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
3c84b0146b
commit
e203e9f86e
@ -143,7 +143,7 @@ BuildRequires: python-lesscpy
|
||||
# Build dependencies for makeapi/makeaci
|
||||
# makeapi/makeaci is using Python 2 only for now
|
||||
#
|
||||
BuildRequires: python2-ldap
|
||||
BuildRequires: python-ldap
|
||||
BuildRequires: python2-netaddr
|
||||
BuildRequires: python2-pyasn1
|
||||
BuildRequires: python2-pyasn1-modules
|
||||
@ -175,7 +175,7 @@ BuildRequires: python3-wheel
|
||||
BuildRequires: python2-samba
|
||||
# 1.6: x509.Name.rdns (https://github.com/pyca/cryptography/issues/3199)
|
||||
BuildRequires: python2-cryptography >= 1.6
|
||||
BuildRequires: python-gssapi >= 1.2.0-5
|
||||
BuildRequires: python2-gssapi >= 1.2.0-5
|
||||
%if 0%{?fedora} >= 26
|
||||
BuildRequires: python2-pylint
|
||||
%else
|
||||
@ -208,7 +208,7 @@ BuildRequires: python2-sss-murmur
|
||||
BuildRequires: python2-sssdconfig
|
||||
BuildRequires: python2-nose
|
||||
BuildRequires: python2-paste
|
||||
BuildRequires: systemd-python
|
||||
BuildRequires: python2-systemd
|
||||
BuildRequires: python2-jinja2
|
||||
BuildRequires: python2-augeas
|
||||
|
||||
@ -284,8 +284,10 @@ Requires: %{name}-client = %{version}-%{release}
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
%if 0%{?with_python3}
|
||||
Requires: python3-ipaserver = %{version}-%{release}
|
||||
Requires: python3-pyldap >= 2.4.15
|
||||
%else
|
||||
Requires: python2-ipaserver = %{version}-%{release}
|
||||
Requires: python-ldap >= 2.4.15
|
||||
%endif
|
||||
# 1.3.7.6-1: https://bugzilla.redhat.com/show_bug.cgi?id=1488295
|
||||
Requires: 389-ds-base >= 1.3.7.6-1
|
||||
@ -299,8 +301,16 @@ Requires: cyrus-sasl-gssapi%{?_isa}
|
||||
Requires: ntp
|
||||
Requires: httpd >= 2.4.6-31
|
||||
%if 0%{with_python3}
|
||||
Requires(preun): python3
|
||||
Requires(postun): python3
|
||||
Requires: python3-gssapi >= 1.2.0-5
|
||||
Requires: python3-mod_wsgi
|
||||
Requires: python3-systemd
|
||||
%else
|
||||
Requires(preun): python2
|
||||
Requires(postun): python2
|
||||
Requires: python2-gssapi >= 1.2.0-5
|
||||
Requires: python2-systemd
|
||||
Requires: mod_wsgi
|
||||
%endif
|
||||
Requires: mod_auth_gssapi >= 1.5.0
|
||||
@ -309,8 +319,6 @@ Requires: mod_nss >= 1.0.14-3
|
||||
Requires: mod_session
|
||||
# 0.9.9: https://github.com/adelton/mod_lookup_identity/pull/3
|
||||
Requires: mod_lookup_identity >= 0.9.9
|
||||
Requires: python-ldap >= 2.4.15
|
||||
Requires: python-gssapi >= 1.2.0-5
|
||||
Requires: acl
|
||||
Requires: systemd-units >= 38
|
||||
Requires(pre): shadow-utils
|
||||
@ -321,8 +329,8 @@ Requires(post): selinux-policy-base >= %{selinux_policy_version}
|
||||
Requires: slapi-nis >= %{slapi_nis_version}
|
||||
Requires: pki-ca >= 10.4.0-1
|
||||
Requires: pki-kra >= 10.4.0-1
|
||||
Requires(preun): python systemd-units
|
||||
Requires(postun): python systemd-units
|
||||
Requires(preun): systemd-units
|
||||
Requires(postun): systemd-units
|
||||
Requires: policycoreutils >= 2.1.12-5
|
||||
Requires: tar
|
||||
Requires(pre): certmonger >= 0.79.5-1
|
||||
@ -333,7 +341,6 @@ Requires: open-sans-fonts
|
||||
Requires: openssl
|
||||
Requires: softhsm >= 2.0.0rc1-1
|
||||
Requires: p11-kit
|
||||
Requires: systemd-python
|
||||
Requires: %{etc_systemd_dir}
|
||||
Requires: gzip
|
||||
Requires: oddjob
|
||||
@ -378,7 +385,7 @@ Requires: python2-ipaclient = %{version}-%{release}
|
||||
Requires: python2-custodia >= 0.3.1
|
||||
Requires: python-ldap >= 2.4.15
|
||||
Requires: python2-lxml
|
||||
Requires: python-gssapi >= 1.2.0-5
|
||||
Requires: python2-gssapi >= 1.2.0-5
|
||||
Requires: python2-sssdconfig
|
||||
Requires: python2-pyasn1 >= 0.3.2-2
|
||||
Requires: python2-dbus
|
||||
@ -529,11 +536,14 @@ Group: System Environment/Base
|
||||
Requires: %{name}-client-common = %{version}-%{release}
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
%if 0%{?with_python3}
|
||||
Requires: python3-gssapi >= 1.2.0-5
|
||||
Requires: python3-ipaclient = %{version}-%{release}
|
||||
Requires: python3-pyldap
|
||||
%else
|
||||
Requires: python2-gssapi >= 1.2.0-5
|
||||
Requires: python2-ipaclient = %{version}-%{release}
|
||||
%endif
|
||||
Requires: python-ldap
|
||||
%endif
|
||||
Requires: cyrus-sasl-gssapi%{?_isa}
|
||||
Requires: ntp
|
||||
Requires: krb5-workstation >= %{krb5_version}
|
||||
@ -549,7 +559,6 @@ Requires: certmonger >= 0.79.5-1
|
||||
Requires: nss-tools
|
||||
Requires: bind-utils
|
||||
Requires: oddjob-mkhomedir
|
||||
Requires: python-gssapi >= 1.2.0-5
|
||||
Requires: libsss_autofs
|
||||
Requires: autofs
|
||||
Requires: libnfsidmap
|
||||
@ -690,7 +699,7 @@ Provides: python2-ipaplatform = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-ipaplatform}
|
||||
%{!?python_provide:Provides: python-ipaplatform = %{version}-%{release}}
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
Requires: python-gssapi >= 1.2.0-5
|
||||
Requires: python2-gssapi >= 1.2.0-5
|
||||
Requires: gnupg
|
||||
Requires: keyutils
|
||||
Requires: pyOpenSSL
|
||||
|
Loading…
Reference in New Issue
Block a user