[lua-sec] Import new package
trasher
trasher at fedoraproject.org
Thu Mar 8 07:47:10 UTC 2012
commit df9fd4d29dfe7e41041f1e65692ae5541abd6590
Author: trasher <trasher at fedoraproject.org>
Date: Thu Mar 8 08:43:49 2012 +0100
Import new package
.gitignore | 1 +
lua-sec.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..66cebc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/luasec-0.4.1.tar.gz
diff --git a/lua-sec.spec b/lua-sec.spec
new file mode 100644
index 0000000..8fb7503
--- /dev/null
+++ b/lua-sec.spec
@@ -0,0 +1,76 @@
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+%define luapkgdir %{_datadir}/lua/%{luaver}
+
+%define real_name luasec
+
+Name: lua-sec
+Version: 0.4.1
+Release: 2%{?dist}
+Summary: Lua binding for OpenSSL library
+
+Group: Development/Libraries
+License: MIT
+URL: http://www.inf.puc-rio.br/~brunoos/luasec/
+Source0: http://www.inf.puc-rio.br/~brunoos/%{real_name}/download/%{real_name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: lua-devel
+BuildRequires: openssl-devel
+Requires: lua-socket
+%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
+Requires: lua(abi) = %{luaver}
+%else
+Requires: lua >= %{luaver}
+%endif
+
+
+%description
+Lua 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 %{real_name}-%{version}
+for file in CHANGELOG LICENSE; do
+ iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+done
+
+
+%build
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIC" linux
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{luapkgdir}
+mkdir -p $RPM_BUILD_ROOT%{lualibdir}
+make install DESTDIR=$RPM_BUILD_ROOT LUAPATH=$RPM_BUILD_ROOT%{luapkgdir} LUACPATH=$RPM_BUILD_ROOT%{lualibdir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG LICENSE
+%{lualibdir}/ssl.so
+%{luapkgdir}/ssl.lua
+%dir %{luapkgdir}/ssl
+%{luapkgdir}/ssl/*
+
+
+%changelog
+* Tue Mar 06 2012 Johan Cwiklinski <johan AT x-tnd DOT be> 0.4.1-2
+- Remove __mkdir macros
+
+* Tue Mar 06 2012 Johan Cwiklinski <johan AT x-tnd DOT be> 0.4.1-1
+- 0.4.1
+- Add lua as a Requires (bz #551763)
+
+* Fri Jan 01 2010 Johan Cwiklinski <johan AT x-tnd DOT be> 0.4-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..e670230 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8a5fde3b3fdb6174f54cd51d7f53e12 luasec-0.4.1.tar.gz
More information about the scm-commits
mailing list