python3/python-rpm-macros.pyver
Silvan Calarco 71acada59f update to 3.7.9
install macros.pyver with custom pyver macros updated and to be moved from macros.python [release 3.7.9-1mamba;Fri Jan 01 2021]
2024-01-05 16:58:29 +01:00

22 lines
895 B
Plaintext

# macros to ease building of python versioned targets in openmamba
%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} \