diff --git a/openqa.spec b/openqa.spec index 20bba94..8f47086 100644 --- a/openqa.spec +++ b/openqa.spec @@ -85,6 +85,8 @@ # The following line is generated from dependencies.yaml (upstream) %define devel_requires %devel_no_selenium_requires +%bcond_without tests + Name: openqa Version: %{github_version} Release: 63%{?github_date:.%{github_date}git%{shortcommit}}%{?dist} @@ -117,7 +119,9 @@ BuildRequires: systemd # Build and tests need LC_ALL=en_US.UTF-8, so we need this... BuildRequires: glibc-langpack-en BuildRequires: %{build_requires} +%if %{with tests} BuildRequires: %{test_requires} +%endif Requires: perl(Minion) >= 10.0 Requires: %{main_requires} Requires: openqa-common = %{version}-%{release} @@ -362,6 +366,7 @@ rm -f %{buildroot}%{_datadir}/openqa/script/openqa-rollback %check +%if %{with tests} rm -rf %{buildroot}/DB export LC_ALL=en_US.UTF-8 # seems necessary to make 24-worker-job.t pass - two subtests there @@ -395,7 +400,7 @@ export CONTAINER_TEST=0 # to fail make test GIT_CEILING_DIRECTORIES="/" CHECKSTYLE=0 PROVE_ARGS='-l -r' TEST_PG_PATH=%{buildroot}/DB rm -rf %{buildroot}/DB - +%endif %pre getent group geekotest >/dev/null || groupadd -r geekotest || :