robert pushed to lua-dbi (epel7). "Conditionalize spec file to handle more Fedora releases"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Apr 24 22:52:35 UTC 2015


>From 29ba0cffb7783070e0a9efb8d90d81081385fb0b Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert at fedoraproject.org>
Date: Sat, 25 Apr 2015 00:45:48 +0200
Subject: Conditionalize spec file to handle more Fedora releases


diff --git a/lua-dbi.spec b/lua-dbi.spec
index de8cb89..3c3e167 100644
--- a/lua-dbi.spec
+++ b/lua-dbi.spec
@@ -1,4 +1,13 @@
+%if 0%{?fedora} >= 22
 %define luaver 5.3
+%else
+%if 0%{?fedora} >= 20 || 0%{?rhel} > 7
+%define luaver 5.2
+%else
+%define luaver 5.1
+%endif
+%endif
+
 %define lualibdir %{_libdir}/lua/%{luaver}
 %define luapkgdir %{_datadir}/lua/%{luaver}
 %define luacompatver 5.1
@@ -30,10 +39,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
 LuaDBI is a database interface library for Lua. It is designed to provide a
@@ -48,6 +54,7 @@ with native database drivers.
 %package compat
 Summary:        Database interface library for Lua 5.1
 Group:          Development/Libraries
+BuildRequires:  compat-lua >= %{luacompatver}, compat-lua-devel >= %{luacompatver}
 
 %description compat
 LuaDBI is a database interface library for Lua 5.1. It is designed to provide a
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lua-dbi.git/commit/?h=epel7&id=29ba0cffb7783070e0a9efb8d90d81081385fb0b


More information about the scm-commits mailing list