diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..49fb912
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/python-fsspec.changes b/python-fsspec.changes
index da85c26..4d4b1f1 100644
--- a/python-fsspec.changes
+++ b/python-fsspec.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Mon Jan 4 17:59:57 UTC 2021 - Benjamin Greiner
+
+- Test in _multibuild in order to break build dependency cycles
+
-------------------------------------------------------------------
Mon Dec 28 15:19:45 UTC 2020 - Benjamin Greiner
diff --git a/python-fsspec.spec b/python-fsspec.spec
index 6a50042..b385eee 100644
--- a/python-fsspec.spec
+++ b/python-fsspec.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-fsspec
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
%define skip_python2 1
-Name: python-fsspec
+Name: python-fsspec%{psuffix}
Version: 0.8.5
Release: 0
Summary: Filesystem specification package
@@ -43,7 +51,7 @@ Suggests: python-requests
Suggests: python-s3fs
Suggests: python-smbprotocol
BuildArch: noarch
-# SECTION test requirements
+%if %{with test}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module cloudpickle}
BuildRequires: %{python_module distributed}
@@ -63,7 +71,7 @@ BuildRequires: %{python_module zstandard}
# cannot test git and http in the same installation (?)
# BuildRequires: %%{python_module pygit2}
# BuildRequires: git-core
-# /SECTION
+%endif
%python_subpackages
%description
@@ -75,18 +83,25 @@ A specification for pythonic filesystems.
%build
%python_build
+%if ! %{with test}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%if %{with test}
%check
# test_basic relies on speed of FS and timeouts in OBS
# test_not_cached needs sockets
%pytest -rfEs -k 'not test_basic and not test_not_cached'
+%endif
+%if ! %{with test}
%files %{python_files}
%doc README.md
%license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/fsspec
+%{python_sitelib}/fsspec-%{version}*-info
+%endif
%changelog