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