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
|
%endif
|
||||||
%define major_version 5.4
|
%define major_version 5.4
|
||||||
%define libname liblua5_4-6
|
%define libname liblua5_4-6
|
||||||
|
|
||||||
Name: lua54%{name_ext}
|
Name: lua54%{name_ext}
|
||||||
Version: 5.4.6
|
Version: 5.4.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -44,6 +43,11 @@ Patch1: attrib_test.patch
|
|||||||
Patch2: files_test.patch
|
Patch2: files_test.patch
|
||||||
Patch3: main_test.patch
|
Patch3: main_test.patch
|
||||||
Patch6: shared_link.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"
|
%if "%{flavor}" == "test"
|
||||||
BuildRequires: lua54
|
BuildRequires: lua54
|
||||||
%else
|
%else
|
||||||
@ -52,11 +56,6 @@ BuildRequires: lua-macros
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
Provides: lua = %{version}
|
|
||||||
Obsoletes: lua < %{version}
|
|
||||||
Provides: Lua(API) = %{major_version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Lua is a programming language originally designed for extending
|
Lua is a programming language originally designed for extending
|
||||||
@ -95,16 +94,16 @@ application.
|
|||||||
Summary: The Lua integration library
|
Summary: The Lua integration library
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System/Libraries
|
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
|
# Compat as libtool changes the soname
|
||||||
%ifarch aarch64 x86_64 ppc64 ppc64le s390x riscv64
|
%ifarch aarch64 x86_64 ppc64 ppc64le s390x riscv64
|
||||||
Provides: liblua.so.5.4()(64bit)
|
Provides: liblua.so.5.4()(64bit)
|
||||||
%else
|
%else
|
||||||
Provides: liblua.so.5.4
|
Provides: liblua.so.5.4
|
||||||
%endif
|
%endif
|
||||||
Provides: liblua5_4 = %{version}-%{release}
|
|
||||||
Obsoletes: liblua5_4 < %{version}-%{release}
|
|
||||||
Provides: %{name}-libs = %{version}
|
|
||||||
Obsoletes: %{name}-libs < %{version}
|
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
Lua is a programming language originally designed for extending
|
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
|
%build
|
||||||
sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h
|
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}" \
|
CC="cc" LIBDIR="%{_libdir}" \
|
||||||
MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_COMPAT_MODULE" \
|
MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_COMPAT_MODULE" \
|
||||||
V=%{major_version} \
|
V=%{major_version} \
|
||||||
@ -209,8 +208,6 @@ cd testes
|
|||||||
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
|
||||||
|
|
||||||
%if "%{flavor}" != "test"
|
%if "%{flavor}" != "test"
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user