- 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
This commit is contained in:
parent
620ee13437
commit
8d7ae03d60
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 6 15:45:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Switch to mulitbuild to avoid buildcycle
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 24 19:55:19 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user