2018-06-01-stable - spec: Disable python bindings on newer versions
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=63d49838900cbd6d2f937d5ce75e70b32cf009a2 Commit: 63d49838900cbd6d2f937d5ce75e70b32cf009a2 Parent: a991664dec02b62681a4a3eea7fbee2fc3a88700 Author: Marian Csontos <[email protected]> AuthorDate: Mon Aug 27 16:17:11 2018 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Mon Aug 27 16:17:11 2018 +0200
spec: Disable python bindings on newer versions
--- spec/build.inc | 1 + spec/source.inc | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-)
spec/build.inc +1 -0
@@ -33,6 +33,7 @@ %enableif %{enable_python} python2-bindings %enableif %{enable_python3} python3-bindings %enableif %{enable_python} applib +%enableif %{enable_python3} applib %enableif %{enable_dbusd} dbus-service %enableif %{enable_dbusd} notify-dbus %enableif %{enable_dmfilemapd} dmfilemapd
spec/source.inc +11 -11
@@ -79,15 +79,24 @@ %global enable_python 0 %endif -%if %{rhel} >= 8 || %{fedora} >= 20 +%if %{rhel} > 7 || %{fedora} >= 20 %global enable_python3 1 %endif +%if %{rhel} > 7 || %{fedora} >= 29 +%global enable_python 0 +%endif + +%if %{rhel} > 7 || %{fedora} >= 23 +%global enable_dbusd 1 +%endif + %if %{enable_python} %global buildreq_python2_devel python2-devel %global buildreq_python_setuptools python-setuptools %endif -%if %{enable_python3} + +%if %{enable_python3} || %{enable_dbusd} %global buildreq_python3_devel python3-devel %global buildreq_python_setuptools python-setuptools %endif
@@ -100,15 +109,6 @@ ############################################################## -%if %{rhel} >= 8 || %{fedora} >= 23 - %if %{enable_python3} - %global enable_dbusd 1 - %else - # dbusd requires python3 - false - %endif -%endif - %if %{enable_dbusd} %global buildreq_python3_dbus python3-dbus %global buildreq_python3_pyudev python3-pyudev