File lua51-luasec.spec of Package lua51-luasec

#
# spec file for package lua51-luasec
#
# Copyright (c) 2014 SUSE LINUX Products 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.5.1
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
%if 0%{?suse_version} >= 1220
BuildRequires:  lua51-devel
%else
BuildRequires:  lua-devel
%endif

%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

%install
%make_install LUAPATH=%{lua_noarchdir} LUACPATH=%{lua_archdir}

%files
%defattr(-,root,root)
%{lua_archdir}/ssl.so
%{lua_noarchdir}/ssl.lua
%{lua_noarchdir}/ssl/
%if 0%{?sles_version}
%dir %{_libdir}/lua
%dir %{_datadir}/lua
%dir %{_libdir}/lua/5.1
%dir %{_datadir}/lua/5.1
%endif

%changelog
openSUSE Build Service is sponsored by