# All features are off (undefined) by default
# To enable, use: <percent>define FEATURE 1
# Available features are:
-# SHARP GHOSTSCRIPT GO GUILE _IO JAVA LUA OCAML ORTHO PERL PHP
+# SHARP GHOSTSCRIPT _GO GUILE _IO JAVA LUA OCAML ORTHO PERL PHP
# PYTHON RUBY R_LANG TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG
# GTK GLITZ SMYRNA DEVIL MING GDK _QT WEBP
BuildRequires: libwebp-devel
%endif
%if %fedora >= 20
-%define GOLANG 1
+%define _GO 1
BuildRequires: golang
%endif
%endif
%endif
#-- graphviz-lang-go rpm --------------------------------------------
-%if 0%{?GOLANG}
+%if 0%{?_GO}
%package lang-go
Group: Applications/Multimedia
Summary: GO extension for graphviz
--disable-static \
--disable-dependency-tracking \
--enable-sharp%{!?SHARP:=no} \
- --enable-go%{!?GOLANG:=no} \
+ --enable-go%{!?_GO:=no} \
--enable-guile%{!?GUILE:=no} \
--enable-io%{!?_IO:=no} \
--enable-java%{!?JAVA:=no} \
$(SWIG) -c++ -csharp -namespace gv -o gv_sharp.cpp $(srcdir)/gv.i
pkggodir = $(pkglibdir)/go
-GO_data =
+GO_data = gv.go gv_gv.c
nodist_libgv_go_la_SOURCES = gv_go.cpp $(GO_data)
libgv_go_la_SOURCES = $(BASESOURCES) gv_dummy_init.c
libgv_go_la_LIBADD = $(BASELIBS) $(GO_LIBS)
libgv_go_la_LDFLAGS = -module -avoid-version
libgv_go_la_CPPFLAGS = $(BASECPPFLAGS) $(GO_INCLUDES)
-# $(GO_data): gv_go.cpp
+$(GO_data): gv_go.cpp
gv_go.cpp: gv.i
$(SWIG) -c++ -go -intgosize @SIZEOF_INT_BITS@ -o gv_go.cpp $(srcdir)/gv.i