updated rpm macros files [release 2.7.18-2mamba;Fri Jan 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 16:58:20 +01:00
parent d21f4d3f1b
commit 202cade2c7
3 changed files with 9 additions and 29 deletions

View File

@ -22,5 +22,4 @@ find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \
%py27_requires(d) \
%define maxver %(%{__python27} -c "import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND) \
BuildRequires: python27, libpython27-devel \
PreReq: python27 >= %{python27_version}, python27 < %{maxver}
Requires(pre): python27 >= %{python27_version}, python27 < %{maxver}

View File

@ -23,25 +23,4 @@ find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \
%py_requires(d) \
%define maxver %(%{__python} -c "import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND) \
BuildRequires: python27, libpython27-devel \
PreReq: python27 >= %{python_version}, python < %{maxver}
%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 \
\
%description %{pyappend} \
%{summary} \
Requires(pre): python27 >= %{python_version}, python < %{maxver}

View File

@ -7,7 +7,7 @@
%define __libdir %{_libdir}
Name: python27
Version: 2.7.18
Release: 1mamba
Release: 2mamba
Summary: An interpreted, interactive, object-oriented programming language
Group: Applications/Development
Vendor: openmamba
@ -48,15 +48,14 @@ BuildRequires: latex2html >= 2002
BuildRequires: tetex >= 3.0
BuildRequires: libtk >= 8.4.11
BuildRequires: libbluez-devel >= 2.21
BuildRequires: python-Sphinx
BuildRequires: python-Jinja2
#BuildRequires: python-Sphinx
#BuildRequires: python-Jinja2
#%endif
Requires: %{libname} = %{?epoch:epoch:}%{version}-%{release}
Provides: python-abi = %{majversion}
Provides: python(abi) = %{majversion}
Provides: /usr/bin/python
Provides: python
Obsoletes: python
Provides: python = %{?epoch:epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -366,6 +365,9 @@ exit 0
%endif
%changelog
* Fri Jan 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.18-2mamba
- updated rpm macros files
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.18-1mamba
- update to 2.7.18