SHA256
12
0
forked from pool/lua-luasec
lua-luasec/lua51-luasec.spec

52 lines
1.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package lua51-luasec
#
# 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/
#
Name: lua51-luasec
Version: 0.6
Release: 0
Summary: A Lua binding for OpenSSL
License: MIT
Group: Productivity/Networking/Other
Url: https://github.com/brunoos/luasec
Source: https://github.com/brunoos/luasec/archive/luasec-%{version}.tar.gz
BuildRequires: libopenssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: lua51-devel
%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}
%build
make %{?_smp_mflags} linux CFLAGS="%{optflags} -fPIC -I%{lua_incdir} -I/usr/include -I."
%install
%make_install LUAPATH=%{buildroot}%{lua_noarchdir} LUACPATH=%{buildroot}%{lua_archdir}
%files
%defattr(-,root,root)
%{lua_archdir}/ssl.so
%{lua_noarchdir}/ssl.lua
%{lua_noarchdir}/ssl/
%changelog