From 370a12778942e2b53d838e55ca0768194ad5659c Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 4 Jan 2017 13:26:34 +0100 Subject: [PATCH] Update to 3.0.11; Add support for PHP 7 --- .gitignore | 1 + sources | 2 +- swig.spec | 22 +++++++++++++++++----- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bb71b7e..f9b4dec 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ swig-2.0.0.tar.gz /swig-3.0.8.tar.gz /swig-3.0.9.tar.gz /swig-3.0.10.tar.gz +/swig-3.0.11.tar.gz diff --git a/sources b/sources index f433af1..e4912b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bb4ab8047159469add7d00910e203124 swig-3.0.10.tar.gz +SHA512 (swig-3.0.11.tar.gz) = 36771bd29fcec159d283f0f8d056937c6c913fec717f1f3b97a9b17fa27a8a85aa5f7b79bec3c46d70b625c36c26e9e856a4750cbd0872070ca18e9174842a52 diff --git a/swig.spec b/swig.spec index db10b32..cbba80a 100644 --- a/swig.spec +++ b/swig.spec @@ -4,7 +4,7 @@ %{!?tcl:%global tcl 1} %{!?guile:%global guile 1} %{!?lualang:%global lualang 1} - +%{!?phplang:%global phplang 1} %{!?rubylang:%global rubylang 1} %ifarch aarch64 %{arm} %{mips} ppc64le ppc %{power64} s390 s390x @@ -25,13 +25,14 @@ %if 0%{?rhel} %{!?octave:%global octave 0} %else -%{!?octave:%global octave 1} +# Disable octave tests, because swig doesn't support Octave 4.2.0 +%{!?octave:%global octave 0} %endif Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig -Version: 3.0.10 -Release: 2%{?dist} +Version: 3.0.11 +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 @@ -43,7 +44,8 @@ Source4: ccache-swig.csh Patch0: swig308-Do-not-use-isystem.patch -BuildRequires: perl, python2-devel, pcre-devel +BuildRequires: perl, pcre-devel +BuildRequires: python2-devel, python3-devel BuildRequires: autoconf, automake, gawk, dos2unix BuildRequires: gcc-c++ BuildRequires: help2man @@ -84,6 +86,9 @@ BuildRequires: R-devel %if %{javalang} BuildRequires: java, java-devel %endif +%if %{phplang} +BuildRequires: php, php-devel +%endif %description Simplified Wrapper and Interface Generator (SWIG) is a software @@ -144,6 +149,9 @@ done # It causes that log had more then 600M. %configure \ --without-ocaml \ +%if %{phplang} + --with-php=%{__php} \ +%endif %if ! %{javalang} --without-java \ %endif @@ -272,6 +280,10 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb %{_datadir}/%{name}/gdb %changelog +* Mon Jan 02 2017 Jitka Plesnikova - 3.0.11-1 +- Update to 3.0.11 + - Add support for PHP 7 + * Wed Oct 19 2016 Jitka Plesnikova - 3.0.10-2 - Sub-package file swig.gdb (bug #1332673)