From 15873cb03c61e873b7d5690df8b7c5cda382ee80d0de3d4fc01a2643ec48c0db Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 22 Sep 2017 14:12:58 +0000 Subject: [PATCH] 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 --- python-PyWebDAV3.changes | 6 ++++++ python-PyWebDAV3.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-PyWebDAV3.changes b/python-PyWebDAV3.changes index b07e232..44ac46c 100644 --- a/python-PyWebDAV3.changes +++ b/python-PyWebDAV3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 22 14:07:07 UTC 2017 - toddrme2178@gmail.com + +- Only use litmus-0.13.tar.gz test file in %check section due to + license issues + ------------------------------------------------------------------- Thu Sep 21 18:26:06 UTC 2017 - toddrme2178@gmail.com diff --git a/python-PyWebDAV3.spec b/python-PyWebDAV3.spec index eddd91e..b120f18 100644 --- a/python-PyWebDAV3.spec +++ b/python-PyWebDAV3.spec @@ -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