Blob Blame Raw
%if 0%{?fedora}
%global with_python3 0

%global pypi_name xunitmerge

Name:           python-%{pypi_name}
Version:        1.0.4
Release:        8%{?dist}
Summary:        Utility for merging multiple XUnit xml reports into a single xml report

License:        ASL 2.0
BuildArch:      noarch

%global _description \
The primary purpose of xunitmerge is to be able to merge XUnit reports\
generated by nosetests (e.g. nosetests --with-xunit).\
This is especially useful when nosetests needs to be run multiple times for\
different parts of a project and then all reports need to be merged to a\
single report.

%description %_description

%package -n     python2-%{pypi_name}
Summary:        Utility for merging multiple XUnit xml reports into a single xml report.
%{?python_provide:%python_provide python2-%{pypi_name}}

Requires:  python2-nose
Requires:  python2-six

BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  python2-six
BuildRequires:  python2-nose

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

%if 0%{?with_python3}
%package -n     python3-%{pypi_name}
Summary:        Component-based Software-defined Networking Framework
%{?python_provide:%python_provide python3-%{pypi_name}}

Requires:  python3-nose
Requires:  python3-six

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildRequires:  python3-nose

%description -n python3-%{pypi_name} %_description

%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%autosetup -n %{pypi_name}-%{version}

%if 0%{?with_python3}

%if 0%{?with_python3}
mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/%{pypi_name}-3

%if 0%{?with_python3}
nosetests-%{python3_version} --with-doctest
nosetests-%{python2_version} --with-doctest

%files -n python2-%{pypi_name}
%doc README.rst
%license LICENSE.rst

%if 0%{?with_python3}
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE.rst

* Sat Feb 02 2019 Fedora Release Engineering <> - 1.0.4-8
- Rebuilt for

* Sat Jul 14 2018 Fedora Release Engineering <> - 1.0.4-7
- Rebuilt for

* Fri Feb 09 2018 Iryna Shcherbina <> - 1.0.4-6
- Update Python 2 dependency declarations to new packaging standards

* Fri Feb 09 2018 Fedora Release Engineering <> - 1.0.4-5
- Rebuilt for

* Fri Jul 28 2017 Zbigniew Jędrzejewski-Szmek <> - 1.0.4-4
- Generate python2 subpackage

* Thu Jul 27 2017 Fedora Release Engineering <> - 1.0.4-3
- Rebuilt for

* Sat Feb 11 2017 Fedora Release Engineering <> - 1.0.4-2
- Rebuilt for

* Wed Jun 08 2016 Arie Bregman <> - 1.0.4-1
- Initial package. (rhbz#1343895)