15
0

Accepting request 645598 from devel:languages:python:misc

OBS-URL: https://build.opensuse.org/request/show/645598
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junitxml?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2018-10-31 05:47:16 +00:00
committed by Git OBS Bridge
commit 796d1936f0
5 changed files with 114 additions and 0 deletions

63
python-junitxml.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# 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