summaryrefslogtreecommitdiff
path: root/spec/macros.inc
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2013-12-17 10:14:28 +0100
committerPetr Rockai <me@mornfall.net>2014-02-28 11:23:51 +0100
commit4d081f072fe5b6f96112196fbb52a9b5cda21c55 (patch)
treedab792051caf2066c104ed3855419e5dd76f3b7a /spec/macros.inc
parent581eeaf9502a530351a6894ce6d8f6930711e0b2 (diff)
downloadlvm2-4d081f072fe5b6f96112196fbb52a9b5cda21c55.tar.gz
spec: Do not treat --with-?=none as having the thing.
Diffstat (limited to 'spec/macros.inc')
-rw-r--r--spec/macros.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/macros.inc b/spec/macros.inc
index 4041086e9..7b841dd1b 100644
--- a/spec/macros.inc
+++ b/spec/macros.inc
@@ -18,7 +18,7 @@
%define with() \
%global configure_flags %(echo -n "%{?configure_flags} " | sed -e "s,--with-%1=[^ ]*,,"; test -n "%{?2}" && echo --with-%1=%2) \
-%global with_flags %(echo -n "%{?with_flags} " | sed -e "s,%1,,"; test -n "%{?2}" && echo %1)
+%global with_flags %(echo -n "%{?with_flags} " | sed -e "s,%1,,"; test -n "%{?2}" && test "%{?2}" != none && echo %1)
%global services monitor
%define service() \