Accepting request 292565 from multimedia:libs

1

OBS-URL: https://build.opensuse.org/request/show/292565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcaca?expand=0&rev=36
This commit is contained in:
Stephan Kulow 2015-05-07 06:27:30 +00:00 committed by Git OBS Bridge
commit ed9cc78311
3 changed files with 19 additions and 6 deletions

View File

@ -9,13 +9,13 @@ Index: configure.ac
- RUBY_CFLAGS="$(ruby -r mkmf -e 'conf = RbConfig::CONFIG.merge("hdrdir" => $hdrdir, "arch_hdrdir" => $arch_hdrdir); print RbConfig::expand("#$INCFLAGS", conf)')"
+ RUBY_CFLAGS=$(pkg-config --cflags ruby-1.9)
+ if test -z "$RUBY_CFLAGS"; then
+ RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')"
+ RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"archdir"@:>@')"
+ fi
RUBY_LIBS="-L$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
- RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitearchdir"@:>@'`
- RUBY_SITELIBDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitelibdir"@:>@'`
+ RUBY_VENDORARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorarchdir"@:>@'`
+ RUBY_VENDORLIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorlibdir"@:>@'`
+ RUBY_VENDORARCHDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"vendorarchdir"@:>@'`
+ RUBY_VENDORLIBDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"vendorlibdir"@:>@'`
AC_SUBST(RUBY_CFLAGS)
AC_SUBST(RUBY_LIBS)
- AC_SUBST(RUBY_SITEARCHDIR)
@ -42,4 +42,4 @@ Index: ruby/Makefile.am
+rubyvendor_DATA = lib/caca.rb
TESTS = test
endif

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Mar 20 15:50:59 UTC 2015 - dvlaeev@suse.com
- Build without Mono by default
coolo says: "We don't want mono in Factory, if somebody needs it
it should be set explicit (with_mono) per prjconf"
-------------------------------------------------------------------
Thu Mar 12 09:52:22 UTC 2015 - dimstar@opensuse.org
- Update libcaca-ruby_vendor_install.patch: Use RbConfig::CONFIG
instead of Config::Config to be compatible with ruby 2.2.
-------------------------------------------------------------------
Tue Feb 17 03:37:09 UTC 2015 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libcaca
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define withjava 0
%define withpython 1
%bcond_without mono
%bcond_with mono
Name: libcaca
BuildRequires: doxygen