Enable tests for Python 3

This commit is contained in:
Jitka Plesnikova 2020-08-28 12:20:47 +02:00
parent f8b278b91f
commit 8f1b050297

View File

@ -54,7 +54,7 @@
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: 4.0.2 Version: 4.0.2
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv3+ and BSD License: GPLv3+ and BSD
URL: http://swig.sourceforge.net/ URL: http://swig.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
@ -177,16 +177,18 @@ done
# Disable maximum compile warnings when octave is supported, because Octave # Disable maximum compile warnings when octave is supported, because Octave
# code produces lots of the warnings demanded by strict ISO C and ISO C++. # code produces lots of the warnings demanded by strict ISO C and ISO C++.
# It causes that log had more then 600M. # It causes that log had more then 600M.
# AC_CHECK_PROGS requires just the name, so use for configure
# --with-python3=python3 --with-2to3=2to3
%configure \ %configure \
--without-ocaml \ --without-ocaml \
%if %{python3lang} %if %{python3lang}
--with-python3=%__python3 \ --with-python3=python3 \
--with-2to3=%{_bindir}/2to3 \ --with-2to3=2to3 \
%else %else
--without-python3 \ --without-python3 \
%endif %endif
%if %{phplang} %if %{phplang}
--with-php=%{__php} \ --with-php \
%else %else
--without-php \ --without-php \
%endif %endif
@ -217,7 +219,7 @@ done
%if %{with testsuite} %if %{with testsuite}
# Test suite # Test suite
make check make check PY3=1
%endif %endif
%install %install
@ -335,6 +337,9 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%{_datadir}/%{name}/gdb %{_datadir}/%{name}/gdb
%changelog %changelog
* Fri Aug 28 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.0.2-3
- Enable tests for Python 3
* Wed Jul 29 2020 Tom Stellard <tstellar@redhat.com> - 4.0.2-2 * Wed Jul 29 2020 Tom Stellard <tstellar@redhat.com> - 4.0.2-2
- Use make macros - Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro