diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..fcc7b97
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/python-sphinx_rtd_theme.changes b/python-sphinx_rtd_theme.changes
index 549af1e..3f6de9e 100644
--- a/python-sphinx_rtd_theme.changes
+++ b/python-sphinx_rtd_theme.changes
@@ -1,3 +1,15 @@
+-------------------------------------------------------------------
+Thu Jun 6 15:45:23 UTC 2019 - Tomáš Chvátal
+
+- Switch to mulitbuild to avoid buildcycle
+
+-------------------------------------------------------------------
+Fri May 24 19:55:19 UTC 2019 - Tomáš Chvátal
+
+- Update to 0.4.3:
+ * Fixes for new Sphinx
+- Enable tests
+
-------------------------------------------------------------------
Sat Aug 11 16:24:45 UTC 2018 - arun@gmx.de
diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec
index 99b0998..722b8d0 100644
--- a/python-sphinx_rtd_theme.spec
+++ b/python-sphinx_rtd_theme.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-sphinx_rtd_theme
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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,13 +12,21 @@
# 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-sphinx_rtd_theme
-Version: 0.4.1
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-sphinx_rtd_theme%{psuffix}
+Version: 0.4.3
Release: 0
Summary: ReadTheDocs.org theme for Sphinx
License: MIT AND Apache-2.0 AND OFL-1.1
@@ -26,10 +34,16 @@ Group: Development/Languages/Python
URL: https://github.com/snide/sphinx_rtd_theme/
Source: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
+BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module Sphinx}
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module readthedocs-sphinx-ext}
+%endif
%python_subpackages
%description
@@ -39,18 +53,27 @@ if you're just trying to use it on your project outside of that site.
%prep
%setup -q -n sphinx_rtd_theme-%{version}
-sed -i 's/\r$//' OFL-License.txt
+dos2unix OFL-License.txt
%build
%python_build
%install
+%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%if %{with test}
+%check
+%pytest
+%endif
+
+%if !%{with test}
%files %{python_files}
%license LICENSE OFL-License.txt Apache-License-2.0.txt
%doc README.rst
%{python_sitelib}/sphinx_rtd_theme*
+%endif
%changelog
diff --git a/sphinx_rtd_theme-0.4.1.tar.gz b/sphinx_rtd_theme-0.4.1.tar.gz
deleted file mode 100644
index b9cc22d..0000000
--- a/sphinx_rtd_theme-0.4.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3b49758a64f8a1ebd8a33cb6cc9093c3935a908b716edfaa5772fd86aac27ef6
-size 5388144
diff --git a/sphinx_rtd_theme-0.4.3.tar.gz b/sphinx_rtd_theme-0.4.3.tar.gz
new file mode 100644
index 0000000..6935849
--- /dev/null
+++ b/sphinx_rtd_theme-0.4.3.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a
+size 5391190