%global srcname xunitparser Name: python-xunitparser Version: 1.3.3 Release: 1%{?dist} Summary: Module for parsing JUnit/XUnit XML files License: MIT URL: http://git.p.engu.in/laurentb/xunitparser/ Source0: https://pypi.python.org/packages/source/x/xunitparser/xunitparser-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel python-setuptools %description xunitparser reads a JUnit/XUnit XML file and maps it to Python objects. It tries to use the objects available in the standard ``unittest`` module. %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} xunitparser reads a JUnit/XUnit XML file and maps it to Python objects. It tries to use the objects available in the standard ``unittest`` module. %prep %setup -q -n xunitparser-%{version} rm -r xunitparser.egg-info %check %{__python2} setup.py test %build %py2_build %install %py2_install %files -n python2-%{srcname} %license LICENSE %doc README %{python2_sitelib}/* %changelog * Wed May 04 2016 Lukas Brabec - 1.3.3-1 - Initial package for xunitparser