# # spec file for package python-junitxml # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-junitxml Version: 0.7 Release: 0 Url: https://launchpad.net/pyjunitxml Summary: A pyunit extension to output JUnit compatible XML License: LGPL-3.0+ Group: Development/Languages/Python Source: http://files.pythonhosted.org/packages/source/j/junitxml/junitxml-%{version}.tar.gz BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildArch: noarch %python_subpackages %description A Python unittest TestResult that outputs JUnit compatible XML. %prep %setup -q -n junitxml-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/pyjunitxml %post %python_install_alternative pyjunitxml %postun %python_uninstall_alternative pyjunitxml %check # tests are failing #nosetests %files %{python_files} %license COPYING %doc README %python_alternative %{_bindir}/pyjunitxml %{python_sitelib}/* %changelog