2007-01-16 00:38:28 +01:00
|
|
|
#
|
2011-05-18 10:30:35 +02:00
|
|
|
# spec file for package swig
|
2007-01-16 00:38:28 +01:00
|
|
|
#
|
2020-04-15 14:46:08 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-16 00:38:28 +01:00
|
|
|
#
|
2008-09-26 15:12:14 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
Accepting request 701625 from home:kwk:branches:devel:tools:building
- Update to 4.0.0
- Support for Doxygen documentation comments which are parsed and
converted into JavaDoc or PyDoc comments.
- STL wrappers improved for C#, Java and Ruby.
- C++11 STL containers added for Java, Python and Ruby.
- Improved support for parsing C++11 and C++14 code.
- Various fixes for shared_ptr.
- Various C preprocessor corner case fixes.
- Corner case fixes for member function pointers.
- Python module overhaul by simplifying the generated code and turning
most optimizations on by default.
- %template improvements wrt scoping to align with C++ explicit
template instantiations.
- Added support for a command-line options file (sometimes
called a response file).
- Numerous enhancements and fixes for all supported target languages.
- SWIG now classifies the status of target languages into either
'Experimental' or 'Supported' to indicate the expected maturity
level.
- Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
Modula3 has been removed.
- Octave 4.4-5.1 support added.
- PHP5 support removed, PHP7 is now the supported PHP version.
- Minimum Python version required is now 2.7, 3.2-3.7 are the only
other versions supported.
- Added support for Javascript NodeJS versions 2-10.
- OCaml support is much improved and updated, minimum OCaml version
required is now 3.12.0.
See https://raw.githubusercontent.com/swig/swig/master/CHANGES
- Drop patches (all included)
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
swig-perl526.patch
swig-3.0.12-fix-collections.patch
swig-3.0.12-Fix-Coverity-issue-reported-for-setslice-pycontainer.patch
swig-3.0.12-Coverity-fix-issue-reported-for-wrapper-argument-che.patch
swig-3.0.12-support-octave-4.4.patch
swig-ocaml-int64.patch
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_ConvertF.patch
OBS-URL: https://build.opensuse.org/request/show/701625
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=112
2019-05-13 08:21:09 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:38:28 +01:00
|
|
|
#
|
|
|
|
|
2012-03-05 14:21:52 +01:00
|
|
|
|
2016-05-24 06:54:17 +02:00
|
|
|
%bcond_with swig_ocaml
|
2018-01-04 09:41:17 +01:00
|
|
|
%if 0%{?fedora} + 0%{?rhel_version} + 0%{?centos_version} > 0
|
|
|
|
%define docpath %{_docdir}/%{name}-%{version}
|
|
|
|
BuildRequires: perl-Test-Simple
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 0
|
|
|
|
%define docpath %{_docdir}/%{name}
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
%endif
|
2007-01-16 00:38:28 +01:00
|
|
|
Name: swig
|
2019-09-09 16:35:28 +02:00
|
|
|
Version: 4.0.1
|
2012-04-10 10:43:19 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Simplified Wrapper and Interface Generator
|
2018-09-18 10:10:32 +02:00
|
|
|
License: GPL-3.0-or-later AND BSD-3-Clause
|
2012-04-10 10:43:19 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2018-09-18 10:10:32 +02:00
|
|
|
URL: http://www.swig.org/
|
Accepting request 701625 from home:kwk:branches:devel:tools:building
- Update to 4.0.0
- Support for Doxygen documentation comments which are parsed and
converted into JavaDoc or PyDoc comments.
- STL wrappers improved for C#, Java and Ruby.
- C++11 STL containers added for Java, Python and Ruby.
- Improved support for parsing C++11 and C++14 code.
- Various fixes for shared_ptr.
- Various C preprocessor corner case fixes.
- Corner case fixes for member function pointers.
- Python module overhaul by simplifying the generated code and turning
most optimizations on by default.
- %template improvements wrt scoping to align with C++ explicit
template instantiations.
- Added support for a command-line options file (sometimes
called a response file).
- Numerous enhancements and fixes for all supported target languages.
- SWIG now classifies the status of target languages into either
'Experimental' or 'Supported' to indicate the expected maturity
level.
- Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
Modula3 has been removed.
- Octave 4.4-5.1 support added.
- PHP5 support removed, PHP7 is now the supported PHP version.
- Minimum Python version required is now 2.7, 3.2-3.7 are the only
other versions supported.
- Added support for Javascript NodeJS versions 2-10.
- OCaml support is much improved and updated, minimum OCaml version
required is now 3.12.0.
See https://raw.githubusercontent.com/swig/swig/master/CHANGES
- Drop patches (all included)
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
swig-perl526.patch
swig-3.0.12-fix-collections.patch
swig-3.0.12-Fix-Coverity-issue-reported-for-setslice-pycontainer.patch
swig-3.0.12-Coverity-fix-issue-reported-for-wrapper-argument-che.patch
swig-3.0.12-support-octave-4.4.patch
swig-ocaml-int64.patch
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_ConvertF.patch
OBS-URL: https://build.opensuse.org/request/show/701625
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=112
2019-05-13 08:21:09 +02:00
|
|
|
Source: https://github.com/%{name}/%{name}/archive/rel-%{version}.tar.gz
|
2012-04-10 10:43:19 +02:00
|
|
|
Source1: %{name}.rpmlintrc
|
2020-04-15 14:46:08 +02:00
|
|
|
|
|
|
|
# ruby 2.7 support (cherry-picked from 4.0.2~pre)
|
|
|
|
Patch1: 0001-Fix-code-generated-for-Ruby-global-variables.patch
|
|
|
|
Patch2: 0002-Add-support-for-Ruby-2.7.patch
|
|
|
|
Patch3: 0003-Move-new-macros-for-Ruby-to-their-dedicated-namespac.patch
|
|
|
|
Patch4: 0004-Improve-description-of-cast-macros-for-Ruby.patch
|
|
|
|
|
2020-05-23 13:42:21 +02:00
|
|
|
Patch300: ruby-std-wstring-byte-order.patch
|
2020-04-15 14:46:08 +02:00
|
|
|
Patch308: swig308-isfinite.diff
|
|
|
|
|
2012-05-26 23:53:07 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2018-09-18 10:10:32 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
2018-01-04 09:41:17 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: perl
|
2018-09-18 10:10:32 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%if 0%{?suse_version} >= 1500
|
2017-02-02 17:23:48 +01:00
|
|
|
BuildRequires: libboost_headers-devel
|
2017-11-08 09:40:08 +01:00
|
|
|
BuildRequires: python3-devel
|
2018-01-04 09:41:17 +01:00
|
|
|
BuildRequires: python3-tools
|
2017-02-02 17:23:48 +01:00
|
|
|
%else
|
2011-05-18 10:30:22 +02:00
|
|
|
BuildRequires: boost-devel
|
Accepting request 701625 from home:kwk:branches:devel:tools:building
- Update to 4.0.0
- Support for Doxygen documentation comments which are parsed and
converted into JavaDoc or PyDoc comments.
- STL wrappers improved for C#, Java and Ruby.
- C++11 STL containers added for Java, Python and Ruby.
- Improved support for parsing C++11 and C++14 code.
- Various fixes for shared_ptr.
- Various C preprocessor corner case fixes.
- Corner case fixes for member function pointers.
- Python module overhaul by simplifying the generated code and turning
most optimizations on by default.
- %template improvements wrt scoping to align with C++ explicit
template instantiations.
- Added support for a command-line options file (sometimes
called a response file).
- Numerous enhancements and fixes for all supported target languages.
- SWIG now classifies the status of target languages into either
'Experimental' or 'Supported' to indicate the expected maturity
level.
- Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
Modula3 has been removed.
- Octave 4.4-5.1 support added.
- PHP5 support removed, PHP7 is now the supported PHP version.
- Minimum Python version required is now 2.7, 3.2-3.7 are the only
other versions supported.
- Added support for Javascript NodeJS versions 2-10.
- OCaml support is much improved and updated, minimum OCaml version
required is now 3.12.0.
See https://raw.githubusercontent.com/swig/swig/master/CHANGES
- Drop patches (all included)
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
swig-perl526.patch
swig-3.0.12-fix-collections.patch
swig-3.0.12-Fix-Coverity-issue-reported-for-setslice-pycontainer.patch
swig-3.0.12-Coverity-fix-issue-reported-for-wrapper-argument-che.patch
swig-3.0.12-support-octave-4.4.patch
swig-ocaml-int64.patch
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_ConvertF.patch
OBS-URL: https://build.opensuse.org/request/show/701625
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=112
2019-05-13 08:21:09 +02:00
|
|
|
BuildRequires: python-devel > 2.6
|
2017-02-02 17:23:48 +01:00
|
|
|
%endif
|
2016-05-24 06:54:17 +02:00
|
|
|
%if %{with swig_ocaml}
|
|
|
|
BuildRequires: ncurses-devel
|
Accepting request 701625 from home:kwk:branches:devel:tools:building
- Update to 4.0.0
- Support for Doxygen documentation comments which are parsed and
converted into JavaDoc or PyDoc comments.
- STL wrappers improved for C#, Java and Ruby.
- C++11 STL containers added for Java, Python and Ruby.
- Improved support for parsing C++11 and C++14 code.
- Various fixes for shared_ptr.
- Various C preprocessor corner case fixes.
- Corner case fixes for member function pointers.
- Python module overhaul by simplifying the generated code and turning
most optimizations on by default.
- %template improvements wrt scoping to align with C++ explicit
template instantiations.
- Added support for a command-line options file (sometimes
called a response file).
- Numerous enhancements and fixes for all supported target languages.
- SWIG now classifies the status of target languages into either
'Experimental' or 'Supported' to indicate the expected maturity
level.
- Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
Modula3 has been removed.
- Octave 4.4-5.1 support added.
- PHP5 support removed, PHP7 is now the supported PHP version.
- Minimum Python version required is now 2.7, 3.2-3.7 are the only
other versions supported.
- Added support for Javascript NodeJS versions 2-10.
- OCaml support is much improved and updated, minimum OCaml version
required is now 3.12.0.
See https://raw.githubusercontent.com/swig/swig/master/CHANGES
- Drop patches (all included)
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
swig-perl526.patch
swig-3.0.12-fix-collections.patch
swig-3.0.12-Fix-Coverity-issue-reported-for-setslice-pycontainer.patch
swig-3.0.12-Coverity-fix-issue-reported-for-wrapper-argument-che.patch
swig-3.0.12-support-octave-4.4.patch
swig-ocaml-int64.patch
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_ConvertF.patch
OBS-URL: https://build.opensuse.org/request/show/701625
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=112
2019-05-13 08:21:09 +02:00
|
|
|
BuildRequires: ocaml >= 3.12.0
|
2016-05-24 06:54:17 +02:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
%endif
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
|
|
|
or Objective-C code with scripting languages including Perl, Tcl, and
|
|
|
|
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
|
|
|
and it generates an interface between C and your favorite scripting
|
|
|
|
language. However, this is only scratching the surface of what SWIG
|
|
|
|
can do--some of its more advanced features include automatic
|
|
|
|
documentation generation, module and library management, extensive
|
|
|
|
customization options, and more.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: SWIG Manual
|
2011-12-09 10:06:26 +01:00
|
|
|
License: BSD-3-Clause
|
2012-03-05 14:21:52 +01:00
|
|
|
Group: Documentation/Man
|
2007-01-16 00:38:28 +01:00
|
|
|
Requires: swig
|
2010-02-11 19:01:01 +01:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
|
|
|
or Objective-C code with scripting languages including Perl, Tcl, and
|
|
|
|
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
|
|
|
and it generates an interface between C and your favorite scripting
|
|
|
|
language. However, this is only scratching the surface of what SWIG
|
|
|
|
can do--some of its more advanced features include automatic
|
|
|
|
documentation generation, module and library management, extensive
|
|
|
|
customization options, and more.
|
|
|
|
|
|
|
|
This package contains the SWIG manual.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: SWIG example files
|
2011-12-09 10:06:26 +01:00
|
|
|
License: BSD-3-Clause
|
2012-03-05 14:21:52 +01:00
|
|
|
Group: Documentation/Howto
|
2007-01-16 00:38:28 +01:00
|
|
|
Requires: swig
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
|
|
|
or Objective-C code with scripting languages including Perl, Tcl, and
|
|
|
|
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
|
|
|
and it generates an interface between C and your favorite scripting
|
|
|
|
language. However, this is only scratching the surface of what SWIG
|
|
|
|
can do--some of its more advanced features include automatic
|
|
|
|
documentation generation, module and library management, extensive
|
|
|
|
customization options, and more.
|
|
|
|
|
2007-04-06 00:31:16 +02:00
|
|
|
This package contains SWIG examples, useful both for testing and
|
2007-01-16 00:38:28 +01:00
|
|
|
understandig SWIG usage.
|
|
|
|
|
|
|
|
%prep
|
Accepting request 701625 from home:kwk:branches:devel:tools:building
- Update to 4.0.0
- Support for Doxygen documentation comments which are parsed and
converted into JavaDoc or PyDoc comments.
- STL wrappers improved for C#, Java and Ruby.
- C++11 STL containers added for Java, Python and Ruby.
- Improved support for parsing C++11 and C++14 code.
- Various fixes for shared_ptr.
- Various C preprocessor corner case fixes.
- Corner case fixes for member function pointers.
- Python module overhaul by simplifying the generated code and turning
most optimizations on by default.
- %template improvements wrt scoping to align with C++ explicit
template instantiations.
- Added support for a command-line options file (sometimes
called a response file).
- Numerous enhancements and fixes for all supported target languages.
- SWIG now classifies the status of target languages into either
'Experimental' or 'Supported' to indicate the expected maturity
level.
- Support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike,
Modula3 has been removed.
- Octave 4.4-5.1 support added.
- PHP5 support removed, PHP7 is now the supported PHP version.
- Minimum Python version required is now 2.7, 3.2-3.7 are the only
other versions supported.
- Added support for Javascript NodeJS versions 2-10.
- OCaml support is much improved and updated, minimum OCaml version
required is now 3.12.0.
See https://raw.githubusercontent.com/swig/swig/master/CHANGES
- Drop patches (all included)
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
swig-3.0.12-Fix-generated-code-for-constant-expressions-containi.patch
swig-perl526.patch
swig-3.0.12-fix-collections.patch
swig-3.0.12-Fix-Coverity-issue-reported-for-setslice-pycontainer.patch
swig-3.0.12-Coverity-fix-issue-reported-for-wrapper-argument-che.patch
swig-3.0.12-support-octave-4.4.patch
swig-ocaml-int64.patch
swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_ConvertF.patch
OBS-URL: https://build.opensuse.org/request/show/701625
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=112
2019-05-13 08:21:09 +02:00
|
|
|
%setup -q -n %{name}-rel-%{version}
|
2018-09-18 10:10:32 +02:00
|
|
|
%autopatch -p1
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-24 06:54:17 +02:00
|
|
|
%ifarch s390 s390x
|
|
|
|
export CCSHARED="-fPIC"
|
|
|
|
%endif
|
2015-07-06 10:43:16 +02:00
|
|
|
./autogen.sh
|
2016-05-24 06:54:17 +02:00
|
|
|
%configure \
|
|
|
|
%if %{without swig_ocaml}
|
|
|
|
--without-ocaml \
|
|
|
|
%endif
|
|
|
|
--disable-ccache
|
2011-05-18 10:30:22 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2018-09-18 10:10:32 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-01-04 09:41:17 +01:00
|
|
|
export PY3=true
|
|
|
|
%endif
|
|
|
|
make %{?_smp_mflags} check
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-04 09:41:17 +01:00
|
|
|
%make_install
|
2011-05-18 10:30:22 +02:00
|
|
|
|
2011-09-21 09:57:50 +02:00
|
|
|
install -d %{buildroot}%{docpath}
|
2011-05-18 10:30:22 +02:00
|
|
|
cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
2011-09-21 09:57:50 +02:00
|
|
|
%{buildroot}%{docpath}
|
2011-05-18 10:30:22 +02:00
|
|
|
install -d %{buildroot}%{_libdir}/swig
|
|
|
|
cp -a Examples %{buildroot}%{_libdir}/swig/examples
|
- Update to 2.0.6
* Various fixes with templates and typedef types.
* Some template lookup problems fixed.
* Templated type fixes to use correct typemaps.
* Autodoc documentation generation improvements.
* Python STL container wrappers improvements including addition of
stepped slicing.
* Approximately 70 fixes and minor enhancements for the following
target languages: AllegroCL, C#, D, Go, Java, Lua, Ocaml, Octave,
Perl, PHP, Python, R, Ruby, Tcl, Xml.
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=35
2012-04-30 14:24:08 +02:00
|
|
|
rm -rf %{buildroot}%{_libdir}/swig/examples/test-suite
|
2011-05-18 10:30:22 +02:00
|
|
|
|
2012-04-10 10:43:19 +02:00
|
|
|
# rm files that are not needed for running or rebuilding the examples
|
2011-05-18 10:30:22 +02:00
|
|
|
find %{buildroot}%{_libdir}/swig \
|
2007-05-24 13:58:23 +02:00
|
|
|
-name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \
|
|
|
|
-name '*.o' -o -name '*_wrap.c' | xargs rm
|
2011-05-18 10:30:22 +02:00
|
|
|
|
2007-05-24 13:58:23 +02:00
|
|
|
# fix perms
|
2011-09-21 09:57:50 +02:00
|
|
|
chmod -x %{buildroot}%{docpath}/Manual/*
|
2014-09-15 08:37:41 +02:00
|
|
|
find %{buildroot}%{_libdir}/swig -name '*.h' -perm /111 | \
|
2007-05-24 13:58:23 +02:00
|
|
|
xargs --no-run-if-empty chmod -x
|
2011-09-21 09:57:50 +02:00
|
|
|
ln -s %{_libdir}/swig/examples %{buildroot}%{docpath}/Examples
|
|
|
|
|
2012-04-10 10:43:19 +02:00
|
|
|
%fdupes %{buildroot}
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
2011-09-21 09:57:50 +02:00
|
|
|
%dir %{docpath}
|
|
|
|
%{docpath}/[A-Z][A-Z]*
|
2007-01-16 00:38:28 +01:00
|
|
|
%{_datadir}/swig
|
|
|
|
%attr(755,root,root) %{_bindir}/swig
|
|
|
|
|
|
|
|
%files doc
|
2011-09-21 09:57:50 +02:00
|
|
|
%{docpath}/Devel
|
|
|
|
%{docpath}/Manual
|
2007-01-16 00:38:28 +01:00
|
|
|
|
|
|
|
%files examples
|
2011-09-21 09:57:50 +02:00
|
|
|
%{docpath}/Examples
|
2007-04-06 00:31:16 +02:00
|
|
|
%{_libdir}/swig
|
2007-12-03 23:41:10 +01:00
|
|
|
|
2007-04-06 00:31:16 +02:00
|
|
|
%changelog
|