Don’t set locate permanently in %lua_requires

Resolves: #2263837

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2024-02-12 12:29:51 +01:00
parent 9517333a2b
commit 8ba1010b91
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@
Name: lua-rpm-macros
Version: 1
Release: 11%{?dist}
Release: 12%{?dist}
Summary: The common Lua RPM macros
License: MIT
@ -94,6 +94,9 @@ install -Dpm 0644 lua.attr %{buildroot}/%{_fileattrsdir}/lua.attr
%changelog
* Mon Feb 12 2024 Nils Philippsen <nils@redhat.com> - 1-12
- Dont set locale permanently in %%lua_requires (#2263837)
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

View File

@ -5,6 +5,6 @@
Requires: lua(abi) = %{lua_version} \
%else \
Requires: lua >= %{lua_version} \
Requires: lua < %{lua: os.setlocale('C'); print(string.sub(_VERSION, 5) + 0.1)} \
Requires: lua < %{lua: locale=os.setlocale(nil); os.setlocale('C.utf8'); print(string.sub(_VERSION, 5) + 0.1; os.setlocale(locale))} \
%endif \
%{nil}