Silvan Calarco
71acada59f
install macros.pyver with custom pyver macros updated and to be moved from macros.python [release 3.7.9-1mamba;Fri Jan 01 2021]
22 lines
895 B
Plaintext
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} \
|