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_openvswitch_default.conf \
14 rhel
/etc_sysconfig_network-scripts_ifdown-ovs \
15 rhel
/etc_sysconfig_network-scripts_ifup-ovs \
16 rhel
/openvswitch-dkms.spec \
17 rhel
/openvswitch-dkms.spec.in \
18 rhel
/kmod-openvswitch-rhel6.spec \
19 rhel
/kmod-openvswitch-rhel6.spec.in \
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_ovs-systemd-reload \
27 rhel
/usr_share_openvswitch_scripts_sysconfig.template \
28 rhel
/usr_share_openvswitch_scripts_systemd_sysconfig.template \
29 rhel
/usr_share_openvswitch_scripts_ovs-kmod-manage.sh \
30 rhel
/usr_lib_udev_rules.d_91-vfio.rules \
31 rhel
/usr_lib_systemd_system_openvswitch.service \
32 rhel
/usr_lib_systemd_system_ovsdb-server.service \
33 rhel
/usr_lib_systemd_system_ovs-vswitchd.service.in \
34 rhel
/usr_lib_systemd_system_ovs-delete-transient-ports.service \
35 rhel
/usr_lib_systemd_system_openvswitch-ipsec.service
37 DISTCLEANFILES
+= rhel
/usr_lib_systemd_system_ovs-vswitchd.service
40 $(AM_V_GEN
)($(ro_shell
) && sed
-e
's,[@]VERSION[@],$(VERSION),g') \
41 < $(srcdir)/rhel
/$(@F
).in
> $(@F
).tmp || exit
1; \
42 if cmp
-s
$(@F
).tmp
$@
; then touch
$@
; rm $(@F
).tmp
; else mv
$(@F
).tmp
$@
; fi
44 $(srcdir)/rhel
/openvswitch-dkms.spec
: rhel
/openvswitch-dkms.spec.in
$(top_builddir
)/config.status
47 $(srcdir)/rhel
/kmod-openvswitch-rhel6.spec
: rhel
/kmod-openvswitch-rhel6.spec.in
$(top_builddir
)/config.status
50 $(srcdir)/rhel
/openvswitch-kmod-fedora.spec
: rhel
/openvswitch-kmod-fedora.spec.in
$(top_builddir
)/config.status
53 $(srcdir)/rhel
/openvswitch.spec
: rhel
/openvswitch.spec.in
$(top_builddir
)/config.status
56 $(srcdir)/rhel
/openvswitch-fedora.spec
: rhel
/openvswitch-fedora.spec.in
$(top_builddir
)/config.status
59 RPMBUILD_TOP
:= $(abs_top_builddir
)/rpm
/rpmbuild
60 RPMBUILD_OPT ?
= --without
check
62 # Build user-space RPMs
63 rpm-fedora
: dist $(srcdir)/rhel
/openvswitch-fedora.spec
64 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
65 cp
${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
66 rpmbuild
${RPMBUILD_OPT} \
67 -D
"_topdir ${RPMBUILD_TOP}" \
68 -ba
$(srcdir)/rhel
/openvswitch-fedora.spec
70 # Build kernel datapath RPM
71 rpm-fedora-kmod
: dist $(srcdir)/rhel
/openvswitch-kmod-fedora.spec
72 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
73 cp
${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
74 rpmbuild
-D
"kversion $(shell uname -r)" ${RPMBUILD_OPT} \
75 -D
"_topdir ${RPMBUILD_TOP}" \
76 -ba
$(srcdir)/rhel
/openvswitch-kmod-fedora.spec