From f4aaaaf691f743b09176405082e31f964a86025b Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Apr 13 2016 16:14:36 +0000 Subject: Disable test suite for koji builds --- diff --git a/pipsi.spec b/pipsi.spec index 7de1c53..0ace3fd 100644 --- a/pipsi.spec +++ b/pipsi.spec @@ -1,8 +1,15 @@ %global pypi_name pipsi +# test suite is disabled by default for koji builds, +# because tests require internet connection + +# Conditial build macro +# http://www.rpm.org/wiki/PackagerDocs/ConditionalBuilds +%bcond_with tests + Name: %{pypi_name} Version: 0.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Wraps pip and virtualenv to install scripts License: BSD @@ -14,10 +21,12 @@ BuildRequires: python3-devel BuildRequires: python3-click BuildRequires: python3-virtualenv +%if %{with tests} # Required for tests BuildRequires: python3-pytest BuildRequires: openssl-devel BuildRequires: libacl-devel +%endif Requires: python3-click Requires: python3-setuptools @@ -47,11 +56,13 @@ sed -i '70 s/virtualenv/py3-virtualenv/' get-%{pypi_name}.py %py3_install +%if %{with tests} %check # Tests need UTF-8 encoding export LC_CTYPE="C.UTF-8" # Invoke tests and disable the test that checks if pipsi is already installed %{__python3} -m pytest -k "not test_find_scripts" -vv +%endif %files @@ -63,5 +74,8 @@ export LC_CTYPE="C.UTF-8" %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Wed Apr 13 2016 Charalampos Stratakis - 0.9-2 +- Disable test suite for koji builds. + * Thu Apr 07 2016 Charalampos Stratakis - 0.9-1 - Initial package. \ No newline at end of file