]>
Commit | Line | Data |
---|---|---|
ef44aa50 | 1 | # Copyright (C) 2009, 2010, 2011, 2012, 2014 Nicira, Inc. |
c434706a BP |
2 | # |
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. | |
7 | ||
8 | EXTRA_DIST += \ | |
0fb42626 | 9 | rhel/README.RHEL \ |
c434706a BP |
10 | rhel/automake.mk \ |
11 | rhel/etc_init.d_openvswitch \ | |
12 | rhel/etc_logrotate.d_openvswitch \ | |
0fb42626 AF |
13 | rhel/etc_sysconfig_network-scripts_ifdown-ovs \ |
14 | rhel/etc_sysconfig_network-scripts_ifup-ovs \ | |
5cdc4335 AW |
15 | rhel/openvswitch-dkms.spec \ |
16 | rhel/openvswitch-dkms.spec.in \ | |
c434706a BP |
17 | rhel/openvswitch-kmod-rhel6.spec \ |
18 | rhel/openvswitch-kmod-rhel6.spec.in \ | |
9c12d2ec | 19 | rhel/openvswitch-kmod.files \ |
d8fe0a6a RS |
20 | rhel/openvswitch-kmod-fedora.spec \ |
21 | rhel/openvswitch-kmod-fedora.spec.in \ | |
c434706a BP |
22 | rhel/openvswitch.spec \ |
23 | rhel/openvswitch.spec.in \ | |
d8fe0a6a RS |
24 | rhel/openvswitch-fedora.spec \ |
25 | rhel/openvswitch-fedora.spec.in \ | |
26 | rhel/usr_share_openvswitch_scripts_sysconfig.template \ | |
b49c106e FL |
27 | rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \ |
28 | rhel/usr_lib_systemd_system_openvswitch.service \ | |
4f621873 | 29 | rhel/usr_lib_systemd_system_ovsdb-server.service \ |
84ad1208 | 30 | rhel/usr_lib_systemd_system_ovs-vswitchd.service \ |
c05ea879 | 31 | rhel/usr_lib_systemd_system_ovn-controller.service \ |
ab4d55dc | 32 | rhel/usr_lib_systemd_system_ovn-controller-vtep.service \ |
c05ea879 | 33 | rhel/usr_lib_systemd_system_ovn-northd.service |
c434706a | 34 | |
7b007006 | 35 | update_rhel_spec = \ |
ef44aa50 | 36 | $(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ |
d56bfe38 BP |
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 | |
c434706a | 39 | |
5cdc4335 AW |
40 | $(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status |
41 | $(update_rhel_spec) | |
42 | ||
c434706a | 43 | $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status |
7b007006 | 44 | $(update_rhel_spec) |
c434706a | 45 | |
d8fe0a6a RS |
46 | $(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status |
47 | $(update_rhel_spec) | |
48 | ||
c434706a | 49 | $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status |
7b007006 | 50 | $(update_rhel_spec) |
d8fe0a6a RS |
51 | |
52 | $(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_builddir)/config.status | |
53 | $(update_rhel_spec) | |
35666f1c LR |
54 | |
55 | RPMBUILD_TOP := $(abs_top_builddir)/rpm/rpmbuild | |
56 | ||
57 | # Build user-space RPMs | |
58 | rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec | |
59 | ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES | |
60 | cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES | |
61 | rpmbuild ${RPMBUILD_OPT} \ | |
62 | -D "_topdir ${RPMBUILD_TOP}" \ | |
63 | -bb $(srcdir)/rhel/openvswitch-fedora.spec | |
64 | ||
65 | # Build kernel datapath RPM | |
66 | rpm-fedora-kmod: dist $(srcdir)/rhel/openvswitch-kmod-fedora.spec | |
67 | ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES | |
68 | cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES | |
69 | rpmbuild -D "kversion $(shell uname -r)" ${RPMBUILD_OPT} \ | |
70 | -D "_topdir ${RPMBUILD_TOP}" \ | |
71 | -bb $(srcdir)/rhel/openvswitch-kmod-fedora.spec |