From 30b481954464a6b07b3b9cdf5480a1fca98cccc1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:58:20 +0100 Subject: [PATCH] update to 2.7.9 macros.python: added %pyver_package macro [release 2.7.9-1mamba;Sat May 16 2015] --- python-macros.python | 20 ++++++++++++++++++++ python27.spec | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/python-macros.python b/python-macros.python index cae2853..a50772c 100644 --- a/python-macros.python +++ b/python-macros.python @@ -24,3 +24,23 @@ find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \ 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} \ + diff --git a/python27.spec b/python27.spec index 4d48bbc..1c3dc4b 100644 --- a/python27.spec +++ b/python27.spec @@ -6,7 +6,7 @@ #% define __libdir %{_prefix}/lib %define __libdir %{_libdir} Name: python27 -Version: 2.7.8 +Version: 2.7.9 Release: 1mamba Summary: An interpreted, interactive, object-oriented programming language Group: Applications/Development @@ -359,6 +359,10 @@ exit 0 %endif %changelog +* Sat May 16 2015 Silvan Calarco 2.7.9-1mamba +- update to 2.7.9 +- macros.python: added %pyver_package macro + * Sun Nov 23 2014 Silvan Calarco 2.7.8-1mamba - update to 2.7.8