SHA256
1
0
forked from pool/graphviz

Accepting request 180559 from home:Andreas_Schwab:Factory

- use %rb_ver to decide correct ruby version

OBS-URL: https://build.opensuse.org/request/show/180559
OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=57
This commit is contained in:
Dr. Werner Fink 2013-06-22 21:47:14 +00:00 committed by Git OBS Bridge
parent 2d00fd2ee3
commit 33055f46a0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 31 08:08:44 UTC 2013 - mhrusecky@suse.com
- use %rb_ver to decide correct ruby version
-------------------------------------------------------------------
Thu Mar 28 11:51:09 CET 2013 - pth@suse.de

View File

@ -283,7 +283,7 @@ CFLAGS="%{optflags} $WARN_FLAGS"
CFLAGS="$CFLAGS -ffast-math"
%endif
%if %suse_version > 1210
rubyflags=$(pkg-config --cflags ruby-1.9)
rubyflags=$(pkg-config --cflags ruby-$(echo %rb_ver | sed 's|\.[^.]*$||'))
CFLAGS="$CFLAGS $rubyflags"
CXXFLAGS="$CXXFLAGS $rubyflags"
%endif