Matej Cepl 2023-05-09 12:30:50 +00:00 committed by Git OBS Bridge
parent ea7fea61b8
commit aaddd41456
4 changed files with 15 additions and 10 deletions

View File

@ -1 +1 @@
liblua5_4-5 liblua5_4-6

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59df426a3d50ea535a460a452315c4c0d4e1121ba72ff0bdde58c2ef31d6f444
size 363316

BIN
lua-5.4.6-rc1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -24,17 +24,17 @@
%define name_ext %{nil} %define name_ext %{nil}
%endif %endif
%define major_version 5.4 %define major_version 5.4
%define libname liblua5_4-5 %define libname liblua5_4-6
Name: lua54%{name_ext} Name: lua54%{name_ext}
Version: 5.4.5 Version: 5.4.6~rc1
Release: 0 Release: 0
Summary: Small Embeddable Language with Procedural Syntax Summary: Small Embeddable Language with Procedural Syntax
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Development/Languages/Other Group: Development/Languages/Other
URL: https://www.lua.org URL: https://www.lua.org
Source: http://www.lua.org/ftp/lua-%{version}.tar.gz Source: https://www.lua.org/work/lua-5.4.6-rc1.tar.gz
Source1: http://www.lua.org/tests/lua-%{version}-tests.tar.gz Source1: https://www.lua.org/tests/lua-5.4.5-tests.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
# PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE # PATCH-FIX-SUSE tweak the buildsystem to produce what is needed for SUSE
Patch0: lua-build-system.patch Patch0: lua-build-system.patch
@ -140,8 +140,8 @@ scripting, and rapid prototyping. Lua is implemented as a small library
of C functions, written in ANSI C. of C functions, written in ANSI C.
%prep %prep
%setup -q -n lua-%{version} -a1 %setup -q -n lua-5.4.6 -a1
mv lua-%{version}-tests testes mv lua-5.4.5-tests testes
%autopatch -p1 %autopatch -p1
# manpage # manpage
@ -164,6 +164,8 @@ make linux-readline %{_smp_mflags} VERBOSE=1 -C src \
INSTALL_LIB="%{buildroot}%{_libdir}" \ INSTALL_LIB="%{buildroot}%{_libdir}" \
INSTALL_MAN="%{buildroot}%{_mandir}/man1" INSTALL_MAN="%{buildroot}%{_mandir}/man1"
find %{buildroot} -name \*.so\* -ls
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# create pkg-config file # create pkg-config file
@ -181,6 +183,7 @@ Version: %{version}
Libs: -llua%{major_version} -lm Libs: -llua%{major_version} -lm
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF 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
# update-alternatives # update-alternatives
@ -192,6 +195,8 @@ for file in lua luac ; do
ln -sf "%{_sysconfdir}/alternatives/${file}.1%{ext_man}" "%{buildroot}%{_mandir}/man1/${file}.1%{ext_man}" ln -sf "%{_sysconfdir}/alternatives/${file}.1%{ext_man}" "%{buildroot}%{_mandir}/man1/${file}.1%{ext_man}"
done done
# /home/abuild/rpmbuild/BUILDROOT/lua54-5.4.6~rc1-0.x86_64/usr/lib64/liblua5.4.so
# lrwxrwxrwx. 1 abuild abuild 27 May 3 21:50 liblua.so -> /etc/alternatives/liblua.so # lrwxrwxrwx. 1 abuild abuild 27 May 3 21:50 liblua.so -> /etc/alternatives/liblua.so
# lrwxrwxrwx. 1 abuild abuild 18 May 3 21:50 liblua.so.5.4 -> liblua5.4.so.5.4.0 # lrwxrwxrwx. 1 abuild abuild 18 May 3 21:50 liblua.so.5.4 -> liblua5.4.so.5.4.0
# -rw-r--r--. 1 abuild abuild 30352 May 3 21:50 liblua5.4.a # -rw-r--r--. 1 abuild abuild 30352 May 3 21:50 liblua5.4.a