%bcond_without disable_shared
%bcond_without perl_binding
%bcond_without python_binding
-%bcond_with python3_binding
+%bcond_without python3_binding
%bcond_without ruby_binding
%bcond_with zypp
BuildRequires: swig
%endif
%if %{with python_binding}
-%global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);")
+%global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))")
BuildRequires: python-devel
BuildRequires: swig
%endif
%if %{with python3_binding}
-%global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);")
+%global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))")
BuildRequires: python3-devel
%endif
%if %{with python3_binding}
%files -n python3-solv
%defattr(-,root,root)
-%{python3_sitearch}/*
+%{python3_sitearch}/*solv*
+%if 0%{?suse_version}
+%{python3_sitearch}/*/*solv*
+%endif
%endif
%changelog