Define %forgesetupargs in %pypi_source so users can call %forgeautosetup
or %forgesetup and not have to define extra vars or pass -n to %setup.
This commit is contained in:
parent
b8b5cb92da
commit
66a9033eb4
|
@ -186,7 +186,15 @@
|
||||||
\
|
\
|
||||||
local first = string.sub(src, 1, 1)
|
local first = string.sub(src, 1, 1)
|
||||||
\
|
\
|
||||||
print(url .. first .. '/' .. src .. '/' .. src .. '-' .. ver .. '.' .. ext)
|
local archivename = src .. '-' .. ver
|
||||||
|
print(url .. first .. '/' .. src .. '/' .. archivename .. '.' .. ext)
|
||||||
|
\
|
||||||
|
-- Plug into the forge macros so users can run %forgesetup or %forgeautosetup
|
||||||
|
-- and not have to specify -n to %setup / %autosetup
|
||||||
|
-- and potentially define extra vars
|
||||||
|
local fedora = require "fedora.common"
|
||||||
|
fedora.safeset("forgesetupargs0", '-n ' .. archivename, true)
|
||||||
|
fedora.safeset("forgesetupargs", '-n ' .. archivename, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
%py_provides() %{lua:
|
%py_provides() %{lua:
|
||||||
|
|
|
@ -49,7 +49,7 @@ elseif posix.stat('macros.python-srpm') then
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
Version: %{__default_python3_version}
|
Version: %{__default_python3_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
@ -151,6 +151,10 @@ grep -E '^#[^%%]*%%[^%%]' %{buildroot}%{rpmmacrodir}/macros.* && exit 1 || true
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jun 26 2022 Maxwell G <gotmax@e.email> - 3.11-2
|
||||||
|
- Define %%forgesetupargs in %%pypi_source so users can call %%forgeautosetup
|
||||||
|
or %%forgesetup and not have to define extra vars or pass -n to %setup.
|
||||||
|
|
||||||
* Mon Jun 13 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11-1
|
* Mon Jun 13 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11-1
|
||||||
- Update main Python to Python 3.11
|
- Update main Python to Python 3.11
|
||||||
- https://fedoraproject.org/wiki/Changes/Python3.11
|
- https://fedoraproject.org/wiki/Changes/Python3.11
|
||||||
|
|
Loading…
Reference in New Issue