SPECS: graphviz.spec - separated java, perl, php, python, ruby binding...

qboosh qboosh at pld-linux.org
Sat Sep 3 22:34:30 CEST 2005


Author: qboosh                       Date: Sat Sep  3 20:34:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated java,perl,php,python,ruby bindings
- updated post/postun ("dot -c" must be used now)

---- Files affected:
SPECS:
   graphviz.spec (1.44 -> 1.45) 

---- Diffs:

================================================================
Index: SPECS/graphviz.spec
diff -u SPECS/graphviz.spec:1.44 SPECS/graphviz.spec:1.45
--- SPECS/graphviz.spec:1.44	Mon Aug 29 22:25:06 2005
+++ SPECS/graphviz.spec	Sat Sep  3 22:34:24 2005
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
-# TODO: separate bindings (libgv_{guile,java,perl,php,python,ruby,tcl}.so*)
+#
+# Conditional build:
+%bcond_with	java	# build Java binding
+#
 Summary:	Graph Visualization Tools
 Summary(pl):	Narzędzie do wizualizacji w postaci grafów
 Name:		graphviz
@@ -23,6 +26,7 @@
 BuildRequires:	gawk
 BuildRequires:	gd-devel >= 2.0.33-5
 BuildRequires:	gettext-devel
+%{?with_java:BuildRequires:	jdk}
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
 BuildRequires:	libstdc++-devel
@@ -47,6 +51,18 @@
 Kolekcja narzędzi oraz pakietów tcl służących do manipulacji i
 rozmieszczania grafów.
 
+%package devel
+Summary:	Header files for graphviz libraries
+Summary(pl):	Pliki nagłówkowe do bibliotek graphviz
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the header files for graphviz libraries.
+
+%description devel -l pl
+Ten pakiet zawiera pliki nagłówkowe do bibliotek graphviz.
+
 %package graphs
 Summary:	Demo graphs for graphviz
 Summary(pl):	Przykładowe grafy dla graphviza
@@ -59,6 +75,66 @@
 %description graphs -l pl
 Ten pakiet zawiera trochę przykładowych grafów.
 
+%package java
+Summary:	Java binding for graphviz
+Summary(pl):	Wiązania Javy dla graphviza
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description java
+Java binding for graphviz.
+
+%description java -l pl
+Wiązania Javy dla graphviza.
+
+%package perl
+Summary:	Perl binding for graphviz
+Summary(pl):	Wiązania Perla dla graphviza
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description perl
+Perl binding for graphviz.
+
+%description perl -l pl
+Wiązania Perla dla graphviza.
+
+%package php
+Summary:	PHP binding for graphviz
+Summary(pl):	Wiązania PHP dla graphviza
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description php
+PHP binding for graphviz.
+
+%description php -l pl
+Wiązania PHP dla graphviza.
+
+%package python
+Summary:	Python binding for graphviz
+Summary(pl):	Wiązania Pythona dla graphviza
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description python
+Python binding for graphviz.
+
+%description python -l pl
+Wiązania Pythona dla graphviza.
+
+%package ruby
+Summary:	Ruby binding for graphviz
+Summary(pl):	Wiązania Ruby'ego dla graphviza
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description ruby
+Ruby binding for graphviz.
+
+%description ruby -l pl
+Wiązania Ruby'ego dla graphviza.
+
 %package tcl
 Summary:	Tcl extension tools for graphviz
 Summary(pl):	Rozszerzenia Tcl dla graphviza
@@ -66,25 +142,13 @@
 Requires:	%{name} = %{version}-%{release}
 
 %description tcl
-This package contains the various tcl packages (extensions) using
+This package contains the various Tcl packages (extensions) using
 graphviz.
 
 %description tcl -l pl
-Ten pakiet zawiera różne pakiety (rozszerzenia) tcl używające
+Ten pakiet zawiera różne pakiety (rozszerzenia) Tcl używające
 graphviza.
 
-%package devel
-Summary:	Header files for graphviz libraries
-Summary(pl):	Pliki nagłówkowe do bibliotek graphviz
-Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-
-%description devel
-This package contains the header files for graphviz libraries.
-
-%description devel -l pl
-Ten pakiet zawiera pliki nagłówkowe do bibliotek graphviz.
-
 %prep
 %setup -q
 %patch0 -p1
@@ -108,10 +172,12 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if "%{_libdir}" != "/usr/lib"
 # tcl doesn't find pkgIndex.tcl outside /usr/lib...
-install -d $RPM_BUILD_ROOT{/usr/lib/graphviz,%{_pkgconfigdir}}
+install -d $RPM_BUILD_ROOT/usr/lib/graphviz
 sed -e "s@\$dir @%{_libdir}/graphviz/@" $RPM_BUILD_ROOT%{_libdir}/graphviz/pkgIndex.tcl \
 	> $RPM_BUILD_ROOT/usr/lib/graphviz/pkgIndex.tcl
+%endif
 
 # replace dead (after compression) softlinks by groff redirections
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{circo,fdp,neato,twopi}.1
@@ -120,37 +186,101 @@
 echo ".so dot.1" >$RPM_BUILD_ROOT%{_mandir}/man1/neato.1
 echo ".so dot.1" >$RPM_BUILD_ROOT%{_mandir}/man1/twopi.1
 
+rm -f $RPM_BUILD_ROOT%{_libdir}/graphviz/libgv_{java,perl,php,python,ruby,tcl}.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
 umask 022
-[ ! -x %{_bindir}/dot ] || %{_bindir}/dot -V > /dev/null 2>&1
+[ ! -x %{_bindir}/dot ] || %{_bindir}/dot -c > /dev/null 2>&1
 
 %postun
 /sbin/ldconfig
 umask 022
-[ ! -x %{_bindir}/dot ] || %{_bindir}/dot -V > /dev/null 2>&1
+[ ! -x %{_bindir}/dot ] || %{_bindir}/dot -c > /dev/null 2>&1
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog NEWS doc/*.pdf
 %attr(755,root,root) %{_bindir}/*
 %dir %{_libdir}/graphviz
-# *.so links are needed here for tcl
-%attr(755,root,root) %{_libdir}/graphviz/lib*.so*
+# linkable libs
+%attr(755,root,root) %{_libdir}/graphviz/libagraph.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libcdt.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libexpr.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libgraph.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libgvc.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libpack.so.*
+%attr(755,root,root) %{_libdir}/graphviz/libpathplan.so.*
+# plugins
+%attr(755,root,root) %{_libdir}/graphviz/libgvplugin_dot_layout.so*
+%attr(755,root,root) %{_libdir}/graphviz/libgvplugin_neato_layout.so*
+%attr(755,root,root) %{_libdir}/graphviz/libgvplugin_usershape_gd.so*
+# ??? (some *.so links are needed here for tcl, the rest "just in case")
+%attr(755,root,root) %{_libdir}/graphviz/libgdtclft.so*
+%attr(755,root,root) %{_libdir}/graphviz/libgvc_builtins.so*
+%attr(755,root,root) %{_libdir}/graphviz/libtcldot.so*
+%attr(755,root,root) %{_libdir}/graphviz/libtclplan.so*
+%attr(755,root,root) %{_libdir}/graphviz/libtkspline.so*
+# what about the rest of *.la?
 %dir %{_datadir}/graphviz
 %{_datadir}/graphviz/lefty
 %{_mandir}/man1/*
 
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libagraph.so
+%attr(755,root,root) %{_libdir}/graphviz/libcdt.so
+%attr(755,root,root) %{_libdir}/graphviz/libexpr.so
+%attr(755,root,root) %{_libdir}/graphviz/libgraph.so
+%attr(755,root,root) %{_libdir}/graphviz/libgvc.so
+%attr(755,root,root) %{_libdir}/graphviz/libpack.so
+%attr(755,root,root) %{_libdir}/graphviz/libpathplan.so
+%{_libdir}/graphviz/libagraph.la
+%{_libdir}/graphviz/libcdt.la
+%{_libdir}/graphviz/libexpr.la
+%{_libdir}/graphviz/libgraph.la
+%{_libdir}/graphviz/libgvc.la
+%{_libdir}/graphviz/libpack.la
+%{_libdir}/graphviz/libpathplan.la
+%{_pkgconfigdir}/*.pc
+%{_includedir}/graphviz
+%{_mandir}/man3/*
+
 %files graphs
 %defattr(644,root,root,755)
 %{_datadir}/graphviz/graphs
 
+%if %{with java}
+%files java
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_java.so*
+%endif
+
+%files perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_perl.so*
+
+%files php
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_php.so*
+
+%files python
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_python.so*
+
+%files ruby
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_ruby.so*
+
 %files tcl
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/graphviz/libgv_tcl.so*
+%if "%{_libdir}" != "/usr/lib"
 %dir /usr/lib/graphviz
+%endif
 /usr/lib/graphviz/pkgIndex.tcl
 %{_mandir}/mann/*
 %dir %{_datadir}/graphviz/demo
@@ -162,19 +292,16 @@
 %attr(755,root,root) %{_datadir}/graphviz/demo/pathplan
 %attr(755,root,root) %{_datadir}/graphviz/demo/spline
 
-%files devel
-%defattr(644,root,root,755)
-%{_libdir}/graphviz/lib*.la
-%{_pkgconfigdir}/*.pc
-%{_includedir}/graphviz
-%{_mandir}/man3/*
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.45  2005/09/03 20:34:24  qboosh
+- separated java,perl,php,python,ruby bindings
+- updated post/postun ("dot -c" must be used now)
+
 Revision 1.44  2005/08/29 20:25:06  qboosh
 - updated to 2.6
 - disable building statically linked programs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/graphviz.spec?r1=1.44&r2=1.45&f=u




More information about the pld-cvs-commit mailing list