summaryrefslogtreecommitdiff
path: root/rhel/automake.mk
diff options
context:
space:
mode:
authorNuman Siddique <nusiddiq@redhat.com>2019-01-16 01:31:24 +0530
committerBen Pfaff <blp@ovn.org>2019-01-16 16:42:15 -0800
commit78203a9cd3bf985ac844319cba94d674e4930e0d (patch)
treeff562d2438ccfea3a6e7a5a0908d654b672abbf0 /rhel/automake.mk
parente2ab461a809f43bf70130e551e96e3c040fe6073 (diff)
downloadopenvswitch-78203a9cd3bf985ac844319cba94d674e4930e0d.tar.gz
rhel: Split OpenvSwitch and OVN packages
Up until now, OVN rpms were generated as sub packages of OpenvSwitch. This patch now splits it and makes OVN rpms independent. A new spec file - ovn-fedora.spec.in is added for this. The openvswitch-fedora.spec.in has been modified to create only OpenvSwitch packages. Since we are not splitting the OVN code, the spec files run the same build procedure. Only the required binaries/files are copied into the rpms. The new package names will be ovn, ovn-common, ovn-central, ovn-host, ovn-vtep and ovn-docker. Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Numan Siddique <nusiddiq@redhat.com> Acked-by: Timothy Redaelli <tredaelli@redhat.com> Tested-By: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel/automake.mk')
-rw-r--r--rhel/automake.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/rhel/automake.mk b/rhel/automake.mk
index bc65d83e5..1c5bf153c 100644
--- a/rhel/automake.mk
+++ b/rhel/automake.mk
@@ -23,6 +23,8 @@ EXTRA_DIST += \
rhel/openvswitch.spec.in \
rhel/openvswitch-fedora.spec \
rhel/openvswitch-fedora.spec.in \
+ rhel/ovn-fedora.spec \
+ rhel/ovn-fedora.spec.in \
rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
rhel/usr_share_openvswitch_scripts_sysconfig.template \
rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
@@ -72,6 +74,13 @@ rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec
-D "_topdir ${RPMBUILD_TOP}" \
-ba $(srcdir)/rhel/openvswitch-fedora.spec
+rpm-fedora-ovn: dist $(srcdir)/rhel/ovn-fedora.spec
+ ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
+ cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
+ rpmbuild ${RPMBUILD_OPT} \
+ -D "_topdir ${RPMBUILD_TOP}" \
+ -ba $(srcdir)/rhel/ovn-fedora.spec
+
# Build kernel datapath RPM
rpm-fedora-kmod: dist $(srcdir)/rhel/openvswitch-kmod-fedora.spec
${MKDIR_P} ${RPMBUILD_TOP}/SOURCES