Remove the arched provide from %python_provide macro
The way it fetched the information abut archfulness was not reliable and will stop working entirely. See https://bugzilla.redhat.com/show_bug.cgi?id=1705656
This commit is contained in:
parent
536b2efe4e
commit
04769fa014
2 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,6 @@
|
|||
package = rpm.expand("%{?1}")
|
||||
vr = rpm.expand("%{?epoch:%{epoch}:}%{version}-%{release}")
|
||||
if (string.starts(package, "python2-")) then
|
||||
if (rpm.expand("%{?buildarch}") ~= "noarch") then
|
||||
str = "Provides: python-" .. string.sub(package,9,string.len(package)) .. "%{?_isa} = " .. vr
|
||||
print(rpm.expand(str))
|
||||
end
|
||||
print("\\nProvides: python-")
|
||||
print(string.sub(package,9,string.len(package)))
|
||||
print(" = ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue