Accepting request 145936 from systemsmanagement:wbem
- Update to SWIG 2.0.9 SWIG-2.0.9 summary: - Improved typemap matching. - Ruby 1.9 support is much improved. - Various bug fixes and minor improvements in C#, CFFI, Go, Java, Modula3, Octave, Perl, Python, R, Ruby, Tcl and in ccache-swig. - Removed patches (included in 2.0.9 release) - 0001-Ruby-replace-obsolete-STR2CSTR-macro-with-StringValu.patch - 0002-Ruby-use-RbConfig-instead-of-deprecated-Config-modul.patch - 0003-Ruby-Fix-include-pathes-for-Ruby-1.9.patch - 0004-Ruby-Add-local-dir-to-loadpath-for-Ruby-1.9.patch - 0007-Ruby-1.9-methods-returns-array-of-Symbols-now.patch - Removed broken patch - swig-2.0.4-guile2.patch - Disable tests failing on (deprecated) Python 2.4 - new patch: python-2.4.patch - fix build on SLE10: disable autogen.sh Add patch: PyInt_FromSize_t unavailable under Python 2.4 OBS-URL: https://build.opensuse.org/request/show/145936 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=43
This commit is contained in:
committed by
Git OBS Bridge
parent
e2dfc111bd
commit
10fd96e572
53
swig.spec
53
swig.spec
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: swig
|
||||
Version: 2.0.8
|
||||
Version: 2.0.9
|
||||
Release: 0
|
||||
Summary: Simplified Wrapper and Interface Generator
|
||||
License: GPL-3.0+ and BSD-3-Clause
|
||||
@@ -25,20 +25,14 @@ 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-FIX-UPSTREAM swig-2.0.4-guile2.patch pgajdos@suse.com -- generate guile 2 friendly code
|
||||
Patch: swig-2.0.4-guile2.patch
|
||||
# PATCH-PENDING-UPSTREAM - 3530439 - kkaempf@suse.de
|
||||
Patch1: 0001-Ruby-replace-obsolete-STR2CSTR-macro-with-StringValu.patch
|
||||
# PATCH-PENDING-UPSTREAM - 3530440 - kkaempf@suse.de
|
||||
Patch2: 0002-Ruby-use-RbConfig-instead-of-deprecated-Config-modul.patch
|
||||
# PATCH-PENDING-UPSTREAM - 3530442 - kkaempf@suse.de
|
||||
Patch3: 0003-Ruby-Fix-include-pathes-for-Ruby-1.9.patch
|
||||
# PATCH-PENDING-UPSTREAM - 3530443 - kkaempf@suse.de
|
||||
Patch4: 0004-Ruby-Add-local-dir-to-loadpath-for-Ruby-1.9.patch
|
||||
# PATCH-PENDING-UPSTREAM - 3530444 - kkaempf@suse.de
|
||||
Patch5: 0007-Ruby-1.9-methods-returns-array-of-Symbols-now.patch
|
||||
# Disable test failing on Python 2.4
|
||||
Patch5: python-2.4.patch
|
||||
# Disable tests failing on Ruby 1.9
|
||||
Patch6: 0008-Ruby-Disable-broken-tests.patch
|
||||
# Disable test failing in Python
|
||||
Patch7: 0012-Python-Disable-broken-test-in-threads_exception.patch
|
||||
# Test fails in openSUSE 12.1 only
|
||||
Patch8: skip-python-li_std_containers_int.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: boost-devel
|
||||
@@ -53,7 +47,11 @@ BuildRequires: -vim
|
||||
%if 0%{?fedora} + 0%{?rhel_version} + 0%{?centos_version} > 0
|
||||
%define docpath %{_docdir}/%{name}-%{version}
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: ruby
|
||||
%if (0%{?rhel_version} < 600) && (0%{?centos_version} < 600)
|
||||
# not available on RHEL-6
|
||||
BuildRequires: ruby-devel
|
||||
%endif
|
||||
%if 0%{?rhel_version} + 0%{?centos_version} == 0
|
||||
BuildRequires: perl-devel
|
||||
%endif
|
||||
@@ -127,39 +125,22 @@ understandig SWIG usage.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# guile 2 from 12.1
|
||||
%patch -p1
|
||||
# Ruby 1.9 from 12.1
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%if 0%{?suse_version} == 1010
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%patch6 -p1
|
||||
%patch8 -p1
|
||||
%endif
|
||||
%patch7 -p1
|
||||
|
||||
%build
|
||||
sh autogen.sh
|
||||
%configure --disable-ccache
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
# check fails on SLES9
|
||||
%if 0%{?sles_version} != 9
|
||||
# This test is buggy on x86-64
|
||||
%if 0%{?suse_version} == 1010
|
||||
%ifarch x86_64
|
||||
# This test fails on SLES 10 SP3+SP4 on 64bit (bnc#750618)
|
||||
rm -f Examples/test-suite/ruby/newobject1_runme.rb
|
||||
%endif
|
||||
%endif
|
||||
# Segfaults
|
||||
rm -f Examples/test-suite/python/li_std_containers_int_runme.py
|
||||
rm -f Examples/test-suite/python/li_boost_shared_ptr_runme.py
|
||||
make check
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
Reference in New Issue
Block a user