#1 Only build Python 3 when the `with_python3` macro is true
Merged 5 years ago by ralph. Opened 5 years ago by mprahl.

file modified
+8
@@ -76,23 +76,31 @@ 

  

  %build

  %{py2_build}

+ %if 0%{?with_python3}

  %{py3_build}

+ %endif

  

  %install

  %{py2_install}

+ %if 0%{?with_python3}

  %{py3_install}

+ %endif

  

  %check

  PYTHONPATH=. nosetests-%{py2ver} -q

+ %if 0%{?with_python3}

  PYTHONPATH=. nosetests-%{py3ver} -q

+ %endif

  

  %files -n python2-stomper

  %doc README.rst

  %{python2_sitelib}/stomper*

  

+ %if 0%{?with_python3}

  %files -n python3-stomper

  %doc README.rst

  %{python3_sitelib}/stomper*

+ %endif

  

  %changelog

  * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7

This is in preparation to update the version shipped in EPEL7.

Relates to RHBZ#1659073

LGTM, but it also needs a release and changelog bump. We can do those independently.

Pull-Request has been merged by ralph

5 years ago