[packages/python-pygit2] require pytest only when building with tests
atler
atler at pld-linux.org
Fri May 28 01:04:18 CEST 2021
commit c84dc49b35aa17a983179707e228b5659cd80174
Author: Jan Palus <atler at pld-linux.org>
Date: Fri May 28 01:02:18 2021 +0200
require pytest only when building with tests
python-pygit2.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index cb3d478..f8c2e68 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -23,7 +23,7 @@ BuildRequires: python3-cffi >= 1.8.1
BuildRequires: python3-devel >= 1:3.2
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
-BuildRequires: python3-pytest
+%{?with_tests:BuildRequires: python3-pytest}
Requires: libgit2 >= 0.24.0
Requires: python-cffi
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/150f68ce526d3d36d6895d6c8df612909382b23b
More information about the pld-cvs-commit
mailing list