From f257829a162bfd23eb5e1cfb926a2baebc186b25 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Apr 12 2015 23:34:24 +0000 Subject: Add compatibility for EPEL-5 --- diff --git a/lua-sec.spec b/lua-sec.spec index 2226ef1..20b12c4 100644 --- a/lua-sec.spec +++ b/lua-sec.spec @@ -38,9 +38,7 @@ Requires: lua(abi) = %{luaver} Requires: lua >= %{luaver} %endif -%if 0%{?fedora} >= 20 -BuildRequires: compat-lua >= %{luacompatver}, compat-lua-devel >= %{luacompatver} -%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Lua binding for OpenSSL library to provide TLS/SSL communication. @@ -51,6 +49,7 @@ session between the peers. %package compat Summary: Lua 5.1 binding for OpenSSL library Group: Development/Libraries +BuildRequires: compat-lua >= %{luacompatver}, compat-lua-devel >= %{luacompatver} %description compat Lua 5.1 binding for OpenSSL library to provide TLS/SSL communication. @@ -87,6 +86,7 @@ popd %endif %install +rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{luapkgdir} mkdir -p $RPM_BUILD_ROOT%{lualibdir} make install DESTDIR=$RPM_BUILD_ROOT \ @@ -105,6 +105,8 @@ make install DESTDIR=$RPM_BUILD_ROOT \ popd %endif +%clean +rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-)