]> git.pld-linux.org Git - packages/dnf.git/commitdiff
add tests bcond
authorElan Ruusamäe <glen@delfi.ee>
Sat, 31 Jan 2015 19:25:08 +0000 (21:25 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 31 Jan 2015 19:25:08 +0000 (21:25 +0200)
dnf.spec

index 95f88c821222eb6b346e2d76a321d05036e8f110..7b4a35fbd8db1758e27e9c88bd78c60ce6673d0b 100644 (file)
--- 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}
This page took 0.123315 seconds and 4 git commands to generate.