rename binaries to fix conflicts with current version [release 5.2.4-5mamba;Thu Jan 10 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 06:31:43 +01:00
parent 0f56ef3a9f
commit 3b4d065598

View File

@ -3,7 +3,7 @@
Name: lua52
Version: 5.2.4
Release: 4mamba
Release: 5mamba
Summary: A powerful light-weight and embeddable programming language
Group: Applications/Development
Vendor: openmamba
@ -64,6 +64,7 @@ This package contains static libraries and header files need for development.
%prep
%setup -q -n lua-%{version}
%define _default_patch_fuzz 2
%patch0 -p1 -b .dynlib
#%patch1 -p1 -b .luapc
%patch2 -p1
@ -109,6 +110,11 @@ _EOF
rm -f %{buildroot}%{_libdir}/liblua.a
rm -f %{buildroot}%{_libdir}/liblua.so
for f in lua luac; do
mv %{buildroot}%{_bindir}/$f %{buildroot}%{_bindir}/${f}-5.2
mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/${f}-5.2.1
done
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
@ -117,12 +123,12 @@ rm -f %{buildroot}%{_libdir}/liblua.so
%files
%defattr(-,root,root)
%{_bindir}/lua
%{_bindir}/luac
%{_bindir}/lua-5.2
%{_bindir}/luac-5.2
%dir %{_datadir}/lua
#%{_datadir}/lua/*.lua
%{_mandir}/man1/lua.*
%{_mandir}/man1/luac.*
%{_mandir}/man1/lua-5.2.*
%{_mandir}/man1/luac-5.2.*
%files -n %{libname}
%defattr(-,root,root)
@ -139,6 +145,9 @@ rm -f %{buildroot}%{_libdir}/liblua.so
%doc README doc/*.html doc/*.css doc/*.gif doc/*.png
%changelog
* Thu Jan 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.4-5mamba
- rename binaries to fix conflicts with current version
* Sat Mar 19 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.4-4mamba
- lua52-devel: don't provide and obsolete lua-devel