2014-09-29 14:34:11 -07:00
|
|
|
# Copyright (C) 2009, 2010, 2011, 2012, 2014 Nicira, Inc.
|
2011-06-21 13:00:22 -07:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without warranty of any kind.
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2016-10-30 13:29:52 +00:00
|
|
|
rhel/README.RHEL.rst \
|
2011-06-21 13:00:22 -07:00
|
|
|
rhel/automake.mk \
|
|
|
|
rhel/etc_init.d_openvswitch \
|
|
|
|
rhel/etc_logrotate.d_openvswitch \
|
2017-08-04 13:00:53 -04:00
|
|
|
rhel/etc_openvswitch_default.conf \
|
2011-11-03 10:30:04 -07:00
|
|
|
rhel/etc_sysconfig_network-scripts_ifdown-ovs \
|
|
|
|
rhel/etc_sysconfig_network-scripts_ifup-ovs \
|
2011-06-21 13:00:22 -07:00
|
|
|
rhel/openvswitch.spec \
|
|
|
|
rhel/openvswitch.spec.in \
|
2012-10-02 14:31:55 -04:00
|
|
|
rhel/openvswitch-fedora.spec \
|
|
|
|
rhel/openvswitch-fedora.spec.in \
|
2017-11-03 21:39:17 +01:00
|
|
|
rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
|
2012-10-02 14:31:55 -04:00
|
|
|
rhel/usr_share_openvswitch_scripts_sysconfig.template \
|
2014-01-09 01:04:33 -02:00
|
|
|
rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
|
2017-08-09 16:36:53 -04:00
|
|
|
rhel/usr_lib_udev_rules.d_91-vfio.rules \
|
2014-01-09 01:04:33 -02:00
|
|
|
rhel/usr_lib_systemd_system_openvswitch.service \
|
2016-07-25 14:03:52 -04:00
|
|
|
rhel/usr_lib_systemd_system_ovsdb-server.service \
|
2017-08-04 13:00:56 -04:00
|
|
|
rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
|
2017-09-13 09:35:34 +02:00
|
|
|
rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service \
|
2019-09-06 10:33:03 -04:00
|
|
|
rhel/usr_lib_systemd_system_openvswitch-ipsec.service
|
2011-06-21 13:00:22 -07:00
|
|
|
|
2017-08-04 13:00:56 -04:00
|
|
|
DISTCLEANFILES += rhel/usr_lib_systemd_system_ovs-vswitchd.service
|
|
|
|
|
2012-02-03 13:34:45 -08:00
|
|
|
update_rhel_spec = \
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
|
2011-08-25 10:18:47 -07:00
|
|
|
< $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \
|
|
|
|
if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
|
2011-06-21 13:00:22 -07:00
|
|
|
|
|
|
|
$(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
|
2012-02-03 13:34:45 -08:00
|
|
|
$(update_rhel_spec)
|
2012-10-02 14:31:55 -04:00
|
|
|
|
|
|
|
$(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_builddir)/config.status
|
|
|
|
$(update_rhel_spec)
|
2016-02-19 14:30:31 -05:00
|
|
|
|
|
|
|
RPMBUILD_TOP := $(abs_top_builddir)/rpm/rpmbuild
|
2017-03-31 11:27:23 -04:00
|
|
|
RPMBUILD_OPT ?= --without check
|
2016-02-19 14:30:31 -05:00
|
|
|
|
|
|
|
# Build user-space RPMs
|
|
|
|
rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec
|
|
|
|
${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
|
|
|
|
cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
|
|
|
|
rpmbuild ${RPMBUILD_OPT} \
|
|
|
|
-D "_topdir ${RPMBUILD_TOP}" \
|
2016-09-02 09:55:26 -04:00
|
|
|
-ba $(srcdir)/rhel/openvswitch-fedora.spec
|
2016-02-19 14:30:31 -05:00
|
|
|
|