-Fix build failure: make looks for ruby.h in wrong place.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=37
This commit is contained in:
Wojtek Dziewięcki 2013-05-16 13:55:21 +00:00 committed by Git OBS Bridge
parent 815fa64a76
commit b15d1463a0
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 16 13:54:25 UTC 2013 - vdziewiecki@suse.com
-Fix build failure: make looks for ruby.h in wrong place.
-------------------------------------------------------------------
Fri Apr 5 12:35:29 UTC 2013 - idonmez@suse.com

View File

@ -105,6 +105,9 @@ if [ ! -d m4 ]; then mkdir m4; fi
%if %{_lib}==lib64
# don't pass -i to autoreconf, that'll run autopoint which will go
# nuts because of the supposedly outdated gettext version:
# ugly hack to fix build failure, when make looks for ruby.h in a wrong place:
mkdir -p %{buildroot}/usr/include
cp -R /usr/include/ruby-2.0.0 %{buildroot}/usr/include/
autoreconf -fv
%endif
export LDFLAGS="-L`pwd`/lb/lib" CPPFLAGS="-I`pwd`/lb/include" \