diff options
author | Ansis Atteka <aatteka@ovn.org> | 2019-03-26 11:12:01 -0700 |
---|---|---|
committer | Ansis Atteka <aatteka@vmware.com> | 2019-04-02 09:53:31 -0700 |
commit | a76ef11deac07a7ce555655dcd23323073074bf5 (patch) | |
tree | 730d5d42b6c11a64d5fb5db28c7e3533c77575dc /rhel | |
parent | 8e738337a2c25c3d6ede2829d6ffd9af6bcd36a5 (diff) | |
download | openvswitch-a76ef11deac07a7ce555655dcd23323073074bf5.tar.gz |
rhel: Include all header files in the Fedora's devel package
While the header files added by this patch into Fedora's devel
rpm package can be considered private, the other devel packages
for RHEL/CentOS and Debian/Ubuntu distros include them.
So this patch simply makes the Fedora devel package consistent with
the other devel packages.
Signed-off-by: Ansis Atteka <aatteka@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 198a48de7..c1cd3f4c6 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -224,6 +224,20 @@ make install DESTDIR=$RPM_BUILD_ROOT install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch +copy_headers() { + src=$1 + dst=$RPM_BUILD_ROOT/$2 + install -d -m 0755 $dst + install -m 0644 $src/*.h $dst +} +copy_headers include %{_includedir}/openvswitch +copy_headers include/openflow %{_includedir}/openvswitch/openflow +copy_headers include/openvswitch %{_includedir}/openvswitch/openvswitch +copy_headers include/sparse %{_includedir}/openvswitch/sparse +copy_headers include/sparse/arpa %{_includedir}/openvswitch/sparse/arpa +copy_headers include/sparse/netinet %{_includedir}/openvswitch/sparse/netinet +copy_headers include/sparse/sys %{_includedir}/openvswitch/sparse/sys +copy_headers lib %{_includedir}/openvswitch/lib %if %{with dpdk} install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \ |