From df9fd4d29dfe7e41041f1e65692ae5541abd6590 Mon Sep 17 00:00:00 2001 From: trasher Date: Mar 08 2012 07:43:49 +0000 Subject: Import new package --- 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 0.4.1-2 +- Remove __mkdir macros + +* Tue Mar 06 2012 Johan Cwiklinski 0.4.1-1 +- 0.4.1 +- Add lua as a Requires (bz #551763) + +* Fri Jan 01 2010 Johan Cwiklinski 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