packages: graphviz/graphviz.spec - R language binding

glen glen at pld-linux.org
Wed Jun 2 10:58:02 CEST 2010


Author: glen                         Date: Wed Jun  2 08:58:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- R language binding

---- Files affected:
packages/graphviz:
   graphviz.spec (1.107 -> 1.108) 

---- Diffs:

================================================================
Index: packages/graphviz/graphviz.spec
diff -u packages/graphviz/graphviz.spec:1.107 packages/graphviz/graphviz.spec:1.108
--- packages/graphviz/graphviz.spec:1.107	Wed Jun  2 10:43:34 2010
+++ packages/graphviz/graphviz.spec	Wed Jun  2 10:57:57 2010
@@ -1,12 +1,14 @@
 # $Revision$, $Date$
 # TODO
-# - modules for: io
-# - R-graphviz bindings package
+# - io language bindings: io-graphviz
 # - rename bindings to <LANGUAGE>-<FOO> and package them as true language bindings (not subdirs in graphviz)
-# - what are these?
+# - ghostscript subpackage?
 #   /usr/lib64/graphviz/libgvplugin_gs.so
 #   /usr/lib64/graphviz/libgvplugin_gs.so.6
 #   /usr/lib64/graphviz/libgvplugin_gs.so.6.0.0
+# - manuals need rename? these both are "gv" in section 3 of man?
+#   /usr/share/man/man3/gv.3r.gz
+#   /usr/share/man/man3/gv.3ruby.gz
 #
 # Conditional build:
 %bcond_without	dotnet	# don't build C# bindings
@@ -17,6 +19,7 @@
 %bcond_without	ruby	# don't build ruby bindings
 %bcond_without	tcl		# don't build tcl bindings
 %bcond_without	lua		# don't build lua bindings
+%bcond_without	r		# don't build R bindings
 %bcond_without	ming	# don't build ming support
 %bcond_without	guile	# don't build guile bindings
 %bcond_without	devil	# don't build devil plugin
@@ -50,7 +53,7 @@
 Patch8:		swig_php5.patch
 URL:		http://www.graphviz.org/
 %{?with_devil:BuildRequires:	DevIL-devel}
-BuildRequires:	R
+%{?with_r:BuildRequires:	R}
 BuildRequires:	autoconf >= 2.59-9
 BuildRequires:	automake
 BuildRequires:	bison
@@ -286,6 +289,14 @@
 Ten pakiet zawiera różne pakiety (rozszerzenia) Tcl używające
 graphviza.
 
+%package -n R-%{name}
+Summary:	graphviz bindings for R language
+Group:		X11/Applications/Graphics
+Requires:	%{name} = %{version}-%{release}
+
+%description -n R-%{name}
+graphviz bindings for R language.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -334,6 +345,7 @@
 	%{!?with_ming:--disable-ming} \
 	%{!?with_devil:--disable-devil} \
 	%{!?with_lua:--disable-lua} \
+	%{!?with_r:--disable-r} \
 	--disable-static
 
 %{__make}
@@ -610,12 +622,24 @@
 %attr(755,root,root) %{_datadir}/graphviz/demo/spline.tcl
 %endif
 
+%if %{with r}
+%files -n R-%{name}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/R/gv.so
+%attr(755,root,root) %{_libdir}/%{name}/R/libgv_R.so
+# XXX: keep the dot, or it will match ruby manual!
+%{_mandir}/man3/gv.3r.*
+%endif
+
 %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.108  2010/06/02 08:57:57  glen
+- R language binding
+
 Revision 1.107  2010/06/02 08:43:34  glen
 - html and pdf doc subpackages
 
@@ -730,7 +754,7 @@
 - updated R sorting
 
 Revision 1.73  2007-11-14 09:43:14  arekm
-s/ghostscript-fonts-std/fonts-Type1-urw/
+- s/ghostscript-fonts-std/fonts-Type1-urw/
 
 Revision 1.72  2007-11-07 04:52:12  tommat
 - --without ocaml bcond
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/graphviz/graphviz.spec?r1=1.107&r2=1.108&f=u



More information about the pld-cvs-commit mailing list