openvswitch-xen.spec: Avoid warning if build_number not defined.
authorBen Pfaff <blp@nicira.com>
Tue, 24 Jan 2012 18:23:36 +0000 (10:23 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Jan 2012 22:30:19 +0000 (14:30 -0800)
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 <blp@nicira.com>
xenserver/openvswitch-xen.spec

index 20f309b56327dbb09b1099ae2f739470a0fa6305..29c3c1f97f097a6fd951e20111644bcca5c92b9c 100644 (file)
@@ -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