diff --git a/python-rpm-generators.spec b/python-rpm-generators.spec index 159176c..e446519 100644 --- a/python-rpm-generators.spec +++ b/python-rpm-generators.spec @@ -1,7 +1,7 @@ Name: python-rpm-generators Summary: Dependency generators for Python RPMs Version: 11 -Release: 3%{?dist} +Release: 4%{?dist} # Originally all those files were part of RPM, so license is kept here License: GPLv2+ @@ -45,6 +45,9 @@ install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} pythondistdeps.py %{_rpmconfigdir}/pythondistdeps.py %changelog +* Tue Apr 28 2020 Miro HronĨok - 11-4 +- Don't define global Lua variables from Python generator + * Mon Apr 20 2020 Gordon Messmer - 11-3 - Handle all-zero versions without crashing diff --git a/python.attr b/python.attr index 5a6be24..4000019 100644 --- a/python.attr +++ b/python.attr @@ -6,7 +6,7 @@ -- (Don't match against -config tools e.g. /usr/bin/python2.6-config) local path = rpm.expand('%1') if path:match('/usr/bin/python%d+%.%d+$') then - provides = path:gsub('.*/usr/bin/python(%d+%.%d+)', 'python(abi) = %1') + local provides = path:gsub('.*/usr/bin/python(%d+%.%d+)', 'python(abi) = %1') print(provides) end } @@ -19,7 +19,7 @@ -- python(abi) = MAJOR.MINOR local path = rpm.expand('%1') if path:match('/usr/lib%d*/python%d+%.%d+/.*') then - requires = path:gsub('.*/usr/lib%d*/python(%d+%.%d+)/.*', 'python(abi) = %1') + local requires = path:gsub('.*/usr/lib%d*/python(%d+%.%d+)/.*', 'python(abi) = %1') print(requires) end }