[packages/lua-luv] up to 1.43.0.0

atler atler at pld-linux.org
Tue May 3 12:35:28 CEST 2022


commit 5f57bc5df537569af011fbc5d36707111fb2df3b
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 3 01:34:27 2022 +0200

    up to 1.43.0.0

 lua-luv.spec             | 17 ++++++-----------
 luv-1.36.0-lua-5.4.patch | 36 ------------------------------------
 2 files changed, 6 insertions(+), 47 deletions(-)
---
diff --git a/lua-luv.spec b/lua-luv.spec
index bf748dd..4ea599c 100644
--- a/lua-luv.spec
+++ b/lua-luv.spec
@@ -1,4 +1,4 @@
-%global real_version 1.36.0
+%global real_version 1.43.0
 %global extra_version 0
 Summary:	Bare libuv bindings for lua
 Name:		lua-luv
@@ -8,9 +8,8 @@ License:	Apache v2.0
 BuildRequires:	cmake
 BuildRequires:	libuv-devel
 BuildRequires:	lua-devel >= 5.4
-Source0:	https://github.com/luvit/luv/archive/%{real_version}-%{extra_version}/luv-%{version}.tar.gz
-# Source0-md5:	5b9efde8652056faeb5ffc8f62f2b595
-Patch0:		luv-1.36.0-lua-5.4.patch
+Source0:	https://github.com/luvit/luv/releases/download/1.43.0-0/luv-1.43.0-0.tar.gz
+# Source0-md5:	294c7ea4d8d2e21414b90f1fb70182e9
 URL:		https://github.com/luvit/luv
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,7 +33,7 @@ Requires:	lua-luv = %{version}-%{release}
 Files required for lua-luv development
 
 %prep
-%autosetup -p1 -n luv-%{real_version}-%{extra_version}
+%autosetup -n luv-%{real_version}-%{extra_version}
 
 # Remove bundled dependencies
 rm -r deps
@@ -42,18 +41,14 @@ rm -r deps
 rm -f tests/test-dns.lua
 
 %build
-install -d build
-cd build
-%cmake \
+%cmake -B build \
 	-DWITH_SHARED_LIBUV=ON \
 	-DBUILD_MODULE=ON \
 	-DBUILD_SHARED_LIBS=ON \
 	-DWITH_LUA_ENGINE=Lua \
 	-DLUA_BUILD_TYPE=System \
 	-DINSTALL_LIB_DIR=%{_libdir} \
-	-DLUA_INCLUDE_DIR=%{_includedir}/lua5.4 \
-	..
-cd ..
+	-DLUA_INCLUDE_DIR=%{_includedir}/lua5.4
 
 %{__make} -C build
 
diff --git a/luv-1.36.0-lua-5.4.patch b/luv-1.36.0-lua-5.4.patch
deleted file mode 100644
index c33641c..0000000
--- a/luv-1.36.0-lua-5.4.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -up luv-1.36.0-0/src/luv.c.lua54 luv-1.36.0-0/src/luv.c
---- luv-1.36.0-0/src/luv.c.lua54	2020-06-30 13:51:22.099551123 -0400
-+++ luv-1.36.0-0/src/luv.c	2020-06-30 13:51:32.299385613 -0400
-@@ -16,7 +16,7 @@
-  */
- 
- #include <lua.h>
--#if (LUA_VERSION_NUM != 503)
-+#if LUA_VERSION_NUM < 503
- #include "compat-5.3.h"
- #endif
- #include "luv.h"
-diff -up luv-1.36.0-0/src/private.h.lua54 luv-1.36.0-0/src/private.h
---- luv-1.36.0-0/src/private.h.lua54	2020-06-30 13:51:04.843831128 -0400
-+++ luv-1.36.0-0/src/private.h	2020-06-30 13:51:13.179695862 -0400
-@@ -2,7 +2,7 @@
- #define LUV_PRIVATE_H
- 
- #include <lua.h>
--#if (LUA_VERSION_NUM != 503)
-+#if LUA_VERSION_NUM < 503
- #include "compat-5.3.h"
- #endif
- 
-diff -up luv-1.36.0-0/CMakeLists.txt.lua54 luv-1.36.0-0/CMakeLists.txt
---- luv-1.36.0-0/CMakeLists.txt.lua54	2020-06-30 14:04:54.323356407 -0400
-+++ luv-1.36.0-0/CMakeLists.txt	2020-06-30 14:05:16.083002829 -0400
-@@ -94,7 +94,7 @@ if (LUA)
-     NO_DEFAULT_PATH)
-   ELSEIF(LUA_EXEC_NAME MATCHES "lua.*")
-     FIND_LIBRARY(LUA_LIBRARIES
--      NAMES lua lua53 lua52 lua51 liblua liblua53 liblua52 liblua51
-+      NAMES lua lua54 lua53 lua52 lua51 liblua liblua54 liblua53 liblua52 liblua51
-       PATHS ${LUA_LIBDIR}
-       NO_DEFAULT_PATH)
-   ENDIF()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lua-luv.git/commitdiff/818534641d73e5d98b5b6a65ed2c12c6ba0a147c



More information about the pld-cvs-commit mailing list