2024-01-05 16:58:29 +01:00
|
|
|
# macros to ease building of python versioned targets in openmamba
|
2024-01-05 16:58:32 +01:00
|
|
|
%with_pyver 3
|
2024-01-05 16:58:29 +01:00
|
|
|
%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} \
|