Accepting request 96075 from devel:tools:building
- fix license to be in spdx.org format (forwarded request 96070 from coolo) OBS-URL: https://build.opensuse.org/request/show/96075 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swig?expand=0&rev=27
This commit is contained in:
commit
c439440755
25
swig-2.0.4-guile2.patch
Normal file
25
swig-2.0.4-guile2.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Index: swig-2.0.4/Lib/guile/guile_scm_run.swg
|
||||||
|
===================================================================
|
||||||
|
--- swig-2.0.4.orig/Lib/guile/guile_scm_run.swg
|
||||||
|
+++ swig-2.0.4/Lib/guile/guile_scm_run.swg
|
||||||
|
@@ -60,16 +60,17 @@ static swig_module_info *SWIG_Guile_GetM
|
||||||
|
SWIGINTERN char *
|
||||||
|
SWIG_Guile_scm2newstr(SCM str, size_t *len) {
|
||||||
|
#define FUNC_NAME "SWIG_Guile_scm2newstr"
|
||||||
|
- char *ret;
|
||||||
|
+ char *ret, *tmp;
|
||||||
|
size_t l;
|
||||||
|
|
||||||
|
SCM_ASSERT (SCM_STRINGP(str), str, 1, FUNC_NAME);
|
||||||
|
|
||||||
|
- l = SCM_STRING_LENGTH(str);
|
||||||
|
+ tmp = scm_to_utf8_string(str);
|
||||||
|
+ memcpy(ret, tmp, l);
|
||||||
|
+ free(tmp);
|
||||||
|
ret = (char *) SWIG_malloc( (l + 1) * sizeof(char));
|
||||||
|
if (!ret) return NULL;
|
||||||
|
|
||||||
|
- memcpy(ret, SCM_STRING_CHARS(str), l);
|
||||||
|
ret[l] = '\0';
|
||||||
|
if (len) *len = l;
|
||||||
|
return ret;
|
10
swig.changes
10
swig.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 9 08:55:59 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
- fix license to be in spdx.org format
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 5 13:37:26 UTC 2011 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- generate guile 2 friendly code
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 20 09:31:28 UTC 2011 - kkaempf@suse.com
|
Tue Sep 20 09:31:28 UTC 2011 - kkaempf@suse.com
|
||||||
|
|
||||||
|
20
swig.spec
20
swig.spec
@ -15,8 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: swig
|
Name: swig
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -50,11 +48,11 @@ BuildRequires: ruby-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
Version: 2.0.4
|
Version: 2.0.4
|
||||||
Release: 5
|
Release: 0
|
||||||
License: GPLv3+ and BSD
|
|
||||||
Summary: Simplified Wrapper and Interface Generator
|
Summary: Simplified Wrapper and Interface Generator
|
||||||
Url: http://www.swig.org
|
License: GPL-3.0+ and BSD-3-Clause
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
|
Url: http://www.swig.org
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}.rpmlintrc
|
Source1: %{name}.rpmlintrc
|
||||||
# PATCH-FIX-UPSTREAM swig-2.0.4-support-python32.patch idoenmez@suse.de -- Support Python 3.2
|
# PATCH-FIX-UPSTREAM swig-2.0.4-support-python32.patch idoenmez@suse.de -- Support Python 3.2
|
||||||
@ -65,6 +63,8 @@ Patch2: swig-2.0.4-ptrdiff_t.patch
|
|||||||
Patch3: swig-2.0.4-disable-broken-tests.patch
|
Patch3: swig-2.0.4-disable-broken-tests.patch
|
||||||
# swig-2.0.4-disable-broken-tests_rhel4.patch kkaempf@suse.com -- disable tests failing on RHEL4
|
# swig-2.0.4-disable-broken-tests_rhel4.patch kkaempf@suse.com -- disable tests failing on RHEL4
|
||||||
Patch4: swig-2.0.4-disable-broken-tests_rhel4.patch
|
Patch4: swig-2.0.4-disable-broken-tests_rhel4.patch
|
||||||
|
# PATCH-FIX-UPSTREAM swig-2.0.4-guile2.patch pgajdos@suse.com -- generate guile 2 friendly code
|
||||||
|
Patch5: swig-2.0.4-guile2.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,9 +78,8 @@ documentation generation, module and library management, extensive
|
|||||||
customization options, and more.
|
customization options, and more.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: BSD3c
|
|
||||||
Summary: SWIG Manual
|
Summary: SWIG Manual
|
||||||
Group: Development/Languages/C and C++
|
License: BSD-3-Clause
|
||||||
Requires: swig
|
Requires: swig
|
||||||
%if 0%{?suse_version} >= 1120
|
%if 0%{?suse_version} >= 1120
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -99,9 +98,8 @@ customization options, and more.
|
|||||||
This package contains the SWIG manual.
|
This package contains the SWIG manual.
|
||||||
|
|
||||||
%package examples
|
%package examples
|
||||||
License: BSD3c
|
|
||||||
Summary: SWIG example files
|
Summary: SWIG example files
|
||||||
Group: Development/Languages/C and C++
|
License: BSD-3-Clause
|
||||||
Requires: swig
|
Requires: swig
|
||||||
|
|
||||||
%description examples
|
%description examples
|
||||||
@ -125,6 +123,10 @@ understandig SWIG usage.
|
|||||||
%if 0%{?rhel_version} >= 400 && 0%{?rhel_version} < 500
|
%if 0%{?rhel_version} >= 400 && 0%{?rhel_version} < 500
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%endif
|
%endif
|
||||||
|
# guile 2 from 12.1
|
||||||
|
%if 0%{?suse_version} >= 1210
|
||||||
|
%patch5 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-ccache
|
%configure --disable-ccache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user