1
0

Accepting request 528130 from home:TheBlackCat:branches:devel:languages:python

- Get unit tests working.

OBS-URL: https://build.opensuse.org/request/show/528130
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyWebDAV3?expand=0&rev=3
This commit is contained in:
Todd R
2017-09-21 18:27:58 +00:00
committed by Git OBS Bridge
parent be116d1afe
commit a368f45e37
3 changed files with 13 additions and 3 deletions

View File

@@ -18,16 +18,17 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
# Test files missing
%bcond_with test
%bcond_without test
Name: python-PyWebDAV3
Version: 0.9.11
%define ltmsver 0.13
Release: 0
Summary: WebDAV library including a standalone server for python2 and python3
License: LGPL-2.0
Group: Development/Languages/Python
Url: https://github.com/andrewleech/PyWebDAV3
Source: https://files.pythonhosted.org/packages/source/P/PyWebDAV3/PyWebDAV3-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/P/PyWebDAV3/PyWebDAV3-%{version}.tar.gz
Source1: http://www.webdav.org/neon/litmus/litmus-%{ltmsver}.tar.gz
# PATCH-FIX-UPSTREAM fix_python2_urllib.patch https://github.com/andrewleech/PyWebDAV3/commit/62e67e5523b6f8a3d47e1406d045c9e2abb9e8ba and https://github.com/andrewleech/PyWebDAV3/commit/eb4017d8894242ab4453cc1c2d432ebd299c13a0
Patch1: fix_python2_urllib.patch
BuildRequires: %{python_module devel}
@@ -74,6 +75,7 @@ This package does not provide client functionality.
%prep
%setup -q -n PyWebDAV3-%{version}
%patch1 -p1
cp %{SOURCE1} test/
%build
%python_build