|
|
|
@ -1,12 +1,10 @@
|
|
|
|
|
%global major_version 5.4
|
|
|
|
|
# Normally, this is the same as version, but... not always.
|
|
|
|
|
%global test_version 5.4.4
|
|
|
|
|
%global major_version 5.3
|
|
|
|
|
# If you are incrementing major_version, enable bootstrapping and adjust accordingly.
|
|
|
|
|
# Version should be the latest prior build. If you don't do this, RPM will break and
|
|
|
|
|
# everything will grind to a halt.
|
|
|
|
|
%global bootstrap 0
|
|
|
|
|
%global bootstrap_major_version 5.3
|
|
|
|
|
%global bootstrap_version %{bootstrap_major_version}.5
|
|
|
|
|
%global bootstrap_major_version 5.2
|
|
|
|
|
%global bootstrap_version %{bootstrap_major_version}.3
|
|
|
|
|
|
|
|
|
|
# Place rpm-macros into proper location.
|
|
|
|
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
@ -14,8 +12,9 @@
|
|
|
|
|
|
|
|
|
|
Name: lua
|
|
|
|
|
Version: %{major_version}.4
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Summary: Powerful light-weight programming language
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.lua.org/
|
|
|
|
|
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
|
|
|
@ -24,25 +23,31 @@ Source1: mit.txt
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
Source2: http://www.lua.org/ftp/lua-%{bootstrap_version}.tar.gz
|
|
|
|
|
%endif
|
|
|
|
|
Source3: http://www.lua.org/tests/lua-%{test_version}-tests.tar.gz
|
|
|
|
|
Source3: http://www.lua.org/tests/lua-%{version}-tests.tar.gz
|
|
|
|
|
# multilib
|
|
|
|
|
Source4: luaconf.h
|
|
|
|
|
Patch0: %{name}-5.4.0-beta-autotoolize.patch
|
|
|
|
|
# rpm-macro
|
|
|
|
|
Source1000: macros.lua
|
|
|
|
|
Patch0: %{name}-5.3.0-autotoolize.patch
|
|
|
|
|
Patch1: %{name}-5.3.0-idsize.patch
|
|
|
|
|
#Patch2: %%{name}-5.3.0-luac-shared-link-fix.patch
|
|
|
|
|
Patch3: %{name}-5.2.2-configure-linux.patch
|
|
|
|
|
Patch4: %{name}-5.3.0-configure-compat-module.patch
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
Patch5: %{name}-5.3.0-autotoolize.patch
|
|
|
|
|
Patch6: %{name}-5.3.5-luac-shared-link-fix.patch
|
|
|
|
|
Patch5: %{name}-5.2.3-autotoolize.patch
|
|
|
|
|
Patch6: %{name}-5.2.2-idsize.patch
|
|
|
|
|
Patch7: %{name}-5.2.2-luac-shared-link-fix.patch
|
|
|
|
|
Patch8: %{name}-5.2.2-configure-compat-module.patch
|
|
|
|
|
%endif
|
|
|
|
|
# https://www.lua.org/bugs.html
|
|
|
|
|
Patch18: %{name}-5.3.5-CVE-2020-24370.patch
|
|
|
|
|
Patch19: %{name}-5.4.2-CVE-2022-33099.patch
|
|
|
|
|
Patch20: %{name}-5.4-CVE-2022-28805.patch
|
|
|
|
|
Patch9: lua-5.3.4-bug1.patch
|
|
|
|
|
Patch10: lua-5.3.4-bug4.patch
|
|
|
|
|
Patch11: lua-5.3.4-bug5.patch
|
|
|
|
|
Patch12: lua-5.3.4-bug6.patch
|
|
|
|
|
Patch13: lua-5-3.4-upvaluejoin.patch
|
|
|
|
|
Patch14: lua-5.4.1-bug11.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: automake autoconf libtool readline-devel ncurses-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
Requires: lua-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -57,10 +62,8 @@ configuration, scripting, and rapid prototyping.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
# The RPM related dependencies bring nothing to a non-RPM Lua developer
|
|
|
|
|
# But we want them when packages BuildRequire lua-devel
|
|
|
|
|
Requires: (lua-rpm-macros if rpm-build)
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
@ -75,6 +78,7 @@ This package contains the shared libraries for %{name}.
|
|
|
|
|
|
|
|
|
|
%package static
|
|
|
|
|
Summary: Static library for %{name}
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
@ -83,7 +87,7 @@ This package contains the static version of liblua for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%setup -q -a 2 -a 3 -n %{name}-%{version}
|
|
|
|
|
%setup -q -a 2 -a 3
|
|
|
|
|
%else
|
|
|
|
|
%setup -q -a 3
|
|
|
|
|
%endif
|
|
|
|
@ -94,8 +98,12 @@ mv src/luaconf.h src/luaconf.h.template.in
|
|
|
|
|
#%% patch2 -p1 -z .luac-shared
|
|
|
|
|
%patch3 -p1 -z .configure-linux
|
|
|
|
|
%patch4 -p1 -z .configure-compat-all
|
|
|
|
|
%patch19 -p1 -b .CVE-2022-33099
|
|
|
|
|
%patch20 -p1 -b .CVE-2022-28805
|
|
|
|
|
%patch9 -p1 -b .bug1
|
|
|
|
|
%patch10 -p1 -b .bug4
|
|
|
|
|
%patch11 -p1 -b .bug5
|
|
|
|
|
%patch12 -p1 -b .bug6
|
|
|
|
|
%patch13 -p1 -b .upvaluejoin
|
|
|
|
|
%patch14 -p1 -b .bug11
|
|
|
|
|
# Put proper version in configure.ac, patch0 hardcodes 5.3.0
|
|
|
|
|
sed -i 's|5.3.0|%{version}|g' configure.ac
|
|
|
|
|
autoreconf -ifv
|
|
|
|
@ -104,11 +112,10 @@ autoreconf -ifv
|
|
|
|
|
cd lua-%{bootstrap_version}/
|
|
|
|
|
mv src/luaconf.h src/luaconf.h.template.in
|
|
|
|
|
%patch5 -p1 -b .autoxxx
|
|
|
|
|
%patch1 -p1 -b .idsize
|
|
|
|
|
%patch6 -p1 -b .idsize
|
|
|
|
|
%patch7 -p1 -b .luac-shared
|
|
|
|
|
%patch3 -p1 -z .configure-linux
|
|
|
|
|
%patch4 -p1 -z .configure-compat-all
|
|
|
|
|
%patch6 -p1 -b .luac-shared-link-fix
|
|
|
|
|
%patch18 -p1 -b .CVE-2020-24370
|
|
|
|
|
%patch8 -p1 -z .configure-compat-all
|
|
|
|
|
autoreconf -i
|
|
|
|
|
cd ..
|
|
|
|
|
%endif
|
|
|
|
@ -141,7 +148,7 @@ popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
cd ./lua-%{test_version}-tests/
|
|
|
|
|
cd ./lua-%{version}-tests/
|
|
|
|
|
|
|
|
|
|
# Dont skip the fully portable or ram-hungry tests:
|
|
|
|
|
# sed -i.orig -e '
|
|
|
|
@ -181,6 +188,9 @@ rm -rf $RPM_BUILD_ROOT/installdir
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Install rpm-macro
|
|
|
|
|
install -Dpm 0644 %{SOURCE1000} $RPM_BUILD_ROOT/%{macrosdir}/macros.lua
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license mit.txt
|
|
|
|
@ -188,19 +198,20 @@ popd
|
|
|
|
|
%doc README doc/*.html doc/*.css doc/*.gif doc/*.png
|
|
|
|
|
%{_bindir}/lua
|
|
|
|
|
%{_bindir}/luac
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%dir %{_libdir}/lua/%{bootstrap_major_version}
|
|
|
|
|
%dir %{_datadir}/lua/%{bootstrap_major_version}
|
|
|
|
|
%endif
|
|
|
|
|
%{_mandir}/man1/lua*.1*
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%dir %{_libdir}/lua
|
|
|
|
|
%dir %{_libdir}/lua/%{major_version}
|
|
|
|
|
%{_libdir}/liblua-%{major_version}.so
|
|
|
|
|
%dir %{_datadir}/lua
|
|
|
|
|
%dir %{_datadir}/lua/%{major_version}
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{_libdir}/liblua-%{major_version}.so
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%dir %{_libdir}/lua/%{bootstrap_major_version}
|
|
|
|
|
%{_libdir}/liblua-%{bootstrap_major_version}.so
|
|
|
|
|
%dir %{_datadir}/lua/%{bootstrap_major_version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
@ -208,95 +219,18 @@ popd
|
|
|
|
|
%{_includedir}/l*.hpp
|
|
|
|
|
%{_libdir}/liblua.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{macrosdir}/macros.lua
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 17 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-4
|
|
|
|
|
- Disable bootstrap mode forgotten on 5.4 rebase (#2135419)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 03 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-3
|
|
|
|
|
- Apply upstream patch for CVE-2022-28805
|
|
|
|
|
|
|
|
|
|
* Fri Feb 03 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-2
|
|
|
|
|
- Resolves CVE-2021-43519
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2023 Florian Festi <ffesti@redhat.com> - 5.4.4-1
|
|
|
|
|
- Rebase to lua 5.4.4
|
|
|
|
|
- Resolves CVE-2021-44964
|
|
|
|
|
|
|
|
|
|
* Tue Oct 25 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-7
|
|
|
|
|
- Fix up CVE-2022-33099 patch
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-6
|
|
|
|
|
- Enable gating
|
|
|
|
|
|
|
|
|
|
* Mon Oct 17 2022 Michal Domonkos <mdomonko@redhat.com> - 5.4.2-5
|
|
|
|
|
- apply upstream fix for CVE-2022-33099
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.4.2-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.4.2-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Dec 3 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.2-1
|
|
|
|
|
- update to 5.4.2
|
|
|
|
|
|
|
|
|
|
* Mon Oct 12 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.1-1
|
|
|
|
|
- update to 5.4.1
|
|
|
|
|
|
|
|
|
|
* Wed Sep 2 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.0-8
|
|
|
|
|
- apply upstream fix for CVE-2020-24342
|
|
|
|
|
|
|
|
|
|
* Mon Aug 31 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.4.0-7
|
|
|
|
|
- Refactor macros into lua-rpm-macros
|
|
|
|
|
|
|
|
|
|
* Wed Aug 19 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.0-6
|
|
|
|
|
- apply upstream fix for CVE-2020-24370, CVE-2020-24371
|
|
|
|
|
|
|
|
|
|
* Wed Aug 19 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.0-5
|
|
|
|
|
- apply upstream fix for CVE-2020-24369
|
|
|
|
|
|
|
|
|
|
* Fri Jul 31 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.0-4
|
|
|
|
|
- apply upstream fix for CVE-2020-15889
|
|
|
|
|
- apply upstream fix for CVE-2020-15945
|
|
|
|
|
- apply upstream fixes for "known bugs"
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 30 2020 Miro Hrončok <mhroncok@redhat.com> - 5.4.0-2
|
|
|
|
|
- Add lua(abi) requirements generator (requires RPM 4.16+)
|
|
|
|
|
|
|
|
|
|
* Mon Jun 29 2020 Tom Callaway <spot@fedoraproject.org> - 5.4.0-1
|
|
|
|
|
- update to 5.4.0
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.5-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.5-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.3.5-5
|
|
|
|
|
- Rebuild for readline 8.0
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 28 2019 Tom Callaway <spot@fedoraproject.org> - 5.3.5-3
|
|
|
|
|
- apply fix for CVE-2019-6706 (bz1670020)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 02 2019 Florian Festi <ffesti@redhat.com> - 5.3.4-12
|
|
|
|
|
- Fix segfault in getlocal and setlocal (#1880445)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 10 2018 Tom Callaway <spot@fedoraproject.org> - 5.3.5-1
|
|
|
|
|
- update to 5.3.5
|
|
|
|
|
* Mon Jun 03 2019 Florian Festi <ffesti@redhat.com> - 5.3.4-11
|
|
|
|
|
- Fix use after free in lua_upvaluejoin (#1670167)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 13 2018 Tom Callaway <spot@fedoraproject.org> - 5.3.4-10
|
|
|
|
|
- move lua(abi) provide to -libs
|
|
|
|
|