Do not build plpython on RHEL > 8

Related: #1913681
This commit is contained in:
Honza Horak 2021-02-17 23:10:18 +01:00
parent 8784e334e1
commit bd3d5e9d0d

View File

@ -34,7 +34,11 @@
%{!?test:%global test 1} %{!?test:%global test 1}
%{!?llvmjit:%global llvmjit 1} %{!?llvmjit:%global llvmjit 1}
%{!?upgrade:%global upgrade 1} %{!?upgrade:%global upgrade 1}
%if 0%{?rhel} > 8
%{!?plpython:%global plpython 0}
%else
%{!?plpython:%global plpython 1} %{!?plpython:%global plpython 1}
%endif
%{!?plpython3:%global plpython3 1} %{!?plpython3:%global plpython3 1}
%{!?pltcl:%global pltcl 1} %{!?pltcl:%global pltcl 1}
%{!?plperl:%global plperl 1} %{!?plperl:%global plperl 1}
@ -61,7 +65,7 @@ Summary: PostgreSQL client programs
Name: postgresql Name: postgresql
%global majorversion 13 %global majorversion 13
Version: %{majorversion}.2 Version: %{majorversion}.2
Release: 1%{?dist} Release: 2%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well. # recognizes it as an independent license, so we do as well.
@ -847,6 +851,8 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
%if !%plpython %if !%plpython
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so
rm -f $RPM_BUILD_ROOT%{_datadir}/pgsql/extension/*_plpythonu*
rm -f $RPM_BUILD_ROOT%{_datadir}/pgsql/extension/*_plpython2u*
%endif %endif
%if %nls %if %nls
@ -1260,6 +1266,10 @@ make -C postgresql-setup-%{setup_version} check
%changelog %changelog
* Wed Feb 17 2021 Honza Horak <hhorak@redhat.com> - 13.2-2
- Do not build plpython on RHEL > 8
Related: #1913681
* Tue Feb 16 2021 Honza Horak <hhorak@redhat.com> - 13.2-1 * Tue Feb 16 2021 Honza Horak <hhorak@redhat.com> - 13.2-1
- Update to 13.2 - Update to 13.2