- Generate documentation only with sphinx3 no need to do it

twice

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal 2019-06-06 14:30:44 +00:00 committed by Git OBS Bridge
parent dd907179bd
commit e1281e0fdb
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 6 14:30:26 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Generate documentation only with sphinx3 no need to do it
twice
-------------------------------------------------------------------
Fri Feb 8 23:12:28 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-mysqlclient
#
# 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,7 +12,7 @@
# 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/
#
@ -26,12 +26,12 @@ License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/PyMySQL/mysqlclient-python
Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libmysqlclient-devel
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: unzip
Recommends: mariadb
Provides: python-mysql = %{version}
@ -44,7 +44,6 @@ Obsoletes: %{oldpython}-mysql < %{version}
Provides: %{oldpython}-MySQL-python = %{version}
Obsoletes: %{oldpython}-MySQL-python < %{version}
%endif
%python_subpackages
%description
@ -58,8 +57,7 @@ This package adds Python 3 support and bug fixes to MySQLdb1.
%build
%python_build
%{python_expand $python setup.py build
$python setup.py build_sphinx && rm build/sphinx/html/.buildinfo}
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
@ -67,7 +65,7 @@ $python setup.py build_sphinx && rm build/sphinx/html/.buildinfo}
%files %{python_files}
%license LICENSE
%doc HISTORY.rst MANIFEST.in README.md
%doc HISTORY.rst MANIFEST.in README.md build/sphinx/html
%{python_sitearch}/*
%changelog