]> git.pld-linux.org Git - packages/plplot.git/commitdiff
- added lua binding
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 5 Dec 2011 19:59:20 +0000 (19:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    plplot.spec -> 1.58

plplot.spec

index 0ac84d380e76df75cef51821e13af1e415434103..7711f9e35c7bf1b200be95feb2b239e8cadeb686 100644 (file)
@@ -1,6 +1,6 @@
 # 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
@@ -13,6 +13,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
@@ -53,6 +54,7 @@ BuildRequires:        libjpeg-devel
 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}
@@ -458,6 +460,19 @@ PLplot library - examples for Octave binding.
 %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
@@ -521,6 +536,12 @@ cd build
        -DJAVAWRAPPER_DIR=%{_libdir} \
 %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 \
@@ -530,10 +551,9 @@ cd build
        -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 \
@@ -841,6 +861,13 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.034547 seconds and 4 git commands to generate.