From 620ee134375133aaa322276ef3468f9d4f4e1bc365946a2e121f0bf228f359ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 May 2019 19:58:05 +0000 Subject: [PATCH 1/2] - Update to 0.4.3: * Fixes for new Sphinx - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx_rtd_theme?expand=0&rev=20 --- python-sphinx_rtd_theme.changes | 7 +++++++ python-sphinx_rtd_theme.spec | 12 +++++++++--- sphinx_rtd_theme-0.4.1.tar.gz | 3 --- sphinx_rtd_theme-0.4.3.tar.gz | 3 +++ 4 files changed, 19 insertions(+), 6 deletions(-) delete mode 100644 sphinx_rtd_theme-0.4.1.tar.gz create mode 100644 sphinx_rtd_theme-0.4.3.tar.gz diff --git a/python-sphinx_rtd_theme.changes b/python-sphinx_rtd_theme.changes index 549af1e..583a257 100644 --- a/python-sphinx_rtd_theme.changes +++ b/python-sphinx_rtd_theme.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +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..1d59c68 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,19 +12,22 @@ # 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 +Version: 0.4.3 Release: 0 Summary: ReadTheDocs.org theme for Sphinx License: MIT AND Apache-2.0 AND OFL-1.1 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 Sphinx} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module readthedocs-sphinx-ext} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,6 +51,9 @@ sed -i 's/\r$//' OFL-License.txt %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %license LICENSE OFL-License.txt Apache-License-2.0.txt %doc README.rst 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 From 8d7ae03d607ca425f68f7f3afc3375e0762af6af011407ce4d2529182369f868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Jun 2019 15:46:55 +0000 Subject: [PATCH 2/2] - Switch to mulitbuild to avoid buildcycle OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx_rtd_theme?expand=0&rev=21 --- _multibuild | 3 +++ python-sphinx_rtd_theme.changes | 5 +++++ python-sphinx_rtd_theme.spec | 27 ++++++++++++++++++++++----- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 _multibuild 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 583a257..3f6de9e 100644 --- a/python-sphinx_rtd_theme.changes +++ b/python-sphinx_rtd_theme.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index 1d59c68..722b8d0 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -17,7 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-sphinx_rtd_theme +%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 @@ -25,14 +33,17 @@ License: MIT AND Apache-2.0 AND OFL-1.1 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 Sphinx} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module readthedocs-sphinx-ext} 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 @@ -42,21 +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