diff --git a/lua52.spec b/lua52.spec index 6bba115..36344b0 100644 --- a/lua52.spec +++ b/lua52.spec @@ -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 5.2.4-5mamba +- rename binaries to fix conflicts with current version + * Sat Mar 19 2016 Silvan Calarco 5.2.4-4mamba - lua52-devel: don't provide and obsolete lua-devel