1 # Copyright (C) 2009, 2010, 2011, 2012, 2014 Nicira, Inc.
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved. This file is offered as-is,
6 # without warranty of any kind.
11 rhel/etc_init.d_openvswitch \
12 rhel/etc_logrotate.d_openvswitch \
13 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
14 rhel/etc_sysconfig_network-scripts_ifup-ovs \
15 rhel/openvswitch-dkms.spec \
16 rhel/openvswitch-dkms.spec.in \
17 rhel/openvswitch-kmod-rhel6.spec \
18 rhel/openvswitch-kmod-rhel6.spec.in \
19 rhel/openvswitch-kmod.files \
20 rhel/openvswitch-kmod-fedora.spec \
21 rhel/openvswitch-kmod-fedora.spec.in \
22 rhel/openvswitch.spec \
23 rhel/openvswitch.spec.in \
24 rhel/openvswitch-fedora.spec \
25 rhel/openvswitch-fedora.spec.in \
26 rhel/usr_share_openvswitch_scripts_sysconfig.template \
27 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
28 rhel/usr_lib_systemd_system_openvswitch.service \
29 rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
30 rhel/usr_lib_systemd_system_ovn-controller.service \
31 rhel/usr_lib_systemd_system_ovn-controller.service.in \
32 rhel/usr_lib_systemd_system_ovn-controller-vtep.service \
33 rhel/usr_lib_systemd_system_ovn-northd.service
36 $(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
37 < $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \
38 if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
40 $(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status
43 $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
46 $(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status
49 $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
52 $(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_builddir)/config.status
55 $(srcdir)/rhel/usr_lib_systemd_system_ovn-controller.service: rhel/usr_lib_systemd_system_ovn-controller.service.in $(top_builddir)/config.status
57 RPMBUILD_TOP := $(abs_top_builddir)/rpm/rpmbuild
59 # Build user-space RPMs
60 rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec
61 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
62 cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
63 rpmbuild ${RPMBUILD_OPT} \
64 -D "_topdir ${RPMBUILD_TOP}" \
65 -bb $(srcdir)/rhel/openvswitch-fedora.spec
67 # Build kernel datapath RPM
68 rpm-fedora-kmod: dist $(srcdir)/rhel/openvswitch-kmod-fedora.spec
69 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
70 cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
71 rpmbuild -D "kversion $(shell uname -r)" ${RPMBUILD_OPT} \
72 -D "_topdir ${RPMBUILD_TOP}" \
73 -bb $(srcdir)/rhel/openvswitch-kmod-fedora.spec