summaryrefslogtreecommitdiff
path: root/package/libsolv.spec.in
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-12-18 15:38:07 +0100
committerMichael Schroeder <mls@suse.de>2012-12-18 15:38:07 +0100
commit26bb5912070189dd7a3487a5b4798af5b27835fe (patch)
tree0b78b426c8353080e7808bdd0a7baa05cc0f111a /package/libsolv.spec.in
parentaa7796db956c80ceb0975afef216a98c800ad592 (diff)
downloadlibsolv-26bb5912070189dd7a3487a5b4798af5b27835fe.tar.gz
libsolv-26bb5912070189dd7a3487a5b4798af5b27835fe.tar.bz2
libsolv-26bb5912070189dd7a3487a5b4798af5b27835fe.zip
simplify and fix ruby vendordir check in spec file
Diffstat (limited to 'package/libsolv.spec.in')
-rw-r--r--package/libsolv.spec.in6
1 files changed, 1 insertions, 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