[packages/libreport] - tests require findmnt program

qboosh qboosh at pld-linux.org
Wed May 9 21:26:31 CEST 2018


commit 5a824a9bde1423233498868d8de4e2653310073a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed May 9 21:27:09 2018 +0200

    - tests require findmnt program

 libreport.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libreport.spec b/libreport.spec
index e88b764..5dbfff2 100644
--- a/libreport.spec
+++ b/libreport.spec
@@ -34,8 +34,6 @@ BuildRequires:	libxml2-devel >= 2
 BuildRequires:	newt-devel
 BuildRequires:	nss-devel
 BuildRequires:	pkgconfig
-# /etc/system-release for non-empty os_release content
-%{?with_tests:BuildRequires:	pld-release >= 3.0-8}
 %{?with_python2:BuildRequires:	python-devel >= 2}
 %{?with_python3:BuildRequires:	python3-devel >= 1:3}
 BuildRequires:	rpmbuild(macros) >= 1.612
@@ -44,6 +42,12 @@ BuildRequires:	systemd-devel
 BuildRequires:	xmlrpc-c-client-devel
 BuildRequires:	xmlrpc-c-devel
 BuildRequires:	xmlto
+%if %{with tests}
+# findmnt
+BuildRequires:	mount
+# /etc/system-release for non-empty os_release content
+BuildRequires:	pld-release >= 3.0-8
+%endif
 Requires:	glib2 >= 1:2.43
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libreport.git/commitdiff/5a824a9bde1423233498868d8de4e2653310073a



More information about the pld-cvs-commit mailing list