Add fix for newer NodeJS version, minor spec cleanups

This commit is contained in:
Peter Robinson 2020-02-25 01:00:31 +00:00
parent 035e9e01d4
commit 81741091cf
2 changed files with 1871 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@
%{!?Rlang:%global Rlang 1}
%bcond_without build_ccache_swig
%endif
%ifarch aarch64 %{arm} %{mips} ppc64le ppc %{power64} s390 s390x
%ifarch aarch64 %{arm} %{mips} ppc %{power64} s390 s390x
%{!?javalang:%global javalang 0}
%else
%{!?javalang:%global javalang 1}
@ -53,7 +53,7 @@
Summary: Connects C/C++/Objective C to some high-level programming languages
Name: swig
Version: 4.0.1
Release: 7%{?dist}
Release: 8%{?dist}
License: GPLv3+ and BSD
URL: http://swig.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
@ -75,6 +75,8 @@ Patch2: swig-4.0.1-Add-support-for-Ruby-2.7.patch
# Fix crash in Python backend when using empty docstrings
# https://github.com/swig/swig/pull/1710
Patch3: swig-4.0.1-Fix-crash-in-Python-backend-when-using-empty-docstrings.patch
# https://github.com/swig/swig/pull/1702
Patch4: swig-Upgrade-to-support-newer-NodeJS.patch
BuildRequires: perl-interpreter, pcre-devel
%if %{python2lang}
@ -173,12 +175,7 @@ This package contains file with commands for easier debugging of SWIG
in gdb.
%prep
%setup -q -n swig-%{version}
%patch0 -p1 -b .isystem
%patch1 -p1 -b .global
%patch2 -p1 -b .ruby27
%patch3 -p1 -b .python
%autosetup -p1
for all in CHANGES README; do
iconv -f ISO88591 -t UTF8 < $all > $all.new
@ -351,6 +348,9 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%{_datadir}/%{name}/gdb
%changelog
* Tue Feb 25 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.0.1-8
- Add fix for newer NodeJS version
* Tue Feb 04 2020 Michael Jeanson <mjeanson@efficios.com> - 4.0.1-7
- Fix crash in Python backend when using empty docstrings