From bc44dd170cc4d17b7c71ec1f4d512b1ae4da0008 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Thu, 23 Jul 2015 09:00:49 +0200 Subject: [PATCH 1/5] Disable Ruby tests of Fedora 23 and higher when building on armv7 --- swig.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/swig.spec b/swig.spec index 9a23b4f..87bf65c 100644 --- a/swig.spec +++ b/swig.spec @@ -7,9 +7,9 @@ # Ruby segfaults in some tests on fc23 and only on armv7-arch. %ifarch %{arm} s390 -%if 0%{?fedora} == 23 +%if 0%{?fedora} >= 23 %{!?rubylang:%global rubylang 0} -%endif # 0%%{?fedora} == 23 +%endif # 0%%{?fedora} >= 23 %endif #arch %%{arm} s390 %{!?rubylang:%global rubylang 1} @@ -39,7 +39,7 @@ Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig Version: 3.0.6 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz @@ -201,6 +201,9 @@ ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %changelog +* Thu Jul 23 2015 Jitka Plesnikova - 3.0.6-4 +- Disable Ruby tests on Fedora 23 and higher when building on armv7 + * Wed Jul 22 2015 David Tardon - 3.0.6-3 - rebuild for Boost 1.58 From e82af05efd8224256824b5942ac412f24541d1e1 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Thu, 23 Jul 2015 10:32:09 +0200 Subject: [PATCH 2/5] Update list of Perl dependencies --- swig.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/swig.spec b/swig.spec index 87bf65c..65867d3 100644 --- a/swig.spec +++ b/swig.spec @@ -54,7 +54,16 @@ BuildRequires: perl, python2-devel, pcre-devel BuildRequires: autoconf, automake, gawk, dos2unix BuildRequires: help2man BuildRequires: perl-devel +BuildRequires: perl(base) +BuildRequires: perl(Config) +BuildRequires: perl(Devel::Peek) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(fields) +BuildRequires: perl(Math::BigInt) +BuildRequires: perl(strict) BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) BuildRequires: boost-devel %if %{tcl} BuildRequires: tcl-devel @@ -203,6 +212,7 @@ ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig %changelog * Thu Jul 23 2015 Jitka Plesnikova - 3.0.6-4 - Disable Ruby tests on Fedora 23 and higher when building on armv7 +- Update list of Perl dependencies * Wed Jul 22 2015 David Tardon - 3.0.6-3 - rebuild for Boost 1.58 From c268da3d2b5e3d9388174351bb8ff77c0fa005b7 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Thu, 23 Jul 2015 12:09:54 +0200 Subject: [PATCH 3/5] rebuild for Boost 1.58 --- swig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swig.spec b/swig.spec index 65867d3..ef58359 100644 --- a/swig.spec +++ b/swig.spec @@ -39,7 +39,7 @@ Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig Version: 3.0.6 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz @@ -210,6 +210,9 @@ ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %changelog +* Thu Jul 23 2015 Jitka Plesnikova - 3.0.6-5 +- rebuild for Boost 1.58 + * Thu Jul 23 2015 Jitka Plesnikova - 3.0.6-4 - Disable Ruby tests on Fedora 23 and higher when building on armv7 - Update list of Perl dependencies From addd9ffa3c855c244667a5b78051baa82b6f2a63 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 29 Jul 2015 13:24:37 -0500 Subject: [PATCH 4/5] - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 --- swig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swig.spec b/swig.spec index ef58359..dfbc046 100644 --- a/swig.spec +++ b/swig.spec @@ -39,7 +39,7 @@ Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig Version: 3.0.6 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz @@ -210,6 +210,9 @@ ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %changelog +* Wed Jul 29 2015 Fedora Release Engineering - 3.0.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 + * Thu Jul 23 2015 Jitka Plesnikova - 3.0.6-5 - rebuild for Boost 1.58 From 917f24662c7ac2cd806eb501d350777133421519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 4 Aug 2015 07:21:37 +0200 Subject: [PATCH 5/5] Update to 3.0.7 (#1249845) Dropped Patch2, changes applied in upstream tarball --- .gitignore | 1 + sources | 2 +- swig-octave4.patch | 227 --------------------------------------------- swig.spec | 12 +-- 4 files changed, 8 insertions(+), 234 deletions(-) delete mode 100644 swig-octave4.patch diff --git a/.gitignore b/.gitignore index d0f836c..cc105c1 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ swig-2.0.0.tar.gz /swig-3.0.2.tar.gz /swig-3.0.5.tar.gz /swig-3.0.6.tar.gz +/swig-3.0.7.tar.gz diff --git a/sources b/sources index 819831a..93a3c36 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -df43ae271642bcfa61c1e59f970f9963 swig-3.0.6.tar.gz +7fff46c84b8c630ede5b0f0827e3d90a swig-3.0.7.tar.gz diff --git a/swig-octave4.patch b/swig-octave4.patch deleted file mode 100644 index d583c5b..0000000 --- a/swig-octave4.patch +++ /dev/null @@ -1,227 +0,0 @@ -diff --git a/Examples/test-suite/octave/default_constructor_runme.m b/Examples/test-suite/octave/default_constructor_runme.m -index 2f8bb39..ebe553b 100644 ---- a/Examples/test-suite/octave/default_constructor_runme.m -+++ b/Examples/test-suite/octave/default_constructor_runme.m -@@ -14,24 +14,18 @@ try - catch - end_try_catch - --del_b = dc.delete_B; -- - try - bb = dc.new_BB(); - error("Whoa. new_BB created.") - catch - end_try_catch - --del_bb = dc.delete_BB; -- - try - c = dc.new_C(); - error("Whoa. new_C created.") - catch - end_try_catch - --del_c = dc.delete_C; -- - cc = dc.new_CC(); - dc.delete_CC(cc); - -@@ -41,24 +35,18 @@ try - catch - end_try_catch - --del_d = dc.delete_D; -- - try - dd = dc.new_DD(); - error("Whoa. new_DD created") - catch - end_try_catch - --dd = dc.delete_DD; -- - try - ad = dc.new_AD(); - error("Whoa. new_AD created") - catch - end_try_catch - --del_ad = dc.delete_AD; -- - e = dc.new_E(); - dc.delete_E(e); - -@@ -71,12 +59,10 @@ try - catch - end_try_catch - --del_eb = dc.delete_EB; -- - f = dc.new_F(); - - try -- del_f = dc.delete_F; -+ del_f = dc.delete_F(f); - error("Whoa. delete_F created") - catch - end_try_catch -@@ -86,7 +72,7 @@ dc.F_destroy(f); - g = dc.new_G(); - - try -- del_g = dc.delete_G; -+ del_g = dc.delete_G(g); - error("Whoa. delete_G created") - catch - end_try_catch -diff --git a/Lib/octave/octcontainer.swg b/Lib/octave/octcontainer.swg -index 723256c..0211b33 100644 ---- a/Lib/octave/octcontainer.swg -+++ b/Lib/octave/octcontainer.swg -@@ -12,6 +12,7 @@ - * ----------------------------------------------------------------------------- */ - - %{ -+#include - #include - %} - -diff --git a/Lib/octave/octrun.swg b/Lib/octave/octrun.swg -index b5c3e5d..ddfd489 100644 ---- a/Lib/octave/octrun.swg -+++ b/Lib/octave/octrun.swg -@@ -868,6 +868,17 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - } - - #if defined (HAVE_HDF5) -+# if SWIG_OCTAVE_PREREQ(4,0,0) -+ virtual bool -+ save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats) { -+ return true; -+ } -+ -+ virtual bool -+ load_hdf5 (octave_hdf5_id loc_id, const char *name, bool have_h5giterate_bug) { -+ return true; -+ } -+# else - virtual bool - save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats) { - return true; -@@ -877,6 +888,7 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - load_hdf5 (hid_t loc_id, const char *name, bool have_h5giterate_bug) { - return true; - } -+# endif - #endif - - virtual octave_value convert_to_str(bool pad = false, bool force = false, char type = '"') const { -@@ -969,7 +981,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - return octave_value(); - } - -+#if SWIG_OCTAVE_PREREQ(4,0,0) -+ void print(std::ostream &os, bool pr_as_read_syntax = false) { -+#else - void print(std::ostream &os, bool pr_as_read_syntax = false) const { -+#endif - if (is_string()) { - os << string_value(); - return; -@@ -1089,6 +1105,15 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - { return ptr->load_binary(is, swap, fmt); } - - #if defined (HAVE_HDF5) -+# if SWIG_OCTAVE_PREREQ(4,0,0) -+ virtual bool -+ save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats) -+ { return ptr->save_hdf5(loc_id, name, save_as_floats); } -+ -+ virtual bool -+ load_hdf5 (octave_hdf5_id loc_id, const char *name, bool have_h5giterate_bug) -+ { return ptr->load_hdf5(loc_id, name, have_h5giterate_bug); } -+# else - virtual bool - save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats) - { return ptr->save_hdf5(loc_id, name, save_as_floats); } -@@ -1096,6 +1121,7 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - virtual bool - load_hdf5 (hid_t loc_id, const char *name, bool have_h5giterate_bug) - { return ptr->load_hdf5(loc_id, name, have_h5giterate_bug); } -+# endif - #endif - - virtual octave_value convert_to_str(bool pad = false, bool force = false, char type = '"') const -@@ -1104,14 +1130,22 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - virtual octave_value convert_to_str_internal(bool pad, bool force, char type) const - { return ptr->convert_to_str_internal(pad, force, type); } - -+#if SWIG_OCTAVE_PREREQ(4,0,0) -+ void print(std::ostream &os, bool pr_as_read_syntax = false) -+#else - void print(std::ostream &os, bool pr_as_read_syntax = false) const -+#endif - { return ptr->print(os, pr_as_read_syntax); } - - private: -+#if !SWIG_OCTAVE_PREREQ(4,0,0) - DECLARE_OCTAVE_ALLOCATOR; -+#endif - DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA; - }; -+#if !SWIG_OCTAVE_PREREQ(4,0,0) - DEFINE_OCTAVE_ALLOCATOR(octave_swig_ref); -+#endif - DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(octave_swig_ref, "swig_ref", "swig_ref"); - - class octave_swig_packed:public octave_base_value { -@@ -1143,7 +1177,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - return true; - } - -+#if SWIG_OCTAVE_PREREQ(4,0,0) -+ void print(std::ostream &os, bool pr_as_read_syntax = false) { -+#else - void print(std::ostream &os, bool pr_as_read_syntax = false) const { -+#endif - indent(os); - os << "swig packed type: name = " << (type ? type->name : std::string()) << ", len = " << buf.size(); newline(os); - } -@@ -1167,6 +1205,17 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - } - - #if defined (HAVE_HDF5) -+# if SWIG_OCTAVE_PREREQ(4,0,0) -+ virtual bool -+ save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats) { -+ return true; -+ } -+ -+ virtual bool -+ load_hdf5 (octave_hdf5_id loc_id, const char *name, bool have_h5giterate_bug) { -+ return true; -+ } -+# else - virtual bool - save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats) { - return true; -@@ -1176,13 +1225,18 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); - load_hdf5 (hid_t loc_id, const char *name, bool have_h5giterate_bug) { - return true; - } -+# endif - #endif - - private: -+#if !SWIG_OCTAVE_PREREQ(4,0,0) - DECLARE_OCTAVE_ALLOCATOR; -+#endif - DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA; - }; -+#if !SWIG_OCTAVE_PREREQ(4,0,0) - DEFINE_OCTAVE_ALLOCATOR(octave_swig_packed); -+#endif - DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(octave_swig_packed, "swig_packed", "swig_packed"); - - SWIGRUNTIME octave_value_list octave_set_immutable(const octave_value_list &args, int nargout) { diff --git a/swig.spec b/swig.spec index dfbc046..920f9ae 100644 --- a/swig.spec +++ b/swig.spec @@ -38,17 +38,14 @@ Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig -Version: 3.0.6 -Release: 6%{?dist} +Version: 3.0.7 +Release: 1%{?dist} License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz # Define the part of man page sections Source1: description.h2m Patch1: swig207-setools.patch -# Octave 4.0.0 support -# https://github.com/swig/swig/pull/460 -Patch2: swig-octave4.patch BuildRequires: perl, python2-devel, pcre-devel BuildRequires: autoconf, automake, gawk, dos2unix @@ -112,7 +109,6 @@ This package contains documentation for SWIG and useful examples %setup -q -n swig-%{version} %patch1 -p1 -b .setools -%patch2 -p1 -b .octave4 for all in CHANGES README; do iconv -f ISO88591 -t UTF8 < $all > $all.new @@ -210,6 +206,10 @@ ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %changelog +* Tue Aug 04 2015 Björn Esser - 3.0.7-1 +- Update to 3.0.7 (#1249845) +- Dropped Patch2, changes applied in upstream tarball + * Wed Jul 29 2015 Fedora Release Engineering - 3.0.6-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159