diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index fb4b1b756c4..5a3af4a1538 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -127,20 +127,6 @@ rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch -install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch -install -p -D -m 0644 include/openvswitch/*.h \ - -t $RPM_BUILD_ROOT%{_includedir}/openvswitch -install -p -D -m 0644 config.h \ - -t $RPM_BUILD_ROOT%{_includedir}/openvswitch - -install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib -install -p -D -m 0644 lib/*.h \ - -t $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib - -install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openflow -install -p -D -m 0644 include/openflow/*.h \ - -t $RPM_BUILD_ROOT%{_includedir}/openflow - touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf @@ -208,6 +194,7 @@ rm -rf $RPM_BUILD_ROOT %files devel %{_libdir}/*.a %{_libdir}/*.la +%{_libdir}/pkgconfig/*.pc %{_includedir}/openvswitch/* %{_includedir}/openflow/* diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 3948411f908..56603ccbba4 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -69,6 +69,7 @@ rm \ $RPM_BUILD_ROOT/usr/sbin/ovs-vlan-bug-workaround \ $RPM_BUILD_ROOT/usr/share/man/man8/ovs-vlan-bug-workaround.8 (cd "$RPM_BUILD_ROOT" && rm -rf usr/lib) +(cd "$RPM_BUILD_ROOT" && rm -rf usr/include) install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch