From 0e61974c818583b7b55417d181dd5fb25b865b84f240090b8dc8acf0e30193fc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 28 Sep 2020 16:23:01 +0000 Subject: [PATCH] Accepting request 836337 from home:frispete:python Duh, sorry.. - disable testing for Leaps mariadb-rpm-macros not available or not sufficient OBS-URL: https://build.opensuse.org/request/show/836337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=25 --- python-PyMySQL.changes | 6 ++++++ python-PyMySQL.spec | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/python-PyMySQL.changes b/python-PyMySQL.changes index 785b0bc..262a624 100644 --- a/python-PyMySQL.changes +++ b/python-PyMySQL.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 23 13:18:38 UTC 2020 - Hans-Peter Jansen + +- disable testing for Leaps + mariadb-rpm-macros not available or not sufficient + ------------------------------------------------------------------- Wed Sep 16 11:01:32 UTC 2020 - Dirk Mueller diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index 8069ec3..e0fa92a 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -16,6 +16,13 @@ # +# mariadb-rpm-macros is either not available or not sufficient for Leaps +%if 0%{?suse_version} > 1500 +%bcond_without tests +%else +%bcond_with tests +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyMySQL Version: 0.10.0 @@ -28,7 +35,9 @@ Source: https://github.com/PyMySQL/PyMySQL/archive/v%{version}.tar.gz#/P BuildRequires: %{python_module cryptography} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +%if %{with tests} BuildRequires: mariadb-rpm-macros +%endif # will be removed with next release BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -58,6 +67,7 @@ sed -i '1 { /^#!/ d }' pymysql/tests/thirdparty/test_MySQLdb/*.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check exit_code=0 dbuser='db_user' @@ -90,6 +100,7 @@ export PASSWORD="$dbuserpw" # %mysql_testserver_stop exit $exit_code +%endif %files %{python_files} %license LICENSE