Remove python2 code for building on RHEL

Samba has python3 support now.
This commit is contained in:
Andreas Schneider 2019-05-09 17:48:03 +02:00
parent a5b527fe93
commit 507f87a34c

View File

@ -775,12 +775,6 @@ export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
# Use the gold linker
export LDFLAGS="%{__global_ldflags} -fuse-ld=gold"
%if 0%{?rhel}
# Use Python 2 for the waf buildscript
pathfix.py -n -p -i %{__python2} buildtools/bin/waf
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%endif # rhel
%configure \
--enable-fhs \
--with-piddir=/run \
@ -833,10 +827,6 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%if 0%{?rhel}
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%endif # rhel
make %{?_smp_mflags} install DESTDIR=%{buildroot}
install -d -m 0755 %{buildroot}/usr/{sbin,bin}
@ -1003,10 +993,6 @@ done
%if %{with testsuite}
%check
%if 0%{?rhel}
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%endif # rhel
TDB_NO_FSYNC=1 make %{?_smp_mflags} test
%endif # with testsuite