Make Ruby build conditional

This commit is contained in:
Andrey Bondrov 2015-01-29 21:25:23 +10:00
parent 5af2ae1936
commit 9dc80cd957

View file

@ -5,6 +5,9 @@
%bcond_without static
%bcond_with libr
# Distro-specific default value should be defined in branding-configs package
%{?build_ruby}%{?!build_ruby:%bcond_without ruby}
%define cdt_major 5
%define cgraph_major 6
%define gvc_major 6
@ -28,7 +31,7 @@
Summary: Graph visualization tools
Name: graphviz
Version: 2.38.0
Release: 3
Release: 4
License: Common Public License
Group: Graphics
Url: http://www.graphviz.org
@ -219,6 +222,7 @@ This package provides the Python extension for %{name}.
#-------------------------------------------------------------------------
%if %{with ruby}
%package -n ruby-graphviz
Summary: Graphviz bindings for ruby
Group: System/Libraries
@ -231,6 +235,7 @@ This package provides the Ruby extension for %{name}.
%files -n ruby-graphviz
%{_libdir}/graphviz/ruby
%{_prefix}/lib/ruby
%endif
#-------------------------------------------------------------------------
@ -386,6 +391,11 @@ autoreconf -fi
--with-gtk \
--with-libgd \
--disable-io \
%if %{with ruby}
--enable-ruby=yes \
%else
--enable-ruby=no \
%endif
--disable-dependency-tracking
%make TK_LIB_SPEC="-ltcl -ltk" LIBS="-lX11"