diff --git a/macros.python310 b/macros.python310 index f70e833..5563e28 100644 --- a/macros.python310 +++ b/macros.python310 @@ -11,10 +11,10 @@ # Useful macros for building *.rpm python packages (for python > 1.6). # -%python310_sitearch %(%{__python310} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True));") -%python310_sitelib %(%{__python310} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") -%python310_inc %(%{__python310} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -%python310_version %(%{__python310} -c "import sys; print(sys.version[0:3])") +%python310_sitearch %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['platlib'])") +%python310_sitelib %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['purelib'])") +%python310_inc %(%{__python310} -c "from sysconfig import get_paths; print(get_paths()['include'])") +%python310_version %(%{__python310} -c "import sys; print(sys.version[0:4])") %py310_compile(O) \ find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \ diff --git a/python310.spec b/python310.spec index 4a1d656..083d5dc 100644 --- a/python310.spec +++ b/python310.spec @@ -4,7 +4,7 @@ %define __libdir %{_libdir} Name: python310 Version: 3.10.2 -Release: 1mamba +Release: 2mamba Summary: An interpreted, interactive, object-oriented programming language Group: Applications/Development Vendor: openmamba @@ -282,6 +282,9 @@ find %{__libdir}/python%{majversion}/site-packages -name *.egg-info -type d -emp %endif %changelog +* Thu Jan 27 2022 Silvan Calarco 3.10.2-2mamba +- macros.python310: fixed %python310_version and removed use of deprecated distutils + * Sat Jan 15 2022 Automatic Build System 3.10.2-1mamba - automatic version update by autodist