mirror of
https://abf.rosa.ru/djam/graphviz.git
synced 2025-02-23 07:42:57 +00:00
Make Ruby build conditional
This commit is contained in:
parent
5af2ae1936
commit
9dc80cd957
1 changed files with 11 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue