2012-01-07 14:58:03 +00:00
|
|
|
|
#
|
|
|
|
|
|
# spec file for package lua51
|
|
|
|
|
|
#
|
2019-08-02 08:15:14 +00:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-07 14:58:03 +00:00
|
|
|
|
#
|
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
2019-08-02 08:15:14 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-07 14:58:03 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-05 05:48:20 +00:00
|
|
|
|
%define major_version 5.1
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%define libname liblua5_1-5
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
|
%else
|
|
|
|
|
|
%bcond_with libalternatives
|
|
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
Name: lua51
|
2012-09-17 11:58:35 +00:00
|
|
|
|
Version: 5.1.5
|
2012-02-16 15:19:31 +00:00
|
|
|
|
Release: 0
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Summary: Small Embeddable Language with Procedural Syntax
|
2012-02-16 15:19:31 +00:00
|
|
|
|
License: MIT
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Group: Development/Languages/Other
|
2025-08-03 11:35:47 +00:00
|
|
|
|
URL: https://www.lua.org
|
|
|
|
|
|
Source0: https://www.lua.org/ftp/lua-%{version}.tar.gz
|
|
|
|
|
|
Source1: https://www.lua.org/tests/lua%{major_version}-tests.tar.gz
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Source99: baselibs.conf
|
|
|
|
|
|
# PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE
|
|
|
|
|
|
Patch0: lua-build-system.patch
|
2025-08-03 11:35:47 +00:00
|
|
|
|
# Yes, Lua is from Brasil, we need pt_BR locale
|
|
|
|
|
|
BuildRequires: glibc-locale
|
2017-07-10 14:30:32 +00:00
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
BuildRequires: lua-macros
|
|
|
|
|
|
BuildRequires: pkgconfig
|
2015-09-05 05:48:20 +00:00
|
|
|
|
BuildRequires: readline-devel
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Provides: lua = %{version}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
Obsoletes: lua < %{version}
|
2015-09-05 05:48:20 +00:00
|
|
|
|
Provides: Lua(API) = %{major_version}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%if %{with libalternatives}
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
|
|
BuildRequires: lua-interpreter
|
|
|
|
|
|
Requires: alts
|
|
|
|
|
|
Requires: lua-interpreter
|
|
|
|
|
|
%else
|
|
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
Lua is a programming language originally designed for extending
|
2017-07-10 14:30:32 +00:00
|
|
|
|
applications, but is also frequently used as a general-purpose,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
stand-alone language.
|
|
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Lua combines procedural syntax (similar to Pascal) with
|
2012-01-07 14:58:03 +00:00
|
|
|
|
data description constructs based on associative arrays and extensible
|
|
|
|
|
|
semantics. Lua is dynamically typed, interpreted from byte codes, and
|
2017-07-10 14:30:32 +00:00
|
|
|
|
has automatic memory management, making it suitable for configuration,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
scripting, and rapid prototyping. Lua is implemented as a small library
|
2017-07-10 14:30:32 +00:00
|
|
|
|
of C functions, written in ANSI C.
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
Summary: Development files for lua
|
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Requires: %{libname} = %{version}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
Requires: %{name} = %{version}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Requires: lua-macros
|
2025-08-03 11:35:47 +00:00
|
|
|
|
Conflicts: lua-devel
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Provides: lua-devel = %{version}
|
2015-09-05 05:48:20 +00:00
|
|
|
|
Provides: Lua(devel) = %{major_version}
|
2017-07-25 10:03:56 +00:00
|
|
|
|
Provides: pkgconfig(lua) = %{version}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
Lua is a programming language originally designed for extending
|
2017-07-10 14:30:32 +00:00
|
|
|
|
applications, but is also frequently used as a general-purpose,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
stand-alone language.
|
|
|
|
|
|
|
|
|
|
|
|
This package contains files needed for embedding lua into your
|
|
|
|
|
|
application.
|
|
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%package -n %{libname}
|
2015-08-05 19:58:57 +00:00
|
|
|
|
Summary: The Lua integration library
|
2025-08-03 11:35:47 +00:00
|
|
|
|
# Compat as libtool changes the soname
|
2012-01-07 14:58:03 +00:00
|
|
|
|
Group: System/Libraries
|
2017-07-13 14:51:32 +00:00
|
|
|
|
Provides: liblua5_1 = %{version}-%{release}
|
|
|
|
|
|
Obsoletes: liblua5_1 < %{version}-%{release}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
Provides: %{name}-libs = %{version}
|
|
|
|
|
|
Obsoletes: %{name}-libs < %{version}
|
|
|
|
|
|
%ifarch aarch64 x86_64 ppc64 ppc64le s390x riscv64
|
|
|
|
|
|
Provides: liblua.so.5.1()(64bit)
|
|
|
|
|
|
%else
|
|
|
|
|
|
Provides: liblua.so.5.1
|
|
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%description -n %{libname}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
Lua is a programming language originally designed for extending
|
2017-07-10 14:30:32 +00:00
|
|
|
|
applications, but is also frequently used as a general-purpose,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
stand-alone language.
|
|
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Lua combines procedural syntax (similar to Pascal) with
|
2012-01-07 14:58:03 +00:00
|
|
|
|
data description constructs based on associative arrays and extensible
|
|
|
|
|
|
semantics. Lua is dynamically typed, interpreted from byte codes, and
|
2017-07-10 14:30:32 +00:00
|
|
|
|
has automatic memory management, making it suitable for configuration,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
scripting, and rapid prototyping. Lua is implemented as a small library
|
2017-07-10 14:30:32 +00:00
|
|
|
|
of C functions, written in ANSI C.
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%package doc
|
2015-08-05 19:58:57 +00:00
|
|
|
|
Summary: Documentation for Lua, a small embeddable language
|
|
|
|
|
|
Group: Documentation/HTML
|
2012-01-07 14:58:03 +00:00
|
|
|
|
BuildArch: noarch
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%if 0%{?suse_version} > 1315
|
|
|
|
|
|
Supplements: (lua51 and patterns-base-documentation)
|
|
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
|
Lua is a programming language originally designed for extending
|
2017-07-10 14:30:32 +00:00
|
|
|
|
applications, but is also frequently used as a general-purpose,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
stand-alone language.
|
|
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Lua combines procedural syntax (similar to Pascal) with
|
2012-01-07 14:58:03 +00:00
|
|
|
|
data description constructs based on associative arrays and extensible
|
|
|
|
|
|
semantics. Lua is dynamically typed, interpreted from byte codes, and
|
2017-07-10 14:30:32 +00:00
|
|
|
|
has automatic memory management, making it suitable for configuration,
|
2012-01-07 14:58:03 +00:00
|
|
|
|
scripting, and rapid prototyping. Lua is implemented as a small library
|
2017-07-10 14:30:32 +00:00
|
|
|
|
of C functions, written in ANSI C.
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%setup -q -n lua-%{version} -a1
|
|
|
|
|
|
mv lua%{major_version}-tests testes
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
|
|
# manpage
|
|
|
|
|
|
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
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%global _lto_cflags %{nil}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%make_build all -C src \
|
2017-07-10 14:30:32 +00:00
|
|
|
|
CC="cc" \
|
|
|
|
|
|
MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_USE_LINUX -DLUA_COMPAT_MODULE" \
|
|
|
|
|
|
MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" \
|
|
|
|
|
|
V=%{major_version} \
|
2025-08-03 11:35:47 +00:00
|
|
|
|
LIBTOOL="libtool --quiet"
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%make_install \
|
|
|
|
|
|
LIBTOOL="libtool --quiet" \
|
2017-07-10 14:30:32 +00:00
|
|
|
|
V=%{major_version} \
|
|
|
|
|
|
INSTALL_TOP="%{buildroot}%{_prefix}" \
|
2025-08-03 11:35:47 +00:00
|
|
|
|
INSTALL_LIB="%{buildroot}%{_libdir}" \
|
|
|
|
|
|
INSTALL_MAN="%{buildroot}%{_mandir}/man1"
|
2017-07-10 14:30:32 +00:00
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
|
|
|
|
# create pkg-config file
|
|
|
|
|
|
cat > lua%{major_version}.pc <<-EOF
|
|
|
|
|
|
prefix=%{_prefix}
|
|
|
|
|
|
exec_prefix=%{_prefix}
|
|
|
|
|
|
libdir=%{_libdir}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
includedir=%{_includedir}/lua%{major_version}
|
2017-07-24 12:14:44 +00:00
|
|
|
|
INSTALL_LMOD=%{_datadir}/lua/%{major_version}
|
|
|
|
|
|
INSTALL_CMOD=%{_libdir}/lua/%{major_version}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
|
2025-08-03 11:35:47 +00:00
|
|
|
|
Name: Lua %{major_version}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Description: An Extensible Extension Language
|
2025-08-03 11:35:47 +00:00
|
|
|
|
Version: %{version}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
Libs: -llua%{major_version} -lm
|
2017-07-20 12:39:21 +00:00
|
|
|
|
Cflags: -I\${includedir}
|
2017-07-10 14:30:32 +00:00
|
|
|
|
EOF
|
2025-08-03 11:35:47 +00:00
|
|
|
|
install -D -m 644 lua%{major_version}.pc %{buildroot}%{_libdir}/pkgconfig/lua%{major_version}.pc
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with libalternatives}
|
|
|
|
|
|
# alternatives - create configuration file
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/lua
|
|
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/lua/51.conf <<EOF
|
|
|
|
|
|
binary=%{_bindir}/lua5.1
|
|
|
|
|
|
man=lua5.1
|
|
|
|
|
|
EOF
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/luac
|
|
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/luac/51.conf <<EOF
|
|
|
|
|
|
binary=%{_bindir}/luac5.1
|
|
|
|
|
|
man=luac5.1
|
|
|
|
|
|
EOF
|
|
|
|
|
|
%else
|
2014-09-12 09:17:52 +00:00
|
|
|
|
# update-alternatives
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
2012-01-07 14:58:03 +00:00
|
|
|
|
for file in lua luac ; do
|
2014-09-12 09:17:52 +00:00
|
|
|
|
touch "%{buildroot}%{_sysconfdir}/alternatives/${file}"
|
|
|
|
|
|
ln -sf "%{_sysconfdir}/alternatives/${file}" "%{buildroot}%{_bindir}/${file}"
|
2017-07-10 14:30:32 +00:00
|
|
|
|
touch "%{buildroot}%{_sysconfdir}/alternatives/${file}.1%{ext_man}"
|
|
|
|
|
|
ln -sf "%{_sysconfdir}/alternatives/${file}.1%{ext_man}" "%{buildroot}%{_mandir}/man1/${file}.1%{ext_man}"
|
2012-01-07 14:58:03 +00:00
|
|
|
|
done
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
# Compat link with older unprefixed library and with soname 0 from deb/etc
|
2025-08-03 11:35:47 +00:00
|
|
|
|
chmod +x %{buildroot}%{_libdir}/*
|
2017-07-10 14:30:32 +00:00
|
|
|
|
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}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
|
|
|
|
|
|
# We don’t create alternatives for -devel content, just conflict those
|
|
|
|
|
|
ln -s %{_libdir}/liblua%{major_version}.so %{buildroot}%{_libdir}/liblua.so
|
|
|
|
|
|
ln -s %{_libdir}/pkgconfig/lua%{major_version}.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc
|
2017-07-10 14:30:32 +00:00
|
|
|
|
|
|
|
|
|
|
%check
|
2025-08-03 11:35:47 +00:00
|
|
|
|
# WARNING: this whole check section is incredibly interdependent and brittle, don't change anything
|
|
|
|
|
|
# unless you really thought through what you would be doing.
|
|
|
|
|
|
# The distributed binary of the Lua interpreter is (correctly) build without LUA_USE_APICHECK option,
|
|
|
|
|
|
# we have to build a special interpreter just for the testing.
|
|
|
|
|
|
mkdir -p build-test
|
|
|
|
|
|
cp -r src build-test/
|
|
|
|
|
|
cp Makefile build-test/
|
|
|
|
|
|
pushd build-test
|
|
|
|
|
|
%make_build clean -C src
|
|
|
|
|
|
%make_build all -C src \
|
|
|
|
|
|
CC="cc" \
|
|
|
|
|
|
MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_USE_LINUX -DLUA_COMPAT_MODULE -DLUA_USE_APICHECK" \
|
|
|
|
|
|
MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" \
|
|
|
|
|
|
V=%{major_version} \
|
|
|
|
|
|
LIBTOOL="libtool --quiet"
|
|
|
|
|
|
popd
|
|
|
|
|
|
cd testes
|
|
|
|
|
|
pushd libs
|
|
|
|
|
|
%make_build all CFLAGS="-fPIC -std=gnu99 -D_GNU_SOURCE -I../../build-test/src"
|
|
|
|
|
|
cp -- *.so ..
|
|
|
|
|
|
popd
|
|
|
|
|
|
# Yes, Lua is from Brasil
|
|
|
|
|
|
export LANG=pt_BR.utf8
|
|
|
|
|
|
export LD_LIBRARY_PATH=../build-test/src/.libs
|
|
|
|
|
|
# I haven't found a way how to run FULL all.lua test suite, so we are just running
|
|
|
|
|
|
# what we can for checking the sanity of the build.
|
|
|
|
|
|
for testFile in api.lua attrib.lua calls.lua closure.lua \
|
|
|
|
|
|
code.lua constructs.lua db.lua errors.lua events.lua files.lua \
|
|
|
|
|
|
gc.lua checktable.lua literals.lua locals.lua math.lua nextvar.lua \
|
|
|
|
|
|
pm.lua sort.lua strings.lua vararg.lua verybig.lua
|
|
|
|
|
|
do
|
|
|
|
|
|
../build-test/src/.libs/lua%{major_version} $testFile
|
|
|
|
|
|
done
|
2017-07-10 14:30:32 +00:00
|
|
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%if %{without libalternatives}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
%post
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%{_sbindir}/update-alternatives --install \
|
2017-07-10 16:39:10 +00:00
|
|
|
|
%{_bindir}/lua lua %{_bindir}/lua%{major_version} 51 \
|
2012-01-07 14:58:03 +00:00
|
|
|
|
--slave %{_bindir}/luac luac %{_bindir}/luac%{major_version} \
|
2017-07-10 14:30:32 +00:00
|
|
|
|
--slave %{_mandir}/man1/lua.1%{ext_man} lua.1%{ext_man} %{_mandir}/man1/lua%{major_version}.1%{ext_man} \
|
|
|
|
|
|
--slave %{_mandir}/man1/luac.1%{ext_man} luac.1%{ext_man} %{_mandir}/man1/luac%{major_version}.1%{ext_man}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%postun
|
2012-01-07 14:58:03 +00:00
|
|
|
|
if [ "$1" = 0 ] ; then
|
2015-09-05 05:48:20 +00:00
|
|
|
|
%{_sbindir}/update-alternatives --remove lua %{_bindir}/lua%{major_version}
|
2012-01-07 14:58:03 +00:00
|
|
|
|
fi
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%files
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%doc README
|
|
|
|
|
|
%dir %{_libdir}/lua
|
|
|
|
|
|
%dir %{_libdir}/lua/%{major_version}
|
|
|
|
|
|
%dir %{_datadir}/lua
|
|
|
|
|
|
%dir %{_datadir}/lua/%{major_version}
|
2014-09-12 09:17:52 +00:00
|
|
|
|
%{_bindir}/lua%{major_version}
|
|
|
|
|
|
%{_bindir}/luac%{major_version}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%{_mandir}/man1/lua%{major_version}.1%{?ext_man}
|
|
|
|
|
|
%{_mandir}/man1/luac%{major_version}.1%{?ext_man}
|
|
|
|
|
|
%if %{with libalternatives}
|
|
|
|
|
|
%{_datadir}/libalternatives/lua/51.conf
|
|
|
|
|
|
%{_datadir}/libalternatives/luac/51.conf
|
|
|
|
|
|
%else
|
2017-07-10 14:30:32 +00:00
|
|
|
|
# alternatives
|
2014-09-12 09:17:52 +00:00
|
|
|
|
%{_bindir}/lua
|
|
|
|
|
|
%{_bindir}/luac
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%{_mandir}/man1/lua.1%{?ext_man}
|
|
|
|
|
|
%{_mandir}/man1/luac.1%{?ext_man}
|
2014-09-12 09:17:52 +00:00
|
|
|
|
%ghost %{_sysconfdir}/alternatives/lua
|
|
|
|
|
|
%ghost %{_sysconfdir}/alternatives/luac
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%ghost %{_sysconfdir}/alternatives/lua.1%{ext_man}
|
|
|
|
|
|
%ghost %{_sysconfdir}/alternatives/luac.1%{ext_man}
|
2025-08-03 11:35:47 +00:00
|
|
|
|
%endif
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%files -n %{libname}
|
|
|
|
|
|
%{_libdir}/liblua%{major_version}.so.*
|
|
|
|
|
|
%{_libdir}/liblua.so.*
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%files devel
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%dir %{_includedir}/lua%{major_version}
|
|
|
|
|
|
%{_includedir}/lua%{major_version}/lauxlib.h
|
|
|
|
|
|
%{_includedir}/lua%{major_version}/lua.h
|
|
|
|
|
|
%{_includedir}/lua%{major_version}/lua.hpp
|
|
|
|
|
|
%{_includedir}/lua%{major_version}/luaconf.h
|
|
|
|
|
|
%{_includedir}/lua%{major_version}/lualib.h
|
|
|
|
|
|
%{_libdir}/liblua%{major_version}.so
|
|
|
|
|
|
%{_libdir}/pkgconfig/lua%{major_version}.pc
|
2012-01-07 14:58:03 +00:00
|
|
|
|
%{_libdir}/liblua.so
|
2017-07-10 14:30:32 +00:00
|
|
|
|
%{_libdir}/pkgconfig/lua.pc
|
2012-01-07 14:58:03 +00:00
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|