From 26bb5912070189dd7a3487a5b4798af5b27835fe Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 18 Dec 2012 15:38:07 +0100 Subject: [PATCH] simplify and fix ruby vendordir check in spec file --- package/libsolv.spec.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index deb0875..3db3c78 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -63,11 +63,7 @@ BuildRequires: perl-devel BuildRequires: swig %endif %if %{with ruby_binding} -%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 -%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]') -%else -%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"]') -%endif +%global ruby_vendorarch %(ruby -r rbconfig -e "puts Config::CONFIG['vendorarchdir'].nil? ? Config::CONFIG['sitearchdir'] : Config::CONFIG['vendorarchdir']") BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: swig -- 2.7.4