distro-packages/python-rpm-macros: search spec dir first
--- a/macros.lua 2017-12-07 11:46:04.000000000 -0800
-+++ b/macros.lua 2017-12-08 13:06:57.000000000 -0800
++++ b/macros.lua 2017-12-08 13:18:52.000000000 -0800
-- ...but check that it is actually in the buildset
if insert_last_python then table.insert(pythons, last_python) end
--- break
--- end
--- end
-+ local locations = { rpm.expand("%_sourcedir"), rpm.expand("%_specdir"), posix.getcwd(), posix.getcwd() .. "/" .. name }
++ local locations = { rpm.expand("%_specdir"), rpm.expand("%_sourcedir"), posix.getcwd(), posix.getcwd() .. "/" .. name }
+ for _,loc in ipairs(locations) do
+ local filename = loc .. "/" .. name .. ".spec"
+ if posix.stat(filename, "mode") ~= nil then
