2014-06-09 16:44:31 +11:00
|
|
|
%bcond_with guile
|
|
|
|
%bcond_with mono
|
|
|
|
%bcond_with ocaml
|
2012-09-02 09:55:10 +04:00
|
|
|
|
2014-06-02 21:47:41 +11:00
|
|
|
Summary: Simplified Wrapper and Interface Generator (SWIG)
|
2012-09-02 09:55:10 +04:00
|
|
|
Name: swig
|
2019-07-31 22:54:39 +00:00
|
|
|
Version: 3.0.12
|
2019-07-31 23:03:20 +00:00
|
|
|
Release: 2
|
2012-09-02 09:55:10 +04:00
|
|
|
Epoch: 1
|
2014-06-02 21:47:41 +11:00
|
|
|
License: BSD
|
2012-09-02 09:55:10 +04:00
|
|
|
Group: Development/Other
|
2014-06-02 21:47:41 +11:00
|
|
|
Url: http://www.swig.org/
|
2012-09-02 09:55:10 +04:00
|
|
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2019-07-31 23:03:20 +00:00
|
|
|
Patch0: f96f086f029b4007b547181f4a1f91d8325bf13d.patch
|
2012-09-02 09:55:10 +04:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: imake
|
2014-06-02 21:47:41 +11:00
|
|
|
BuildRequires: libtool
|
2014-06-09 16:44:31 +11:00
|
|
|
%if %{with mono}
|
2014-06-02 21:47:41 +11:00
|
|
|
BuildRequires: mono
|
|
|
|
BuildRequires: pkgconfig(mono)
|
2012-02-01 14:52:22 +04:00
|
|
|
%endif
|
2014-06-09 16:44:31 +11:00
|
|
|
%if %{with ocaml}
|
2012-09-02 09:55:10 +04:00
|
|
|
BuildRequires: ocaml
|
2012-02-01 14:52:22 +04:00
|
|
|
%endif
|
2012-09-02 09:55:10 +04:00
|
|
|
BuildRequires: boost-devel
|
2014-06-02 21:47:41 +11:00
|
|
|
BuildRequires: libstdc++-devel
|
2014-06-09 16:44:31 +11:00
|
|
|
BuildRequires: lua-devel
|
2012-09-02 09:55:10 +04:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: php-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: tcl-devel
|
2014-06-09 16:44:31 +11:00
|
|
|
%if %{with guile}
|
2014-06-02 21:47:41 +11:00
|
|
|
BuildRequires: pkgconfig(guile-2.0)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
|
|
|
BuildRequires: pkgconfig(lua)
|
|
|
|
BuildRequires: pkgconfig(python)
|
2012-09-15 12:11:39 +11:00
|
|
|
Obsoletes: swig-devel < 2.0.7
|
2016-06-14 20:59:45 +10:00
|
|
|
Conflicts: swig2
|
2012-02-01 14:52:22 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
SWIG takes an interface description file written in a combination of C/C++
|
|
|
|
and special directives and produces interfaces to Perl, Python, and Tcl.
|
|
|
|
It allows scripting languages to use C/C++ code with minimal effort.
|
|
|
|
|
2014-06-02 21:47:41 +11:00
|
|
|
%files
|
|
|
|
%doc ANNOUNCE INSTALL CHANGES CHANGES.current LICENSE README TODO
|
|
|
|
%{_bindir}/swig
|
|
|
|
%{_bindir}/ccache-swig
|
|
|
|
%{_datadir}/swig
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 14:52:22 +04:00
|
|
|
|
2014-06-02 21:47:41 +11:00
|
|
|
%package doc
|
2012-09-02 09:55:10 +04:00
|
|
|
Summary: Documentation and examples for %{name}
|
|
|
|
Group: Development/C
|
2012-09-15 12:11:39 +11:00
|
|
|
Requires: %{name} = %{EVRD}
|
2012-02-01 14:52:22 +04:00
|
|
|
|
2014-06-02 21:47:41 +11:00
|
|
|
%description doc
|
2012-02-01 14:52:22 +04:00
|
|
|
SWIG takes an interface description file written in a combination of C/C++
|
|
|
|
and special directives and produces interfaces to Perl, Python, and Tcl.
|
|
|
|
It allows scripting languages to use C/C++ code with minimal effort.
|
|
|
|
|
|
|
|
Install the %{name}-doc package if you want to look at example and
|
|
|
|
documentation.
|
|
|
|
|
2014-06-02 21:47:41 +11:00
|
|
|
%files doc
|
|
|
|
%doc Examples Doc/Manual
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 14:52:22 +04:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-07-31 23:03:20 +00:00
|
|
|
%apply_patches
|
2012-02-01 14:52:22 +04:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
2020-01-04 07:20:38 +03:00
|
|
|
%configure
|
2020-01-13 18:43:33 +03:00
|
|
|
%make
|
2012-02-01 14:52:22 +04:00
|
|
|
|
|
|
|
%install
|
2020-01-13 18:43:33 +03:00
|
|
|
%makeinstall_std
|