From faebf930196069f7ea2dc97ee3968698dcea84f2 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Fri, 21 Nov 2014 10:55:03 -0800 Subject: xen.spec: Fix xenserver build failure. This commit conducts similar operations as commit 2fd84d5e5 (rhel: Include pkgconfig and update header install in Fedora/RHEL spec.) to xenserver spec file to prevent the following rpmbuild failure. RPM build errors: Installed (but unpackaged) file(s) found: /usr/include/openflow/nicira-ext.h /usr/include/openflow/openflow-1.0.h /usr/include/openflow/openflow-1.1.h /usr/include/openflow/openflow-1.2.h /usr/include/openflow/openflow-1.3.h /usr/include/openflow/openflow-1.4.h /usr/include/openflow/openflow-1.5.h /usr/include/openflow/openflow-common.h /usr/include/openflow/openflow.h /usr/include/openvswitch/types.h /usr/lib/pkgconfig/libofproto.pc /usr/lib/pkgconfig/libopenvswitch.pc /usr/lib/pkgconfig/libovsdb.pc /usr/lib/pkgconfig/libsflow.pc VMware-BZ: #1362092 Reported-by: Edwin Chiu Signed-off-by: Alex Wang Acked-by: Gurucharan Shetty --- xenserver/openvswitch-xen.spec.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xenserver') diff --git a/xenserver/openvswitch-xen.spec.in b/xenserver/openvswitch-xen.spec.in index 364277fbd..31ff1bff4 100644 --- a/xenserver/openvswitch-xen.spec.in +++ b/xenserver/openvswitch-xen.spec.in @@ -139,6 +139,8 @@ rm \ $RPM_BUILD_ROOT/usr/share/man/man8/ovs-pki.8 \ $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 (cd "$RPM_BUILD_ROOT" && rm -f usr/lib/lib*) +(cd "$RPM_BUILD_ROOT" && rm -rf usr/include) +(cd "$RPM_BUILD_ROOT" && rm -rf usr/lib/pkgconfig) install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch -- cgit v1.2.1