Accepting request 528307 from home:TheBlackCat:branches:devel:languages:python
- Only use litmus-0.13.tar.gz test file in %check section due to license issues OBS-URL: https://build.opensuse.org/request/show/528307 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyWebDAV3?expand=0&rev=4
This commit is contained in:
@@ -28,6 +28,7 @@ License: LGPL-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/andrewleech/PyWebDAV3
|
||||
Source0: https://files.pythonhosted.org/packages/source/P/PyWebDAV3/PyWebDAV3-%{version}.tar.gz
|
||||
# Only used in %check for testing purposes
|
||||
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
|
||||
@@ -75,7 +76,6 @@ This package does not provide client functionality.
|
||||
%prep
|
||||
%setup -q -n PyWebDAV3-%{version}
|
||||
%patch1 -p1
|
||||
cp %{SOURCE1} test/
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -95,7 +95,9 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/py
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
cp %{SOURCE1} test/
|
||||
%python_expand py.test-%{$python_bin_suffix}
|
||||
rm test/litmus-%{ltmsver}.tar.gz
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
||||
Reference in New Issue
Block a user