summaryrefslogtreecommitdiff
path: root/lua-socket.spec
diff options
context:
space:
mode:
Diffstat (limited to 'lua-socket.spec')
-rw-r--r--lua-socket.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua-socket.spec b/lua-socket.spec
index 703306e..dd2fe36 100644
--- a/lua-socket.spec
+++ b/lua-socket.spec
@@ -5,6 +5,7 @@ Summary: Network support for the Lua language
License: MIT
URL: https://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
Source0: https://github.com/diegonehab/luasocket/archive/luasocket-%{version}.tar.gz
+Patch0: luasocket-3.1.0-fix-linkage.patch
BuildRequires: gcc make lua lua-devel /usr/bin/iconv
BuildRequires: perl
@@ -27,7 +28,7 @@ Lua using %{name}
%package_help
%prep
-%setup -q -n luasocket-%{version}
+%autosetup -p1 -n luasocket-%{version}
%build
%make_build LUAV=%lua_version CFLAGS_linux="%{build_cflags} -fPIC -I%{_includedir} -DLUASOCKET_NODEBUG -DLUA_COMPAT_APIINTCASTS" LDFLAGS="%{?__global_ldflags} -shared -o " linux