101692ba47
This file is currently shipped via the binary redhat-rpm-config package itself, so we need an explicit Conflicts to avoid broken upgrades, as well as actually remove the file from the next redhat-rpm-config build, which we'll also do.
22 lines
505 B
Plaintext
22 lines
505 B
Plaintext
%__kmod_path ^/lib/modules/.*/(modules.builtin|.*ko)
|
|
%__kmod_provides() %{lua:
|
|
function basename(fn)
|
|
return string.gsub(fn, "(.*/)(.*)", "%2")
|
|
end
|
|
function printdep(mod)
|
|
print("kmod("..mod..")")
|
|
end
|
|
local fn = rpm.expand("%{1}")
|
|
local bn = basename(fn)
|
|
if bn == "modules.builtin" then
|
|
for l in io.lines(fn) do
|
|
printdep(basename(l))
|
|
end
|
|
else
|
|
local mod = string.match(bn, "%g+.ko")
|
|
if mod then
|
|
printdep(mod)
|
|
end
|
|
end
|
|
}
|