# macros to ease building of python versioned targets in openmamba %with_pyver 3 %pyver_package \ %define pyver %{with_pyver} \ %define pyappend py%{with_pyver} \ %define __python %(rpm --eval %{__python%{pyver}}) \ %define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) \ %define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) \ %define python_inc %(rpm --eval %{python%{with_pyver}_inc}) \ %define python_version %(rpm --eval %{python%{with_pyver}_version}) \ %define python_provides %(rpm --eval %{python%{with_pyver}_provides}) \ %define python_requires %(rpm --eval %{python%{with_pyver}_requires}) \ %define py_requires %(rpm --eval %{py%{with_pyver}_requires}) \ \ %package %{pyappend} \ Group: System/Libraries/Python \ Summary: %{summary} \ %py_requires \ %{?py_requires_append} \ \ %description %{pyappend} \ %{summary} \