From 97587ff474e6f7e6c3daa7610df4430056cd2f8ca39d919ffa7f92921a014624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 10 Jul 2017 14:03:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua53?expand=0&rev=11 --- lua53.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua53.spec b/lua53.spec index 6f4f368..de8e308 100644 --- a/lua53.spec +++ b/lua53.spec @@ -30,9 +30,9 @@ Source99: baselibs.conf # PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE Patch0: lua-build-system.patch BuildRequires: libtool +BuildRequires: lua-macros BuildRequires: pkgconfig BuildRequires: readline-devel -BuildRequires: lua-macros Provides: lua = %{version} Provides: Lua(API) = %{major_version} @@ -105,8 +105,8 @@ of C functions, written in ANSI C. %autopatch -p1 # manpage -cat doc/lua.1 | sed 's/TH LUA 1/TH LUA5.3 1/' > doc/lua5.3.1 -cat doc/luac.1 | sed 's/TH LUAC 1/TH LUAC5.3 1/' > doc/luac5.3.1 +cat doc/lua.1 | sed 's/TH LUA 1/TH LUA%{major_version} 1/' > doc/lua%{major_version}.1 +cat doc/luac.1 | sed 's/TH LUAC 1/TH LUAC%{major_version} 1/' > doc/luac%{major_version}.1 %build sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h @@ -160,7 +160,6 @@ ln -sf %{_sysconfdir}/alternatives/liblua.so %{buildroot}%{_libdir}/liblua.so touch %{buildroot}%{_sysconfdir}/alternatives/lua.pc ln -sf %{_sysconfdir}/alternatives/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc - %check cd src LD_LIBRARY_PATH=`pwd` ./lua%{major_version} -e 'print(0)' > /dev/null