From 855b225caa8e5541ddde02647da93ee660c0e1cb Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Jun 29 2015 15:52:58 +0000 Subject: correct python_provide macro to include version only when emiting provides --- diff --git a/macros.python b/macros.python index afe8040..9240d61 100644 --- a/macros.python +++ b/macros.python @@ -18,6 +18,8 @@ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --ski if (string.starts(str, "python2-")) then\ print("Provides: python-");\ print(string.sub(str,9,string.len(str)));\ + print(" = ");\ + print(vr);\ elseif (string.starts(str, "python3-")) then\ --No unversioned provides as python3 is not default\ elseif (string.starts(str, "pypy-")) then\ @@ -28,11 +30,11 @@ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --ski --Providing the current default python\ print("Provides: python2-");\ print(string.sub(str,9,string.len(str)));\ + print(" = ");\ + print(vr);\ else\ print("ERROR: ");\ print(str);\ print("not recognized.");\ end\ - print(" = ");\ - print(vr);\ } diff --git a/python.spec b/python.spec index 017a895..179e126 100644 --- a/python.spec +++ b/python.spec @@ -108,7 +108,7 @@ Summary: An interpreted, interactive, object-oriented programming language Name: %{python} # Remember to also rebase python-docs when changing this: Version: 2.7.10 -Release: 3%{?dist} +Release: 4%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -2156,6 +2156,9 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Mon Jun 29 2015 Thomas Spura - 2.7.10-4 +- correct python_provide macro to include version only when emiting provides + * Thu Jun 25 2015 Thomas Spura - 2.7.10-3 - Add unversioned python-macros from fpc#281 and fpc#534 and require it from python-devel