]> git.proxmox.com Git - mirror_ovs.git/blame - rhel/openvswitch-fedora.spec.in
AUTHORS: update e-mail address of Zoltan Balogh
[mirror_ovs.git] / rhel / openvswitch-fedora.spec.in
CommitLineData
d8fe0a6a
RS
1# Spec file for Open vSwitch.
2
e7529141 3# Copyright (C) 2009, 2010, 2013, 2014, 2015, 2016 Nicira Networks, Inc.
d8fe0a6a
RS
4#
5# Copying and distribution of this file, with or without modification,
6# are permitted in any medium without royalty provided the copyright
7# notice and this notice are preserved. This file is offered as-is,
8# without warranty of any kind.
329cf232
GS
9#
10# If tests have to be skipped while building, specify the '--without check'
11# option. For example:
8ef22bb1
LR
12# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
13#
14# Support for executing kernel data path tests under rpmbuild is
15# provided, however this is intended for use only in test environments
16# and should not be used otherwise (these tests require root privileges).
17# These tests can be executed, for example, via:
18# rpmbuild -rb --with check_datapath_kernel openvswitch-fedora.src.rpm
19#
20# These tests will use the currently installed OVS kernel modules, when
21# testing out of tree kernel modules the appropriate openvswitch-kmod
22# package should be installed first.
d8fe0a6a
RS
23
24#%define kernel 2.6.40.4-5.fc15.x86_64
25
2ff63ae0
FL
26# If libcap-ng isn't available and there is no need for running OVS
27# as regular user, specify the '--without libcapng'
28%bcond_without libcapng
eea0cdb5
PM
29# To enable DPDK support, specify '--with dpdk' when building
30%bcond_with dpdk
db8dcbaf
LM
31# Enable Python 3 by specifying '--with build_python3'.
32# This is enabled by default for versions of the distribution that
33# have Python 3 by default (Fedora > 22).
34%bcond_with build_python3
2ff63ae0 35
da11d088
FL
36# Enable PIE, bz#955181
37%global _hardened_build 1
38
b4366682
FL
39# some distros (e.g: RHEL-7) don't define _rundir macro yet
40# Fedora 15 onwards uses /run as _rundir
41%if 0%{!?_rundir:1}
42%define _rundir /run
43%endif
44
db8dcbaf
LM
45# define the python package prefix based on distribution version so that we can
46# simultaneously support RHEL-based and later Fedora versions in this spec file.
47%if 0%{?fedora} >= 25
48%define _py2 python2
49%endif
50
51%if 0%{?rhel} || 0%{?fedora} < 25
52%define _py2 python
53%endif
54
55
d8fe0a6a
RS
56Name: openvswitch
57Summary: Open vSwitch
58Group: System Environment/Daemons
59URL: http://www.openvswitch.org/
60Version: @VERSION@
61
362d45b7
FL
62# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
63# lib/sflow*.[ch] files are SISSL
64# datapath/ is GPLv2 (although not built into any of the binary packages)
362d45b7 65License: ASL 2.0 and LGPLv2+ and SISSL
d8fe0a6a 66Release: 1%{?dist}
d09dbe62 67Source: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
d8fe0a6a 68
d2ed89bc 69BuildRequires: autoconf automake libtool
21ea8738 70BuildRequires: systemd-units openssl openssl-devel
db8dcbaf
LM
71BuildRequires: %{_py2}-devel
72%if 0%{?fedora} > 22 || %{with build_python3}
bb1a7ca2 73BuildRequires: python3-devel
db8dcbaf 74%endif
21ea8738
FL
75BuildRequires: desktop-file-utils
76BuildRequires: groff graphviz
9b897c91 77BuildRequires: checkpolicy, selinux-policy-devel
fa90cc39 78BuildRequires: %{_py2}-sphinx
3b4099b4 79# make check dependencies
db8dcbaf 80BuildRequires: %{_py2}-twisted%{?rhel:-core} %{_py2}-zope-interface %{_py2}-six
3b4099b4 81BuildRequires: procps-ng
2ff63ae0
FL
82%if %{with libcapng}
83BuildRequires: libcap-ng libcap-ng-devel
84%endif
eea0cdb5 85%if %{with dpdk}
e6932e5d 86BuildRequires: libpcap-devel numactl-devel
f3e7ec25 87BuildRequires: dpdk-devel >= 17.05.1
eea0cdb5
PM
88Provides: %{name}-dpdk = %{version}-%{release}
89%endif
21ea8738 90
89ca9021 91Requires: openssl hostname iproute module-init-tools
ab725f42 92#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
c1ddf091 93#Requires: kernel >= 3.15.0-0
ab725f42 94
ac416a3a 95Requires(post): /usr/bin/getent
96Requires(post): /usr/sbin/useradd
97Requires(post): /usr/bin/sed
e3e738a3 98%if %{with dpdk}
99Requires(post): /usr/sbin/usermod
100Requires(post): /usr/sbin/groupadd
101%endif
b33c6dca 102Requires(post): systemd-units
d8fe0a6a
RS
103Requires(preun): systemd-units
104Requires(postun): systemd-units
f1b476c3 105Obsoletes: openvswitch-controller <= 0:2.1.0-1
d8fe0a6a 106
db8dcbaf 107# to skip running checks, pass --without check
329cf232 108%bcond_without check
8ef22bb1 109%bcond_with check_datapath_kernel
329cf232 110
d8fe0a6a 111%description
6fcc7a7a 112Open vSwitch provides standard network bridging functions and
d8fe0a6a
RS
113support for the OpenFlow protocol for remote per-flow control of
114traffic.
115
9b897c91
AA
116%package selinux-policy
117Summary: Open vSwitch SELinux policy
118License: ASL 2.0
119BuildArch: noarch
120Requires: selinux-policy-targeted
121
122%description selinux-policy
123Tailored Open vSwitch SELinux policy
124
db8dcbaf 125%package -n %{_py2}-openvswitch
bb1a7ca2 126Summary: Open vSwitch python2 bindings
9136f9bd
FL
127License: ASL 2.0
128BuildArch: noarch
db8dcbaf
LM
129Requires: %{_py2}
130Requires: %{_py2}-six
131%{?python_provide:%python_provide python2-openvswitch = %{version}-%{release}}
132%description -n %{_py2}-openvswitch
bb1a7ca2
TR
133Python bindings for the Open vSwitch database
134
db8dcbaf 135%if 0%{?fedora} > 22 || %{with build_python3}
bb1a7ca2
TR
136%package -n python3-openvswitch
137Summary: Open vSwitch python3 bindings
138License: ASL 2.0
139BuildArch: noarch
140Requires: python3
141Requires: python3-six
db8dcbaf 142%{?python_provide:%python_provide python3-openvswitch = %{version}-%{release}}
bb1a7ca2
TR
143
144%description -n python3-openvswitch
9136f9bd 145Python bindings for the Open vSwitch database
db8dcbaf 146%endif
9136f9bd 147
f305420a
FL
148%package test
149Summary: Open vSwitch testing utilities
150License: ASL 2.0
151BuildArch: noarch
db8dcbaf
LM
152Requires: %{_py2}-openvswitch = %{version}-%{release}
153Requires: %{_py2} %{_py2}-twisted
f305420a
FL
154
155%description test
156Utilities that are useful to diagnose performance and connectivity
157issues in Open vSwitch setup.
158
3519fa08
FL
159%package devel
160Summary: Open vSwitch OpenFlow development package (library, headers)
161License: ASL 2.0
162Provides: openvswitch-static = %{version}-%{release}
163
164%description devel
165This provides static library, libopenswitch.a and the openvswitch header
166files needed to build an external application.
167
0e12c2a4 168%package ovn-central
c05ea879
RB
169Summary: Open vSwitch - Open Virtual Network support
170License: ASL 2.0
0e12c2a4 171Requires: openvswitch openvswitch-ovn-common
55f36be5 172Requires: firewalld-filesystem
c05ea879 173
0e12c2a4 174%description ovn-central
c05ea879
RB
175OVN, the Open Virtual Network, is a system to support virtual network
176abstraction. OVN complements the existing capabilities of OVS to add
177native support for virtual network abstractions, such as virtual L2 and L3
178overlays and security groups.
179
0e12c2a4
BS
180%package ovn-host
181Summary: Open vSwitch - Open Virtual Network support
182License: ASL 2.0
183Requires: openvswitch openvswitch-ovn-common
55f36be5 184Requires: firewalld-filesystem
0e12c2a4
BS
185
186%description ovn-host
187OVN, the Open Virtual Network, is a system to support virtual network
188abstraction. OVN complements the existing capabilities of OVS to add
189native support for virtual network abstractions, such as virtual L2 and L3
190overlays and security groups.
191
192%package ovn-vtep
193Summary: Open vSwitch - Open Virtual Network support
194License: ASL 2.0
195Requires: openvswitch openvswitch-ovn-common
196
197%description ovn-vtep
198OVN vtep controller
199
200%package ovn-common
201Summary: Open vSwitch - Open Virtual Network support
202License: ASL 2.0
203Requires: openvswitch
204
205%description ovn-common
206Utilities that are use to diagnose and manage the OVN components.
207
208%package ovn-docker
209Summary: Open vSwitch - Open Virtual Network support
210License: ASL 2.0
db8dcbaf 211Requires: openvswitch openvswitch-ovn-common %{_py2}-openvswitch
0e12c2a4
BS
212
213%description ovn-docker
214Docker network plugins for OVN.
3519fa08 215
d8fe0a6a 216%prep
c1aadf4a 217%setup -q
d8fe0a6a
RS
218
219%build
2ff63ae0
FL
220%configure \
221%if %{with libcapng}
222 --enable-libcapng \
223%else
224 --disable-libcapng \
eea0cdb5
PM
225%endif
226%if %{with dpdk}
227 --with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \
2ff63ae0
FL
228%endif
229 --enable-ssl \
230 --with-pkidir=%{_sharedstatedir}/openvswitch/pki
231
dd6f26a9 232build-aux/dpdkstrip.py \
491a9d3b 233%if %{with dpdk}
234 --dpdk \
235%else
236 --nodpdk \
237%endif
238 < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
239 > rhel/usr_lib_systemd_system_ovs-vswitchd.service
240
6238c95d 241make %{?_smp_mflags}
7bc1aae7 242make selinux/openvswitch-custom.te
9b897c91
AA
243cd selinux
244make -f %{_datadir}/selinux/devel/Makefile
d8fe0a6a
RS
245
246%install
247rm -rf $RPM_BUILD_ROOT
248make install DESTDIR=$RPM_BUILD_ROOT
95ca408c 249
2f4f43bf 250install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
03736a67 251install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
1c9564eb 252install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
95ca408c 253
ea5dbd79 254%if %{with dpdk}
255install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
256 $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d/91-vfio.rules
257%endif
258
c846a5b2
FL
259install -p -D -m 0644 \
260 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
261 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
a694ead1 262for service in openvswitch ovsdb-server ovs-vswitchd ovs-delete-transient-ports \
ab4d55dc 263 ovn-controller ovn-controller-vtep ovn-northd; do
c05ea879
RB
264 install -p -D -m 0644 \
265 rhel/usr_lib_systemd_system_${service}.service \
266 $RPM_BUILD_ROOT%{_unitdir}/${service}.service
267done
fa0be8a4 268install -m 0755 rhel/etc_init.d_openvswitch \
d8fe0a6a 269 $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
95ca408c 270
92d53574 271install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
272 $RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
273
3d1d098c 274install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
4f98e02e 275 $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
95ca408c 276
fa0be8a4 277install -m 0644 vswitchd/vswitch.ovsschema \
4f98e02e 278 $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
95ca408c 279
4f98e02e 280install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
d8fe0a6a 281install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
4f98e02e 282 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
d8fe0a6a 283install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
4f98e02e 284 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
95ca408c 285
bb1a7ca2 286install -d -m 0755 $RPM_BUILD_ROOT%{python2_sitelib}
bb1a7ca2
TR
287cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* \
288 $RPM_BUILD_ROOT%{python2_sitelib}
db8dcbaf
LM
289
290%if 0%{?fedora} > 22 || %{with build_python3}
291install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
bb1a7ca2
TR
292cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovs \
293 $RPM_BUILD_ROOT%{python3_sitelib}
db8dcbaf
LM
294%endif
295
bb1a7ca2 296rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
d8fe0a6a 297
fa0be8a4 298install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
d8fe0a6a 299
1c9564eb 300touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
c1c7480b 301touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/.conf.db.~lock~
1c9564eb
FL
302touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
303
9b897c91
AA
304install -p -m 644 -D selinux/openvswitch-custom.pp \
305 $RPM_BUILD_ROOT%{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
306
d5c2862a 307install -d $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
4a546141 308install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-central-firewall-service.xml \
55f36be5 309 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/ovn-central-firewall-service.xml
4a546141 310install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-host-firewall-service.xml \
55f36be5
MM
311 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/ovn-host-firewall-service.xml
312
f1ea8916
TR
313install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/ovn
314ln -s %{_datadir}/openvswitch/scripts/ovndb-servers.ocf \
315 $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
316
ea36b046
TR
317install -p -D -m 0755 \
318 rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
319 $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
320
1247b5a7 321# remove unpackaged files
e7529141 322rm -f $RPM_BUILD_ROOT%{_bindir}/ovs-parse-backtrace \
1247b5a7 323 $RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
50e6c26f 324 $RPM_BUILD_ROOT%{_mandir}/man8/ovs-vlan-bug-workaround.8
1247b5a7 325
329cf232
GS
326%check
327%if %{with check}
0d3f2152 328 if make check TESTSUITEFLAGS='%{_smp_mflags}' RECHECK=yes; then :;
329cf232
GS
329 else
330 cat tests/testsuite.log
331 exit 1
332 fi
333%endif
8ef22bb1
LR
334%if %{with check_datapath_kernel}
335 if make check-kernel RECHECK=yes; then :;
336 else
337 cat tests/system-kmod-testsuite.log
338 exit 1
339 fi
340%endif
329cf232 341
d8fe0a6a
RS
342%clean
343rm -rf $RPM_BUILD_ROOT
344
345%preun
0447019d
FL
346%if 0%{?systemd_preun:1}
347 %systemd_preun %{name}.service
348%else
349 if [ $1 -eq 0 ] ; then
0e12c2a4 350 # Package removal, not upgrade
0447019d
FL
351 /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
352 /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
353 fi
354%endif
355
0e12c2a4 356%preun ovn-central
c05ea879 357%if 0%{?systemd_preun:1}
c05ea879
RB
358 %systemd_preun ovn-northd.service
359%else
360 if [ $1 -eq 0 ] ; then
0e12c2a4
BS
361 # Package removal, not upgrade
362 /bin/systemctl --no-reload disable ovn-northd.service >/dev/null 2>&1 || :
363 /bin/systemctl stop ovn-northd.service >/dev/null 2>&1 || :
364 fi
365%endif
366
367%preun ovn-host
368%if 0%{?systemd_preun:1}
369 %systemd_preun ovn-controller.service
370%else
371 if [ $1 -eq 0 ] ; then
372 # Package removal, not upgrade
c05ea879
RB
373 /bin/systemctl --no-reload disable ovn-controller.service >/dev/null 2>&1 || :
374 /bin/systemctl stop ovn-controller.service >/dev/null 2>&1 || :
0e12c2a4
BS
375 fi
376%endif
377
378%preun ovn-vtep
379%if 0%{?systemd_preun:1}
380 %systemd_preun ovn-controller-vtep.service
381%else
382 if [ $1 -eq 0 ] ; then
383 # Package removal, not upgrade
ab4d55dc
RB
384 /bin/systemctl --no-reload disable ovn-controller-vtep.service >/dev/null 2>&1 || :
385 /bin/systemctl stop ovn-controller-vtep.service >/dev/null 2>&1 || :
c05ea879
RB
386 fi
387%endif
d8fe0a6a
RS
388
389%post
ac416a3a 390if [ $1 -eq 1 ]; then
391 getent passwd openvswitch >/dev/null || \
392 useradd -r -d / -s /sbin/nologin -c "Open vSwitch Daemons" openvswitch
393
394 sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
395
e3e738a3 396%if %{with dpdk}
397 getent group hugetlbfs >/dev/null || \
398 groupadd hugetlbfs
399 usermod -a -G hugetlbfs openvswitch
400 sed -i \
401 's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
402 /etc/sysconfig/openvswitch
403%endif
404
ac416a3a 405 # In the case of upgrade, this is not needed.
406 chown -R openvswitch:openvswitch /etc/openvswitch
407fi
408
0447019d
FL
409%if 0%{?systemd_post:1}
410 %systemd_post %{name}.service
411%else
412 # Package install, not upgrade
413 if [ $1 -eq 1 ]; then
414 /bin/systemctl daemon-reload >dev/null || :
415 fi
416%endif
417
0e12c2a4
BS
418%post ovn-central
419%if 0%{?systemd_post:1}
420 %systemd_post ovn-northd.service
421%else
422 # Package install, not upgrade
423 if [ $1 -eq 1 ]; then
424 /bin/systemctl daemon-reload >dev/null || :
425 fi
426%endif
427
428%post ovn-host
c05ea879
RB
429%if 0%{?systemd_post:1}
430 %systemd_post ovn-controller.service
0e12c2a4
BS
431%else
432 # Package install, not upgrade
433 if [ $1 -eq 1 ]; then
434 /bin/systemctl daemon-reload >dev/null || :
435 fi
436%endif
437
438%post ovn-vtep
439%if 0%{?systemd_post:1}
ab4d55dc 440 %systemd_post ovn-controller-vtep.service
c05ea879
RB
441%else
442 # Package install, not upgrade
443 if [ $1 -eq 1 ]; then
444 /bin/systemctl daemon-reload >dev/null || :
445 fi
446%endif
d8fe0a6a 447
9b897c91
AA
448%post selinux-policy
449/usr/sbin/semodule -i %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp &> /dev/null || :
450
d8fe0a6a 451%postun
5771f476
FL
452%if 0%{?systemd_postun:1}
453 %systemd_postun %{name}.service
0447019d
FL
454%else
455 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0447019d
FL
456%endif
457
0e12c2a4 458%postun ovn-central
44dd4cc4
LR
459%if 0%{?systemd_postun:1}
460 %systemd_postun ovn-northd.service
c05ea879
RB
461%else
462 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0e12c2a4
BS
463%endif
464
465%postun ovn-host
44dd4cc4
LR
466%if 0%{?systemd_postun:1}
467 %systemd_postun ovn-controller.service
0e12c2a4
BS
468%else
469 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0e12c2a4
BS
470%endif
471
472%postun ovn-vtep
44dd4cc4
LR
473%if 0%{?systemd_postun:1}
474 %systemd_postun ovn-controller-vtep.service
0e12c2a4
BS
475%else
476 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
c05ea879 477%endif
d8fe0a6a 478
9b897c91
AA
479%postun selinux-policy
480if [ $1 -eq 0 ] ; then
481 /usr/sbin/semodule -r openvswitch-custom &> /dev/null || :
482fi
483
484%files selinux-policy
485%defattr(-,root,root)
486%{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
487
db8dcbaf 488%files -n %{_py2}-openvswitch
bb1a7ca2
TR
489%{python2_sitelib}/ovs
490%doc COPYING
491
db8dcbaf 492%if 0%{?fedora} > 22 || %{with build_python3}
bb1a7ca2
TR
493%files -n python3-openvswitch
494%{python3_sitelib}/ovs
9136f9bd 495%doc COPYING
db8dcbaf 496%endif
9136f9bd 497
f305420a
FL
498%files test
499%{_bindir}/ovs-test
500%{_bindir}/ovs-vlan-test
501%{_bindir}/ovs-l3ping
8647686e
AC
502%{_bindir}/ovs-pcap
503%{_bindir}/ovs-tcpdump
504%{_bindir}/ovs-tcpundump
f305420a
FL
505%{_mandir}/man8/ovs-test.8*
506%{_mandir}/man8/ovs-vlan-test.8*
507%{_mandir}/man8/ovs-l3ping.8*
8647686e
AC
508%{_mandir}/man1/ovs-pcap.1*
509%{_mandir}/man8/ovs-tcpdump.8*
510%{_mandir}/man1/ovs-tcpundump.1*
bb1a7ca2 511%{python2_sitelib}/ovstest
f305420a 512
3519fa08
FL
513%files devel
514%{_libdir}/*.a
515%{_libdir}/*.la
2fd84d5e 516%{_libdir}/pkgconfig/*.pc
3519fa08
FL
517%{_includedir}/openvswitch/*
518%{_includedir}/openflow/*
13a08aa9 519%{_includedir}/ovn/*
3519fa08 520
d8fe0a6a 521%files
951d79e6 522%defattr(-,openvswitch,openvswitch)
1c9564eb 523%dir %{_sysconfdir}/openvswitch
92d53574 524%{_sysconfdir}/openvswitch/default.conf
1c9564eb 525%config %ghost %{_sysconfdir}/openvswitch/conf.db
c1c7480b 526%ghost %{_sysconfdir}/openvswitch/.conf.db.~lock~
1c9564eb
FL
527%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
528%config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
951d79e6
TR
529%defattr(-,root,root)
530%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
531%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
a7321a1f 532%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
d8fe0a6a 533%{_unitdir}/openvswitch.service
4f621873 534%{_unitdir}/ovsdb-server.service
84ad1208 535%{_unitdir}/ovs-vswitchd.service
a694ead1 536%{_unitdir}/ovs-delete-transient-ports.service
d8fe0a6a
RS
537%{_datadir}/openvswitch/scripts/openvswitch.init
538%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
539%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
aa6ccca5
FL
540%{_datadir}/openvswitch/bugtool-plugins/
541%{_datadir}/openvswitch/scripts/ovs-bugtool-*
542%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
543%{_datadir}/openvswitch/scripts/ovs-lib
50e6c26f 544%{_datadir}/openvswitch/scripts/ovs-save
aa6ccca5
FL
545%{_datadir}/openvswitch/scripts/ovs-vtep
546%{_datadir}/openvswitch/scripts/ovs-ctl
ea36b046 547%{_datadir}/openvswitch/scripts/ovs-systemd-reload
aa6ccca5
FL
548%config %{_datadir}/openvswitch/vswitch.ovsschema
549%config %{_datadir}/openvswitch/vtep.ovsschema
5b88626a
FL
550%{_bindir}/ovs-appctl
551%{_bindir}/ovs-docker
552%{_bindir}/ovs-dpctl
553%{_bindir}/ovs-dpctl-top
554%{_bindir}/ovs-ofctl
555%{_bindir}/ovs-vsctl
556%{_bindir}/ovsdb-client
557%{_bindir}/ovsdb-tool
558%{_bindir}/ovs-testcontroller
559%{_bindir}/ovs-pki
560%{_bindir}/vtep-ctl
f616ba3e
FL
561%{_sbindir}/ovs-bugtool
562%{_sbindir}/ovs-vswitchd
563%{_sbindir}/ovsdb-server
a2f24d79
FL
564%{_mandir}/man1/ovsdb-client.1*
565%{_mandir}/man1/ovsdb-server.1*
566%{_mandir}/man1/ovsdb-tool.1*
567%{_mandir}/man5/ovs-vswitchd.conf.db.5*
bfaf6352 568%{_mandir}/man5/ovsdb.5*
a2f24d79 569%{_mandir}/man5/vtep.5*
b81dc9a3 570%{_mandir}/man7/ovs-fields.7*
bfaf6352
TR
571%{_mandir}/man7/ovsdb.7*
572%{_mandir}/man7/ovsdb-server.7*
a2f24d79
FL
573%{_mandir}/man8/vtep-ctl.8*
574%{_mandir}/man8/ovs-appctl.8*
575%{_mandir}/man8/ovs-bugtool.8*
576%{_mandir}/man8/ovs-ctl.8*
577%{_mandir}/man8/ovs-dpctl.8*
578%{_mandir}/man8/ovs-dpctl-top.8*
579%{_mandir}/man8/ovs-ofctl.8*
580%{_mandir}/man8/ovs-pki.8*
581%{_mandir}/man8/ovs-vsctl.8*
582%{_mandir}/man8/ovs-vswitchd.8*
583%{_mandir}/man8/ovs-parse-backtrace.8*
584%{_mandir}/man8/ovs-testcontroller.8*
ea5dbd79 585%if %{with dpdk}
586%{_prefix}/lib/udev/rules.d/91-vfio.rules
587%endif
11e02906 588%doc COPYING NOTICE README.rst NEWS rhel/README.RHEL.rst
d8fe0a6a 589/var/lib/openvswitch
94cd8383 590%attr(755,-,-) /var/log/openvswitch
51542edd 591%ghost %attr(755,root,root) %{_rundir}/openvswitch
d8fe0a6a 592
0e12c2a4 593%files ovn-docker
eaa923e3
GS
594%{_bindir}/ovn-docker-overlay-driver
595%{_bindir}/ovn-docker-underlay-driver
0e12c2a4
BS
596
597%files ovn-common
c05ea879 598%{_bindir}/ovn-nbctl
600a8085 599%{_bindir}/ovn-sbctl
f448e5a4 600%{_bindir}/ovn-trace
3547a8c1 601%{_bindir}/ovn-detrace
c05ea879 602%{_datadir}/openvswitch/scripts/ovn-ctl
a4245b78 603%{_datadir}/openvswitch/scripts/ovndb-servers.ocf
cfc6963c
FL
604%{_datadir}/openvswitch/scripts/ovn-bugtool-nbctl-show
605%{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-lflow-list
606%{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-show
c05ea879
RB
607%{_mandir}/man8/ovn-ctl.8*
608%{_mandir}/man8/ovn-nbctl.8*
f448e5a4 609%{_mandir}/man8/ovn-trace.8*
3547a8c1 610%{_mandir}/man1/ovn-detrace.1*
0e12c2a4 611%{_mandir}/man7/ovn-architecture.7*
600a8085 612%{_mandir}/man8/ovn-sbctl.8*
0e12c2a4
BS
613%{_mandir}/man5/ovn-nb.5*
614%{_mandir}/man5/ovn-sb.5*
f1ea8916 615%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
0e12c2a4
BS
616
617%files ovn-central
618%{_bindir}/ovn-northd
619%{_mandir}/man8/ovn-northd.8*
c05ea879
RB
620%config %{_datadir}/openvswitch/ovn-nb.ovsschema
621%config %{_datadir}/openvswitch/ovn-sb.ovsschema
0e12c2a4 622%{_unitdir}/ovn-northd.service
d5c2862a 623%{_prefix}/lib/firewalld/services/ovn-central-firewall-service.xml
0e12c2a4
BS
624
625%files ovn-host
626%{_bindir}/ovn-controller
627%{_mandir}/man8/ovn-controller.8*
c05ea879 628%{_unitdir}/ovn-controller.service
d5c2862a 629%{_prefix}/lib/firewalld/services/ovn-host-firewall-service.xml
0e12c2a4
BS
630
631%files ovn-vtep
632%{_bindir}/ovn-controller-vtep
633%{_mandir}/man8/ovn-controller-vtep.8*
ab4d55dc 634%{_unitdir}/ovn-controller-vtep.service
c05ea879 635
d8fe0a6a
RS
636%changelog
637* Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>
638- First build on F14