From: Ben Pfaff Date: Tue, 24 Jan 2012 18:23:36 +0000 (-0800) Subject: openvswitch-xen.spec: Avoid warning if build_number not defined. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1650ab62daacfd8cbfde65ff17598de2d45d9f3c;p=openvswitch openvswitch-xen.spec: Avoid warning if build_number not defined. I expect that only Nicira internal builds want a build number, so it's nice to avoid a complaint from RPM if the build_number macro is not defined. Signed-off-by: Ben Pfaff --- diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 20f309b5..29c3c1f9 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -60,7 +60,7 @@ Open vSwitch Linux kernel module compiled against kernel version %setup -q -n openvswitch-%{openvswitch_version} %build -./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{xen_version}/build --enable-ssl %{build_number} +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{xen_version}/build --enable-ssl %{?build_number} make %{_smp_mflags} %install