Do not generate useless Obsoletes with %{?_isa}
This commit is contained in:
parent
c30072e570
commit
81fee785df
2 changed files with 4 additions and 5 deletions
|
|
@ -25,10 +25,6 @@ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --ski
|
|||
print(" = ");\
|
||||
print(vr);\
|
||||
--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(string.sub(package,9,string.len(package)));\
|
||||
print(" < ");\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue