summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdebindings/tdebindings-14.0.0.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/main/tdebindings/tdebindings-14.0.0.spec')
-rw-r--r--redhat/main/tdebindings/tdebindings-14.0.0.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/redhat/main/tdebindings/tdebindings-14.0.0.spec b/redhat/main/tdebindings/tdebindings-14.0.0.spec
index 2e9abc9de..e0e7fcdc4 100644
--- a/redhat/main/tdebindings/tdebindings-14.0.0.spec
+++ b/redhat/main/tdebindings/tdebindings-14.0.0.spec
@@ -181,7 +181,12 @@ BuildRequires: rubypick
%if "%{?rb_archdir}" != ""
%define ruby_arch %{?rb_archdir}
%else
+%if "%{%ruby_archdir}" != ""
+%define ruby_arch %{?ruby_archdir}
+%else
%{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]')}
+%{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["archdir"]')}
+%endif
%endif
%endif