On RHEL 9+, build without the legacy nis module

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1942376
This commit is contained in:
Petr Viktorin 2021-04-07 20:59:18 +02:00
parent 215663cc49
commit 08a5d0a243

View File

@ -17,7 +17,7 @@ URL: https://www.python.org/
#global prerel ...
%global upstream_version %{general_version}%{?prerel}
Version: %{general_version}%{?prerel:~%{prerel}}
Release: 1%{?dist}
Release: 2%{?dist}
License: Python
@ -121,6 +121,13 @@ License: Python
%bcond_with rhel8_compat_shims
%endif
# On RHEL 9+, build without the legacy nis module
%if 0%{?rhel} >= 9
%bcond_with nis
%else
%bcond_without nis
%endif
# =====================
# General global macros
@ -219,8 +226,10 @@ BuildRequires: gmp-devel
BuildRequires: gnupg2
BuildRequires: libappstream-glib
BuildRequires: libffi-devel
%if %{with nis}
BuildRequires: libnsl2-devel
BuildRequires: libtirpc-devel
%endif
BuildRequires: libGL-devel
BuildRequires: libuuid-devel
BuildRequires: libX11-devel
@ -1371,7 +1380,9 @@ CheckPython optimized
%{dynload_dir}/grp.%{SOABI_optimized}.so
%{dynload_dir}/math.%{SOABI_optimized}.so
%{dynload_dir}/mmap.%{SOABI_optimized}.so
%if %{with nis}
%{dynload_dir}/nis.%{SOABI_optimized}.so
%endif
%{dynload_dir}/ossaudiodev.%{SOABI_optimized}.so
%{dynload_dir}/parser.%{SOABI_optimized}.so
%{dynload_dir}/_posixshmem.%{SOABI_optimized}.so
@ -1664,7 +1675,9 @@ CheckPython optimized
%{dynload_dir}/grp.%{SOABI_debug}.so
%{dynload_dir}/math.%{SOABI_debug}.so
%{dynload_dir}/mmap.%{SOABI_debug}.so
%if %{with nis}
%{dynload_dir}/nis.%{SOABI_debug}.so
%endif
%{dynload_dir}/ossaudiodev.%{SOABI_debug}.so
%{dynload_dir}/parser.%{SOABI_debug}.so
%{dynload_dir}/_posixshmem.%{SOABI_debug}.so
@ -1743,6 +1756,10 @@ CheckPython optimized
# ======================================================
%changelog
* Wed Apr 07 2021 Petr Viktorin <pviktori@redhat.com> - 3.9.2-2
- On RHEL 9+, build without the legacy nis module
Resolves: RHBZ#1942376
* Sat Feb 20 2021 Miro Hrončok <mhroncok@redhat.com> - 3.9.2-1
- Update to 3.9.2