SHA256
10
0
forked from pool/lua-luasec
Files
lua-luasec/lua-luasec.spec
Callum Farmer ad68be6ded Accepting request 941413 from home:gmbr3:Lua
- Update to version 1.0.2:
  * Fix handle SSL_send SYSCALL error without errno
  * Fix off by one in cert:validat(notafter)
  * Fix meth_get_sinagure => meth_get_signature_name function name
  * Fix update the Lua state reference on the selected SSL context
    after SNI
  * Fix ignore SSL_OP_BIT(n) macro and update option.c
  * Fix: luaL_Buffer can use the stack and
    breakbuffer_meth_receive()
  * Add cert:getsignaturename()

OBS-URL: https://build.opensuse.org/request/show/941413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasec?expand=0&rev=19
2021-12-18 15:41:52 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package lua-luasec
#
# Copyright (c) 2020 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@%{nil}
%define mod_name luasec
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
Version: 1.0.2
Release: 0
Summary: A Lua binding for OpenSSL
License: MIT
URL: https://github.com/brunoos/luasec
Source: https://github.com/brunoos/%{mod_name}/archive/v%{version}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: lua-macros
BuildRequires: %{flavor}-luasocket
BuildRequires: libopenssl-devel
Requires: %{flavor}
Requires: %{flavor}-luasocket
%lua_provides
%description
It is a binding for OpenSSL library to provide TLS/SSL communication.
It takes an already established TCP connection and creates a secure
session between the peers.
%prep
%autosetup -n %{mod_name}-%{version}
%build
%make_build linux \
CFLAGS="%{optflags} -fPIC -I%{lua_incdir} -I. -DWITH_LUASOCKET -DLUASOCKET_DEBUG -DLUA_COMPAT_APIINTCASTS"
%install
%make_install LUAPATH=%{lua_noarchdir} LUACPATH=%{lua_archdir}
%files
%license LICENSE
%doc CHANGELOG README.md
%{lua_archdir}/ssl.so
%{lua_noarchdir}/ssl.lua
%{lua_noarchdir}/ssl/
%changelog