packages: plplot/plplot.spec - build ocaml binding (ocaml-plplot*, ocaml-pl...

qboosh qboosh at pld-linux.org
Wed Dec 7 19:49:08 CET 2011


Author: qboosh                       Date: Wed Dec  7 18:49:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build ocaml binding (ocaml-plplot*, ocaml-plcairo* packages)

---- Files affected:
packages/plplot:
   plplot.spec (1.58 -> 1.59) 

---- Diffs:

================================================================
Index: packages/plplot/plplot.spec
diff -u packages/plplot/plplot.spec:1.58 packages/plplot/plplot.spec:1.59
--- packages/plplot/plplot.spec:1.58	Mon Dec  5 20:59:20 2011
+++ packages/plplot/plplot.spec	Wed Dec  7 19:49:03 2011
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 # TODO:
 # - perl_pdl - why disabled?
-# - bindings: ada, d, gnome2, ocaml, tk-x-plat?
+# - bindings: ada, d, gnome2, tk-x-plat?
 # NOTES:
 # aqt driver is Darwin-only
 # wingcc driver is Windows-only
@@ -15,6 +15,7 @@
 %bcond_without	java		# Java binding
 %bcond_without	itcl		# [incr Tcl]/[incr Tk] support in Tcl/Tk binding
 %bcond_without	lua		# Lua binding
+%bcond_without	ocaml		# OCaml binding
 #
 Summary:	PLplot - a library of functions that are useful for making scientific plots
 Summary(pl.UTF-8):	PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
@@ -85,6 +86,13 @@
 BuildRequires:	xorg-lib-libXext-devel
 BuildRequires:	xorg-lib-libICE-devel
 BuildRequires:	xorg-lib-libX11-devel
+%if %{with ocaml}
+BuildRequires:	ocaml
+BuildRequires:	ocaml-cairo-devel >= 1.2.0
+BuildRequires:	ocaml-camlidl
+BuildRequires:	ocaml-findlib
+BuildRequires:	ocaml-lablgtk2-devel
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		octave_oct_sitedir	%(octave-config --oct-site-dir)
@@ -474,6 +482,61 @@
 %description -n lua-plplot -l pl.UTF-8
 Wiązanie języka Lua do biblioteki PLplot.
 
+%package -n ocaml-plplot
+Summary:	OCaml binding for PLplot library
+Summary(pl.UTF-8):	Wiązanie języka OCaml do biblioteki PLplot
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+%requires_eq	ocaml-runtime
+
+%description -n ocaml-plplot
+OCaml binding for PLplot library.
+
+%description -n ocaml-plplot -l pl.UTF-8
+Wiązanie języka OCaml do biblioteki PLplot.
+
+%package -n ocaml-plplot-devel
+Summary:	Development files for OCaml binding for PLplot library
+Summary(pl.UTF-8):	Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
+Group:		Development/Libraries
+Requires:	ocaml-plplot = %{version}-%{release}
+%requires_eq	ocaml
+
+%description -n ocaml-plplot-devel
+Development files for OCaml binding for PLplot library.
+
+%description -n ocaml-plplot-devel -l pl.UTF-8
+Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
+
+%package -n ocaml-plcairo
+Summary:	PLcairo - Cairo extras for OCaml binding for PLplot library
+Summary(pl.UTF-8):	PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
+Group:		Libraries
+Requires:	ocaml-plplot = %{version}-%{release}
+Requires:	ocaml-cairo
+%requires_eq	ocaml-runtime
+
+%description -n ocaml-plcairo
+PLcairo - Cairo extras for OCaml binding for PLplot library.
+
+%description -n ocaml-plcairo -l pl.UTF-8
+PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
+
+%package -n ocaml-plcairo-devel
+Summary:	Development files for PLcairo OCaml library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki OCamla PLcairo
+Group:		Development/Libraries
+Requires:	ocaml-cairo-devel
+Requires:	ocaml-plcairo = %{version}-%{release}
+Requires:	ocaml-plplot-devel = %{version}-%{release}
+%requires_eq	ocaml
+
+%description -n ocaml-plcairo-devel
+Development files for PLcairo OCaml library.
+
+%description -n ocaml-plcairo-devel -l pl.UTF-8
+Pliki programistyczne biblioteki OCamla PLcairo.
+
 %package -n python-plplot
 Summary:	PLplot library - Python binding
 Summary(pl.UTF-8):	Biblioteka PLplot - wiązanie dla Pythona
@@ -551,7 +614,7 @@
 	-DOCTAVE_M_DIR=%{octave_m_sitedir} \
 	-DUSE_RPATH=OFF \
 	-DENABLE_tk=ON \
-	-DENABLE_ocaml=OFF \
+	-DENABLE_ocaml=%{?with_itcl:ON}%{!?with_itcl:OFF} \
 	-DENABLE_ada=OFF \
 	-DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
 	-DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
@@ -862,12 +925,43 @@
 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
 %{_examplesdir}/%{name}-%{version}/octave
 
+%if %{with lua}
 %files -n lua-plplot
 %defattr(644,root,root,755)
 %dir %{_libdir}/lua/5.1/plplot
 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
 %{_examplesdir}/%{name}-%{version}/lua
 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
+%endif
+
+%if %{with ocaml}
+%files -n ocaml-plplot
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
+
+%files -n ocaml-plplot-devel
+%dir %{_libdir}/ocaml/plplot
+%{_libdir}/ocaml/plplot/META
+%{_libdir}/ocaml/plplot/libplplot_stubs.a
+%{_libdir}/ocaml/plplot/plplot.a
+%{_libdir}/ocaml/plplot/plplot.cm*
+%{_libdir}/ocaml/plplot/plplot.mli
+%{_pkgconfigdir}/plplotd-ocaml.pc
+%{_examplesdir}/%{name}-%{version}/ocaml
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
+
+%files -n ocaml-plcairo
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
+
+%files -n ocaml-plcairo-devel
+%dir %{_libdir}/ocaml/plcairo
+%{_libdir}/ocaml/plcairo/META
+%{_libdir}/ocaml/plcairo/libplcairo_stubs.a
+%{_libdir}/ocaml/plcairo/plcairo.a
+%{_libdir}/ocaml/plcairo/plcairo.cm*
+%{_libdir}/ocaml/plcairo/plcairo.mli
+%endif
 
 %files -n python-plplot
 %defattr(644,root,root,755)
@@ -893,6 +987,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.59  2011/12/07 18:49:03  qboosh
+- build ocaml binding (ocaml-plplot*, ocaml-plcairo* packages)
+
 Revision 1.58  2011/12/05 19:59:20  qboosh
 - added lua binding
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/plplot/plplot.spec?r1=1.58&r2=1.59&f=u



More information about the pld-cvs-commit mailing list