forked from pool/lua54
Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=83
This commit is contained in:
parent
0fa24a50be
commit
f47f672f23
23
lua54.spec
23
lua54.spec
@ -25,7 +25,6 @@
|
||||
%endif
|
||||
%define major_version 5.4
|
||||
%define libname liblua5_4-6
|
||||
|
||||
Name: lua54%{name_ext}
|
||||
Version: 5.4.6
|
||||
Release: 0
|
||||
@ -44,6 +43,11 @@ Patch1: attrib_test.patch
|
||||
Patch2: files_test.patch
|
||||
Patch3: main_test.patch
|
||||
Patch6: shared_link.patch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Provides: lua = %{version}
|
||||
Obsoletes: lua < %{version}
|
||||
Provides: Lua(API) = %{major_version}
|
||||
%if "%{flavor}" == "test"
|
||||
BuildRequires: lua54
|
||||
%else
|
||||
@ -52,11 +56,6 @@ BuildRequires: lua-macros
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: readline-devel
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Provides: lua = %{version}
|
||||
Obsoletes: lua < %{version}
|
||||
Provides: Lua(API) = %{major_version}
|
||||
|
||||
%description
|
||||
Lua is a programming language originally designed for extending
|
||||
@ -95,16 +94,16 @@ application.
|
||||
Summary: The Lua integration library
|
||||
License: MIT
|
||||
Group: System/Libraries
|
||||
Provides: liblua5_4 = %{version}-%{release}
|
||||
Obsoletes: liblua5_4 < %{version}-%{release}
|
||||
Provides: %{name}-libs = %{version}
|
||||
Obsoletes: %{name}-libs < %{version}
|
||||
# Compat as libtool changes the soname
|
||||
%ifarch aarch64 x86_64 ppc64 ppc64le s390x riscv64
|
||||
Provides: liblua.so.5.4()(64bit)
|
||||
%else
|
||||
Provides: liblua.so.5.4
|
||||
%endif
|
||||
Provides: liblua5_4 = %{version}-%{release}
|
||||
Obsoletes: liblua5_4 < %{version}-%{release}
|
||||
Provides: %{name}-libs = %{version}
|
||||
Obsoletes: %{name}-libs < %{version}
|
||||
|
||||
%description -n %{libname}
|
||||
Lua is a programming language originally designed for extending
|
||||
@ -151,7 +150,7 @@ cat doc/luac.1 | sed 's/TH LUAC 1/TH LUAC%{major_version} 1/' > doc/luac%{major_
|
||||
|
||||
%build
|
||||
sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h
|
||||
make linux-readline %{_smp_mflags} VERBOSE=1 -C src \
|
||||
%make_build linux-readline -C src \
|
||||
CC="cc" LIBDIR="%{_libdir}" \
|
||||
MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_COMPAT_MODULE" \
|
||||
V=%{major_version} \
|
||||
@ -209,8 +208,6 @@ cd testes
|
||||
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
||||
%endif
|
||||
|
||||
%clean
|
||||
|
||||
%if "%{flavor}" != "test"
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
Loading…
Reference in New Issue
Block a user