From 9444e1d349ce8f08cfebb4e4137cd5c37e4404b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E5=B0=8F=E5=93=A5?= Date: Sat, 27 Nov 2021 10:03:24 +0000 Subject: [PATCH] disable %check --- python-mako.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/python-mako.spec b/python-mako.spec index efbff71..339a060 100644 --- a/python-mako.spec +++ b/python-mako.spec @@ -1,6 +1,8 @@ +%bcond_with test + Name: python-mako Version: 1.1.4 -Release: 1 +Release: 2 Summary: Mako template library for Python License: MIT Group: Development/Languages @@ -8,8 +10,11 @@ URL: http://www.makotemplates.org/ Source0: https://files.pythonhosted.org/packages/source/M/Mako/Mako-%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-devel python3-pytest python3-setuptools +BuildRequires: python3-devel python3-setuptools BuildRequires: python3-markupsafe python3-mock python3-nose +%if %{with test} +BuildRequires: python3-pytest +%endif %description Python-mako is a template library for Python. It provides a familiar, non-XML @@ -46,7 +51,9 @@ mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-rend rm -rf doc/build %check +%if %{with test} %{__python3} -m pytest -v +%endif %files -n python3-mako %license LICENSE AUTHORS @@ -58,6 +65,9 @@ rm -rf doc/build %doc doc %changelog +* Sat Nov 27 2021 shixuantong - 1.1.4-2 +- disable %check + * Thu Jul 15 2021 huangtianhua 1.1.4-1 - Upgrade to 1.1.4 to support OpenStack-W -- Gitee