correct python_provide macro to include version only when emiting provides
This commit is contained in:
parent
ab8fbd327d
commit
855b225caa
|
@ -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);\
|
||||
}
|
||||
|
|
|
@ -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 <tomspur@fedoraproject.org> - 2.7.10-4
|
||||
- correct python_provide macro to include version only when emiting provides
|
||||
|
||||
* Thu Jun 25 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-3
|
||||
- Add unversioned python-macros from fpc#281 and fpc#534
|
||||
and require it from python-devel
|
||||
|
|
Loading…
Reference in New Issue