#2 Version 0.14 including Python 3 subpackage
Closed 2 years ago by aries. Opened 2 years ago by aries.
rpms/ aries/python-coverage-test-runner master  into  master

@@ -2,8 +2,8 @@ 

  %global prjname coverage-test-runner

  

  Name:           python-%{prjname}

- Version:        1.11

- Release:        6%{?dist}

+ Version:        1.14

+ Release:        1%{?dist}

  Summary:        Python module for enforcing code coverage completeness

  

  License:        GPLv3+

@@ -35,25 +35,50 @@ 

  

  %description -n python2-%{prjname} %_description

  

+ %package -n python3-%{prjname}

+ Summary:        %summary

+ BuildRequires:  python3-devel

+ BuildRequires:  python3-coverage

+ Requires:       python3-coverage

+ %{?python_provide:%python_provide python3-%{prjname}}

+ 

+ %description -n python3-%{prjname} %_description

+ 

  %prep

  %autosetup

  

+ # Fix version number

+ sed -i 28s/1\.11/%{version}/ %{pkgname}.py

+ 

  %build

  %py2_build

+ %py3_build

  

  %install

  %py2_install

+ %py3_install

  

  %check

- make check

+ #make check

+ %{__python2} CoverageTestRunner.py subdir --ignore-missing-from=test-excluded

+ rm -f .coverage

+ %{__python3} CoverageTestRunner.py subdir --ignore-missing-from=test-excluded

+ rm -f .coverage

  

  %files -n python2-%{prjname}

  %license COPYING

  %doc NEWS README

- %{python2_sitelib}/%{pkgname}.py*

- %{python2_sitelib}/%{pkgname}-*.egg-info

+ %{python2_sitelib}/*

+ 

+ %files -n python3-%{prjname}

+ %license COPYING

+ %doc NEWS README

+ %{python3_sitelib}/*

  

  %changelog

+ *Wed Dec 6 2017 Jan Beran <jberan@redhat.com> - 1.14-1

+ - New version including Python 3 subpackage

+ 

  * Fri Aug 25 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.11-6

  - Reference python2-coverage with python2 prefix