15
0

- Fix download url

- Make tests pass junitxml-tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junitxml?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-10-31 11:46:34 +00:00
committed by Git OBS Bridge
parent 796d1936f0
commit bbce720d7b
3 changed files with 164 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-junitxml
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,24 @@
# 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/
# Please submit bugfixes or comments via https://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+
License: LGPL-3.0-or-later
Group: Development/Languages/Python
Source: http://files.pythonhosted.org/packages/source/j/junitxml/junitxml-%{version}.tar.gz
URL: https://launchpad.net/pyjunitxml
Source: https://files.pythonhosted.org/packages/source/j/junitxml/junitxml-%{version}.tar.gz
Patch0: junitxml-tests.patch
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
@@ -35,12 +37,14 @@ A Python unittest TestResult that outputs JUnit compatible XML.
%prep
%setup -q -n junitxml-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pyjunitxml
@@ -52,7 +56,7 @@ A Python unittest TestResult that outputs JUnit compatible XML.
%check
# tests are failing
#nosetests
%python_expand nosetests-%{$python_version}
%files %{python_files}
%license COPYING