robert pushed to lua-sec (el5). "Add compatibility for EPEL-5"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 4 23:18:02 UTC 2015


>From f257829a162bfd23eb5e1cfb926a2baebc186b25 Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert at fedoraproject.org>
Date: Mon, 13 Apr 2015 01:34:24 +0200
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,-)
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lua-sec.git/commit/?h=el5&id=f257829a162bfd23eb5e1cfb926a2baebc186b25


More information about the scm-commits mailing list