Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569112
en ru br
ALT Linux repos
S:1.2.0-alt1

Group :: Development/Other
RPM: lua5.3-module-luasec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname luasec

Name: lua5.3-module-%oname
Version: 1.2.0
Release: alt1
Summary: A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket
License: MIT
Group: Development/Other
Url: https://github.com/brunoos/luasec/wiki

%if "5.3" >= "5.3"
Obsoletes: lua-module-%oname < %EVR
Provides: lua-module-%oname = %version
%endif

Source: luasec-%version.tar

BuildRequires(pre): liblua5.3-devel lua5.3
BuildRequires: lua5.3-module-luasocket-devel libssl-devel

%description
This version delegates to LuaSocket the TCP connection establishment between
the client and server. Then LuaSec uses this connection to start a secure
TLS/SSL session.

%prep
%setup -n %oname-%version

%build
# regenerate OpenSSL options
pushd src
%lua options.lua -g /usr/include/openssl/ssl.h > options.c
popd

%make_build linux \
CFLAGS="%optflags -DWITH_LUASOCKET -DLUASOCKET_DEBUG -DLUA_COMPAT_APIINTCASTS" \
#

%install
%makeinstall_std \
LUAPATH=%lua_modulesdir_noarch \
LUACPATH=%lua_modulesdir \
#

%files
%doc CHANGELOG LICENSE* README*
%lua_modulesdir/*
%lua_modulesdir_noarch/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin