diff --git a/swig.spec b/swig.spec index 2263b52..cece5ed 100644 --- a/swig.spec +++ b/swig.spec @@ -54,7 +54,7 @@ Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig Version: 4.0.2 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ 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 # code produces lots of the warnings demanded by strict ISO C and ISO C++. # 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 \ --without-ocaml \ %if %{python3lang} - --with-python3=%__python3 \ - --with-2to3=%{_bindir}/2to3 \ + --with-python3=python3 \ + --with-2to3=2to3 \ %else --without-python3 \ %endif %if %{phplang} - --with-php=%{__php} \ + --with-php \ %else --without-php \ %endif @@ -217,7 +219,7 @@ done %if %{with testsuite} # Test suite -make check +make check PY3=1 %endif %install @@ -335,6 +337,9 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb %{_datadir}/%{name}/gdb %changelog +* Fri Aug 28 2020 Jitka Plesnikova - 4.0.2-3 +- Enable tests for Python 3 + * Wed Jul 29 2020 Tom Stellard - 4.0.2-2 - Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro