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