- Update to 3.0.3

- Add support for C++11 strongly typed enumerations.
  - Numerous bug fixes and minor enhancements for C#, D, Go, Java,
    Javascript, PHP, Perl and Python wrappers.
- drop nested_classes.diff, patch is upstream

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=73
This commit is contained in:
Klaus Kämpf 2015-01-07 14:09:01 +00:00 committed by Git OBS Bridge
parent 86210b9fab
commit ee7802506b
5 changed files with 16 additions and 27 deletions

View File

@ -1,20 +0,0 @@
--- ./Source/CParse/parser.c.orig 2014-08-26 12:24:53.381788068 +0000
+++ ./Source/CParse/parser.c 2014-08-26 12:36:45.700287073 +0000
@@ -1065,7 +1065,7 @@ static Node *nested_forward_declaration(
}
}
- if (!GetFlag(currentOuterClass, "nested")) {
+ if (!currentOuterClass || !GetFlag(currentOuterClass, "nested")) {
if (nn && Equal(nodeType(nn), "classforward")) {
Node *n = nn;
SWIG_WARN_NODE_BEGIN(n);
@@ -7562,6 +7562,8 @@ yyreduce:
} else if (nscope_inner) {
/* this is tricky */
/* we add the declaration in the original namespace */
+ if (Strcmp(nodeType(nscope_inner), "class") == 0 && cparse_cplusplus && ignore_nested_classes && !GetFlag((yyval.node), "feature:flatnested"))
+ (yyval.node) = nested_forward_declaration((yyvsp[(1) - (9)].id), (yyvsp[(2) - (9)].id), (yyvsp[(3) - (9)].str), Copy((yyvsp[(3) - (9)].str)), (yyvsp[(9) - (9)].node));
appendChild(nscope_inner, (yyval.node));
Swig_symbol_setscope(Getattr(nscope_inner, "symtab"));
Delete(Namespaceprefix);

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2669657cabcedc371f63c0457407a183e0b6b2ef4e7e303c1ec9a3964cc7813
size 5690863

3
swig-3.0.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c96717d9b0dc918d99f3ce6f4517dd499dd29fcab64ea8e73fcbcee6f43f399
size 5724799

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jan 7 08:23:35 UTC 2015 - kkaempf@suse.com
- Update to 3.0.3
- Add support for C++11 strongly typed enumerations.
- Numerous bug fixes and minor enhancements for C#, D, Go, Java,
Javascript, PHP, Perl and Python wrappers.
- drop nested_classes.diff, patch is upstream
-------------------------------------------------------------------
Sun Sep 14 15:34:33 UTC 2014 - schwab@linux-m68k.org

View File

@ -1,7 +1,7 @@
#
# spec file for package swig
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: swig
Version: 3.0.2
Version: 3.0.3
Release: 0
Summary: Simplified Wrapper and Interface Generator
License: GPL-3.0+ and BSD-3-Clause
@ -25,7 +25,7 @@ Group: Development/Languages/C and C++
Url: http://www.swig.org/
Source: http://sourceforge.net/projects/swig/files/swig/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.rpmlintrc
Patch: nested_classes.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
@ -120,7 +120,6 @@ understandig SWIG usage.
%prep
%setup -q
%patch
%build
%configure --disable-ccache