Do not generate useless Obsoletes with %{?_isa}
This commit is contained in:
parent
c30072e570
commit
81fee785df
@ -25,10 +25,6 @@ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --ski
|
|||||||
print(" = ");\
|
print(" = ");\
|
||||||
print(vr);\
|
print(vr);\
|
||||||
--Obsoleting the previous default python package\
|
--Obsoleting the previous default python package\
|
||||||
if (rpm.expand("%{?buildarch}") ~= "noarch") then\
|
|
||||||
str = "\\nObsoletes: python-" .. string.sub(package,9,string.len(package)) .. "%{?_isa} < " .. vr;\
|
|
||||||
print(rpm.expand(str));\
|
|
||||||
end\
|
|
||||||
print("\\nObsoletes: python-");\
|
print("\\nObsoletes: python-");\
|
||||||
print(string.sub(package,9,string.len(package)));\
|
print(string.sub(package,9,string.len(package)));\
|
||||||
print(" < ");\
|
print(" < ");\
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: python-rpm-macros
|
Name: python-rpm-macros
|
||||||
Version: 3
|
Version: 3
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: The unversioned Python RPM macros
|
Summary: The unversioned Python RPM macros
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -69,6 +69,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> 3-10
|
||||||
|
- Do not generate useless Obsoletes with %%{?_isa}
|
||||||
|
|
||||||
* Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9
|
* Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9
|
||||||
- Make python-rpm-macros require python-srpm-macros (bug #1335860)
|
- Make python-rpm-macros require python-srpm-macros (bug #1335860)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user