macro for python3 for platform 201905

This commit is contained in:
slava86 2021-03-21 15:54:53 +03:00
parent e9d998aa76
commit 1c1113e8b0

View file

@ -2,6 +2,12 @@
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}
%if %{mdvver} == 201905
%define __python_3 %{__python38}
%else
%define __python_3 %{__python3}
%endif
# Avoid provides/requires from private libraries
%global privlibs libhostfxr
%global privlibs %{privlibs}|libclrjit
@ -515,8 +521,7 @@ install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz
# because native binaries are stripped by rpm-build after %%install.
# So we need to do this check earlier.
echo "Testing build results for debug symbols..."
%{__python3} %{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/
%{__python_3} %{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/
%check
%{buildroot}%{_libdir}/dotnet/dotnet --info