swig/swig.spec

84 lines
2 KiB
RPMSpec
Raw Normal View History

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
2023-01-06 18:06:08 +03:00
Version: 4.0.1
Release: 1
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
Patch0: swig-3.0.10-octave.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
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
2023-01-06 18:06:08 +03:00
#patch0 -p1 -b .octave~
2012-02-01 14:52:22 +04:00
%build
./autogen.sh
%configure2_5x
%make
%install
2012-09-02 09:55:10 +04:00
%makeinstall_std
2012-02-01 14:52:22 +04:00