From 395aac03bbe942a3c8d821c1bdd1dca7daa15920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 5 Nov 2017 20:27:33 +0100 Subject: [PATCH] RPM: fix tdebindings build on RHEL5 --- redhat/main/tdebindings/tdebindings-14.0.0.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redhat/main/tdebindings/tdebindings-14.0.0.spec b/redhat/main/tdebindings/tdebindings-14.0.0.spec index e0e7fcdc4..d8c8d2b97 100644 --- a/redhat/main/tdebindings/tdebindings-14.0.0.spec +++ b/redhat/main/tdebindings/tdebindings-14.0.0.spec @@ -189,6 +189,9 @@ BuildRequires: rubypick %endif %endif %endif +%if 0%{?rhel} == 5 +%define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]') +%endif %if "%{?ruby_libdir}" != "" %define ruby_rubylibdir %{?ruby_libdir}