Compare commits

...

3 Commits
master ... f25

Author SHA1 Message Date
Jitka Plesnikova 94e7bbcb93 Disable guile tests (fail randomly) 2017-01-04 15:24:47 +01:00
Jitka Plesnikova bfe25de69d Update to 3.0.11; Add support for PHP 7 2017-01-04 14:22:49 +01:00
Jitka Plesnikova a785404834 Sub-package file swig.gdb (bug #1332673) 2016-10-21 08:46:53 +02:00
3 changed files with 42 additions and 8 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ swig-2.0.0.tar.gz
/swig-3.0.8.tar.gz /swig-3.0.8.tar.gz
/swig-3.0.9.tar.gz /swig-3.0.9.tar.gz
/swig-3.0.10.tar.gz /swig-3.0.10.tar.gz
/swig-3.0.11.tar.gz

View File

@ -1 +1 @@
bb4ab8047159469add7d00910e203124 swig-3.0.10.tar.gz SHA512 (swig-3.0.11.tar.gz) = 36771bd29fcec159d283f0f8d056937c6c913fec717f1f3b97a9b17fa27a8a85aa5f7b79bec3c46d70b625c36c26e9e856a4750cbd0872070ca18e9174842a52

View File

@ -2,9 +2,9 @@
%bcond_without testsuite %bcond_without testsuite
%{!?tcl:%global tcl 1} %{!?tcl:%global tcl 1}
%{!?guile:%global guile 1} %{!?guile:%global guile 0}
%{!?lualang:%global lualang 1} %{!?lualang:%global lualang 1}
%{!?phplang:%global phplang 1}
%{!?rubylang:%global rubylang 1} %{!?rubylang:%global rubylang 1}
%ifarch aarch64 %{arm} %{mips} ppc64le ppc %{power64} s390 s390x %ifarch aarch64 %{arm} %{mips} ppc64le ppc %{power64} s390 s390x
@ -25,12 +25,13 @@
%if 0%{?rhel} %if 0%{?rhel}
%{!?octave:%global octave 0} %{!?octave:%global octave 0}
%else %else
%{!?octave:%global octave 1} # Disable octave tests, because swig doesn't support Octave 4.2.0
%{!?octave:%global octave 0}
%endif %endif
Summary: Connects C/C++/Objective C to some high-level programming languages Summary: Connects C/C++/Objective C to some high-level programming languages
Name: swig Name: swig
Version: 3.0.10 Version: 3.0.11
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv3+ and BSD License: GPLv3+ and BSD
URL: http://swig.sourceforge.net/ URL: http://swig.sourceforge.net/
@ -43,7 +44,8 @@ Source4: ccache-swig.csh
Patch0: swig308-Do-not-use-isystem.patch 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: autoconf, automake, gawk, dos2unix
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: help2man BuildRequires: help2man
@ -84,6 +86,9 @@ BuildRequires: R-devel
%if %{javalang} %if %{javalang}
BuildRequires: java, java-devel BuildRequires: java, java-devel
%endif %endif
%if %{phplang}
BuildRequires: php, php-devel
%endif
%description %description
Simplified Wrapper and Interface Generator (SWIG) is a software Simplified Wrapper and Interface Generator (SWIG) is a software
@ -116,6 +121,15 @@ BuildArch: noarch
%description doc %description doc
This package contains documentation for SWIG and useful examples This package contains documentation for SWIG and useful examples
%package gdb
Summary: Commands for easier debugging of SWIG
License: BSD
Requires: swig
%description gdb
This package contains file with commands for easier debugging of SWIG
in gdb.
%prep %prep
%setup -q -n swig-%{version} %setup -q -n swig-%{version}
@ -135,6 +149,9 @@ done
# It causes that log had more then 600M. # It causes that log had more then 600M.
%configure \ %configure \
--without-ocaml \ --without-ocaml \
%if %{phplang}
--with-php=%{__php} \
%endif
%if ! %{javalang} %if ! %{javalang}
--without-java \ --without-java \
%endif %endif
@ -237,9 +254,14 @@ mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
install -dm 755 %{buildroot}%{_sysconfdir}/profile.d install -dm 755 %{buildroot}%{_sysconfdir}/profile.d
install -pm 644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d install -pm 644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d
# Add swig.gdb sub-package gdb
mkdir -p %{buildroot}%{_datadir}/%{name}/gdb
install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%files %files
%{_bindir}/swig %{_bindir}/%{name}
%{_datadir}/swig %{_datadir}/%{name}
%exclude %{_datadir}/%{name}/gdb
%{_mandir}/man1/swig.1* %{_mandir}/man1/swig.1*
%license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES %license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
%doc ANNOUNCE CHANGES CHANGES.current %doc ANNOUNCE CHANGES CHANGES.current
@ -254,7 +276,18 @@ install -pm 644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d
%license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES %license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
%doc Doc Examples COPYRIGHT %doc Doc Examples COPYRIGHT
%files gdb
%{_datadir}/%{name}/gdb
%changelog %changelog
* Mon Jan 02 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.0.11-1
- Update to 3.0.11
- Add support for PHP 7
- Disable guile tests
* Wed Oct 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.0.10-2
- Sub-package file swig.gdb (bug #1332673)
* Mon Jun 13 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.0.10-1 * Mon Jun 13 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.0.10-1
- Update to 3.0.10 - Update to 3.0.10