2017-07-13 20:58:11 +00:00
|
|
|
#
|
2017-07-13 21:06:21 +00:00
|
|
|
# spec file for package lua-luasec
|
2017-07-13 20:58:11 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-13 21:06:21 +00:00
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
|
|
%define mod_name luasec
|
2017-07-13 20:58:11 +00:00
|
|
|
Version: 0.6
|
|
|
|
Release: 0
|
|
|
|
Summary: A Lua binding for OpenSSL
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Url: https://github.com/brunoos/luasec
|
2017-07-13 21:06:21 +00:00
|
|
|
Source: https://github.com/brunoos/luasec/archive/%{mod_name}-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-UPSTREAM build with openssl 1.1.0 (taken from Fedora)
|
|
|
|
Patch0: lua-sec-0.6-openssl_110.patch
|
|
|
|
BuildRequires: %{flavor}-devel
|
|
|
|
BuildRequires: %{flavor}-luasocket
|
2017-07-13 20:58:11 +00:00
|
|
|
BuildRequires: libopenssl-devel
|
2017-07-13 21:06:21 +00:00
|
|
|
Requires: %{flavor}
|
2017-07-13 21:11:52 +00:00
|
|
|
Requires: %{flavor}-luasocket
|
2017-07-13 21:06:21 +00:00
|
|
|
%if "%{flavor}" == ""
|
2017-07-15 07:33:47 +00:00
|
|
|
Name: lua-%{mod_name}
|
2017-07-13 21:06:21 +00:00
|
|
|
ExclusiveArch: do_not_build
|
2017-07-15 07:33:47 +00:00
|
|
|
%else
|
|
|
|
Name: %{flavor}-%{mod_name}
|
2017-07-13 21:06:21 +00:00
|
|
|
%endif
|
2017-07-13 20:58:11 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q -n luasec-luasec-%{version}
|
2017-07-13 21:06:21 +00:00
|
|
|
%patch0 -p1
|
2017-07-13 20:58:11 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-13 21:06:21 +00:00
|
|
|
make %{?_smp_mflags} linux \
|
2017-07-14 11:00:46 +00:00
|
|
|
CFLAGS="%{optflags} -fPIC -I%{lua_incdir} -I. -DWITH_LUASOCKET -DLUASOCKET_DEBUG -DLUA_COMPAT_APIINTCASTS"
|
2017-07-13 20:58:11 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-13 21:11:52 +00:00
|
|
|
%make_install LUAPATH=%{lua_noarchdir} LUACPATH=%{lua_archdir}
|
2017-07-13 20:58:11 +00:00
|
|
|
|
|
|
|
%files
|
2017-08-07 09:43:14 +00:00
|
|
|
%doc CHANGELOG LICENSE README.md
|
2017-07-13 20:58:11 +00:00
|
|
|
%{lua_archdir}/ssl.so
|
|
|
|
%{lua_noarchdir}/ssl.lua
|
|
|
|
%{lua_noarchdir}/ssl/
|
|
|
|
|
|
|
|
%changelog
|