[packages/dnf] add tests bcond
glen
glen at pld-linux.org
Sat Jan 31 20:25:16 CET 2015
commit f637201a48508eec33a9aa123e065e1595b86337
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jan 31 21:25:08 2015 +0200
add tests bcond
dnf.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/dnf.spec b/dnf.spec
index 95f88c8..7b4a35f 100644
--- a/dnf.spec
+++ b/dnf.spec
@@ -1,6 +1,10 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+#
# TODO
# - bash-completion subpackage
-# - make -DSYSTEMD_DIR actually to work
+# - make -DSYSTEMD_DIR actually to work: https://github.com/rpm-software-management/dnf/pull/213
%define gitrev a7e0aa1
%define hawkey_version 0.5.2
%define librepo_version 1.7.5
@@ -35,6 +39,10 @@ BuildRequires: rpmbuild(macros) >= 1.647
BuildRequires: sed >= 4.0
BuildRequires: sphinx-pdg
BuildRequires: systemd-devel
+%if %{with tests}
+BuildRequires: hawkey-devel >= %{hawkey_version}
+BuildRequires: python-pyliblzma
+%endif
Requires(post,preun,postun): systemd-units >= 38
Requires: deltarpm
Requires: python-hawkey >= %{hawkey_version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dnf.git/commitdiff/f637201a48508eec33a9aa123e065e1595b86337
More information about the pld-cvs-commit
mailing list