summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-07-18 17:52:11 +0200
committerMichael Schroeder <mls@suse.de>2011-07-18 17:52:11 +0200
commit6624ba076062fc3d5fb9330cdfb5416e03091342 (patch)
tree34a4050a6c0b1252c7387dafcddda36247809708 /package
parent9ba0ea2742585e0cb9a6a771b86a6457e1ce61b6 (diff)
downloadlibsolv-6624ba076062fc3d5fb9330cdfb5416e03091342.tar.gz
libsolv-6624ba076062fc3d5fb9330cdfb5416e03091342.tar.bz2
libsolv-6624ba076062fc3d5fb9330cdfb5416e03091342.zip
- fedora installs ruby stuff into site_ruby. sigh.
Diffstat (limited to 'package')
-rw-r--r--package/libsolv.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in
index c767645..deec7b3 100644
--- a/package/libsolv.spec.in
+++ b/package/libsolv.spec.in
@@ -47,7 +47,11 @@ BuildRequires: perl-devel
BuildRequires: swig
%endif
%if %{with ruby_binding}
+%if 0%{?fedora_version}
+%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
+%else
%global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"]')
+%endif
BuildRequires: ruby ruby-devel
BuildRequires: swig
%endif