Author: qboosh                       Date: Mon Dec  5 19:59:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added lua binding

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

---- Diffs:

================================================================
Index: packages/plplot/plplot.spec
diff -u packages/plplot/plplot.spec:1.57 packages/plplot/plplot.spec:1.58
--- packages/plplot/plplot.spec:1.57    Sat Dec  3 09:50:55 2011
+++ packages/plplot/plplot.spec Mon Dec  5 20:59:20 2011
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 # TODO:
-# - java, perl_pdl - why disabled?
-# - bindings: ada, d, gnome2, java, lua, ocaml, tk-x-plat?
+# - perl_pdl - why disabled?
+# - bindings: ada, d, gnome2, ocaml, tk-x-plat?
 # NOTES:
 # aqt driver is Darwin-only
 # wingcc driver is Windows-only
@@ -14,6 +14,7 @@
 %bcond_with    perl_pdl        # enable perl examples in tests
 %bcond_without java            # Java binding
 %bcond_without itcl            # [incr Tcl]/[incr Tk] support in Tcl/Tk binding
+%bcond_without lua             # Lua 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
@@ -54,6 +55,7 @@
 BuildRequires: libltdl-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
+%{?with_lua:BuildRequires:     lua51-devel >= 5.1}
 BuildRequires: octave-devel >= 2:3.4.2
 BuildRequires: pango-devel
 %{?with_perl_pdl:BuildRequires:        perl-PDL}
@@ -459,6 +461,19 @@
 %description octave-examples -l pl.UTF-8
 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
 
+%package -n lua-plplot
+Summary:       Lua binding for PLplot library
+Summary(pl.UTF-8):     Wiązanie języka Lua do biblioteki PLplot
+Group:         Development/Languages
+Requires:      %{name} = %{version}-%{release}
+Requires:      lua51-libs >= 5.1
+
+%description -n lua-plplot
+Lua binding for PLplot library.
+
+%description -n lua-plplot -l pl.UTF-8
+Wiązanie języka Lua do biblioteki PLplot.
+
 %package -n python-plplot
 Summary:       PLplot library - Python binding
 Summary(pl.UTF-8):     Biblioteka PLplot - wiązanie dla Pythona
@@ -523,6 +538,12 @@
 %else
        -DENABLE_java=OFF \
 %endif
+%if %{with lua}
+       -DENABLE_lua=ON \
+       -DLUA_EXECUTABLE=%{_bindir}/lua51 \
+%else
+       -DENABLE_lua=OFF \
+%endif
        -DF77_INCLUDE_DIR=%{_includedir}/plplot \
        -DF95_MOD_DIR=%{_includedir}/plplot \
        -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
@@ -531,10 +552,9 @@
        -DUSE_RPATH=OFF \
        -DENABLE_tk=ON \
        -DENABLE_ocaml=OFF \
-       -DENABLE_lua=OFF \
        -DENABLE_ada=OFF \
-       -DENABLE_itcl=%{!?with_itcl:OFF}%{?with_itcl:ON} \
-       -DENABLE_itk=%{!?with_itcl:OFF}%{?with_itcl:ON} \
+       -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
+       -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
        -DPLD_cgm=ON \
        -DPLD_ntk=ON \
        -DPLD_pdf=ON \
@@ -842,6 +862,13 @@
 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
 %{_examplesdir}/%{name}-%{version}/octave
 
+%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
+
 %files -n python-plplot
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
@@ -866,6 +893,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.58  2011/12/05 19:59:20  qboosh
+- added lua binding
+
 Revision 1.57  2011/12/03 08:50:55  qboosh
 - updated java binding build
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to