Build with lua support

This commit is contained in:
Andrey Bondrov 2014-06-09 16:44:31 +11:00
parent 74c76778e0
commit 9f160e1fec

View file

@ -1,11 +1,6 @@
%define with_guile 0 %bcond_with guile
%{?_with_ruby: %{expand: %%global with_ruby 1}} %bcond_with mono
%bcond_with ocaml
%define with_ocaml 0
%{?_with_ocaml: %{expand: %%global with_ocaml 1}}
%define with_mono 0
%{?_with_mono: %{expand: %%global with_mono 1}}
Summary: Simplified Wrapper and Interface Generator (SWIG) Summary: Simplified Wrapper and Interface Generator (SWIG)
Name: swig Name: swig
@ -20,20 +15,21 @@ Patch0: swig-3.0.0-pylib.patch
BuildRequires: bison BuildRequires: bison
BuildRequires: imake BuildRequires: imake
BuildRequires: libtool BuildRequires: libtool
%if %{with_mono} %if %{with mono}
BuildRequires: mono BuildRequires: mono
BuildRequires: pkgconfig(mono) BuildRequires: pkgconfig(mono)
%endif %endif
%if %{with_ocaml} %if %{with ocaml}
BuildRequires: ocaml BuildRequires: ocaml
%endif %endif
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: libstdc++-devel BuildRequires: libstdc++-devel
BuildRequires: lua-devel
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: php-devel BuildRequires: php-devel
BuildRequires: ruby-devel BuildRequires: ruby-devel
BuildRequires: tcl-devel BuildRequires: tcl-devel
%if %{with_guile} %if %{with guile}
BuildRequires: pkgconfig(guile-2.0) BuildRequires: pkgconfig(guile-2.0)
%endif %endif
BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(libpcre)