swig/swig.spec
2020-01-13 18:43:33 +03:00

82 lines
2 KiB
RPMSpec

%bcond_with guile
%bcond_with mono
%bcond_with ocaml
Summary: Simplified Wrapper and Interface Generator (SWIG)
Name: swig
Version: 3.0.12
Release: 2
Epoch: 1
License: BSD
Group: Development/Other
Url: http://www.swig.org/
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: f96f086f029b4007b547181f4a1f91d8325bf13d.patch
BuildRequires: bison
BuildRequires: imake
BuildRequires: libtool
%if %{with mono}
BuildRequires: mono
BuildRequires: pkgconfig(mono)
%endif
%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}
BuildRequires: pkgconfig(guile-2.0)
%endif
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(python)
Obsoletes: swig-devel < 2.0.7
Conflicts: swig2
%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.
%files
%doc ANNOUNCE INSTALL CHANGES CHANGES.current LICENSE README TODO
%{_bindir}/swig
%{_bindir}/ccache-swig
%{_datadir}/swig
#----------------------------------------------------------------------------
%package doc
Summary: Documentation and examples for %{name}
Group: Development/C
Requires: %{name} = %{EVRD}
%description doc
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.
%files doc
%doc Examples Doc/Manual
#----------------------------------------------------------------------------
%prep
%setup -q
%apply_patches
%build
./autogen.sh
%configure
%make
%install
%makeinstall_std