forked from pool/lua53
don't require lua-interpreter when not using libalternatives
This commit is contained in:
13
lua53.spec
13
lua53.spec
@@ -30,7 +30,7 @@ Summary: Small Embeddable Language with Procedural Syntax
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: https://www.lua.org
|
||||
Source: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
||||
Source: https://www.lua.org/ftp/lua-%{version}.tar.gz
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE
|
||||
Patch0: lua-build-system.patch
|
||||
@@ -43,15 +43,15 @@ BuildRequires: libtool
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: lua-interpreter
|
||||
Requires: lua-interpreter
|
||||
Conflicts: lua
|
||||
Provides: lua = %{version}
|
||||
Obsoletes: lua < %{version}
|
||||
Provides: Lua(API) = %{major_version}
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
BuildRequires: lua-interpreter
|
||||
Requires: alts
|
||||
Requires: lua-interpreter
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
@@ -166,13 +166,13 @@ includedir=%{_includedir}/lua%{major_version}
|
||||
INSTALL_LMOD=%{_datadir}/lua/%{major_version}
|
||||
INSTALL_CMOD=%{_libdir}/lua/%{major_version}
|
||||
|
||||
Name: Lua %{major_version}
|
||||
Name: Lua %{major_version}
|
||||
Description: An Extensible Extension Language
|
||||
Version: %{version}
|
||||
Version: %{version}
|
||||
Libs: -llua%{major_version} -lm
|
||||
Cflags: -I\${includedir}
|
||||
EOF
|
||||
install -D -m 644 lua%{major_version}.pc %{buildroot}/%{_libdir}/pkgconfig/lua%{major_version}.pc
|
||||
install -D -m 644 lua%{major_version}.pc %{buildroot}%{_libdir}/pkgconfig/lua%{major_version}.pc
|
||||
|
||||
%if %{with libalternatives}
|
||||
# alternatives - create configuration file
|
||||
@@ -198,6 +198,7 @@ done
|
||||
%endif
|
||||
|
||||
# Compat link with older unprefixed library and with soname 0 from deb/etc
|
||||
chmod +x %{buildroot}%{_libdir}/*
|
||||
ln -s %{_libdir}/liblua%{major_version}.so.%{major_version}.0 %{buildroot}%{_libdir}/liblua%{major_version}.so.%{major_version}
|
||||
ln -s %{_libdir}/liblua%{major_version}.so.%{major_version}.0 %{buildroot}%{_libdir}/liblua%{major_version}.so.0
|
||||
ln -s %{_libdir}/liblua%{major_version}.so.%{major_version}.0 %{buildroot}%{_libdir}/liblua.so.%{major_version}
|
||||
|
Reference in New Issue
Block a user