fi
AM_CONDITIONAL(WITH_GVC, [test "x$use_gvc" = "xYes"])
-# FIXME - this should be automatically obtained
-GVPLUGIN_VERSION_INFO='6:0:0'
-AC_SUBST(GVPLUGIN_VERSION_INFO)
+if test "x$use_gvc" = "xYes"; then
+ GVPLUGIN_VERSION_INFO=`pkg-config libgvc --variable=plugins`:0:0
+ AC_SUBST(GVPLUGIN_VERSION_INFO)
+ GVPLUGIN_DIR=`pkg-config libgvc --variable=libdir`/graphviz
+ AC_SUBST(GVPLUGIN_DIR)
+fi
dnl -----------------------------------
dnl INCLUDES and LIBS for GTK.
AM_CPPFLAGS = $(GVC_CFLAGS) $(GTK_CFLAGS)
#override pkglibdir
-pkglibdir = $(libdir)/graphviz
+pkglibdir = @GVPLUGIN_DIR@
noinst_HEADERS = support.h interface.h callbacks.h
noinst_LTLIBRARIES = libgvplugin_gtk_C.la
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: graphviz-devel gtk2-devel
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-
%description
A graphviz plugin providind a gtk UI to graphviz.
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/*.so.*
+%exclude %{_libdir}/graphviz/*.so
#-- building --------------------------------------------------
--mandir=%{_mandir} \
--with-x \
--disable-static \
- --disable-dependency-tracking \
+ --disable-dependency-tracking
make %{?_smp_mflags}
%install
-rm -rf %{buildroot} __doc
-make DESTDIR=%{buildroot} \
- docdir=%{buildroot}%{_docdir}/%{name} \
- pkgconfigdir=%{_libdir}/pkgconfig \
- install
+make DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
-chmod -x %{buildroot}%{_datadir}/%{name}/lefty/*
-cp -a %{buildroot}%{_datadir}/%{name}/doc __doc
-rm -rf %{buildroot}%{_datadir}/%{name}/doc
%check
%ifnarch ppc64 ppc