]> git.proxmox.com Git - mirror_ovs.git/blob - rhel/openvswitch-fedora.spec.in
rhel: hugetlbfs group should be added as a system group.
[mirror_ovs.git] / rhel / openvswitch-fedora.spec.in
1 # Spec file for Open vSwitch.
2
3 # Copyright (C) 2009, 2010, 2013, 2014, 2015, 2016 Nicira Networks, Inc.
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.
9 #
10 # If tests have to be skipped while building, specify the '--without check'
11 # option. For example:
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.
23
24 #%define kernel 2.6.40.4-5.fc15.x86_64
25
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
29 # To enable DPDK support, specify '--with dpdk' when building
30 %bcond_with dpdk
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
35
36 # Enable PIE, bz#955181
37 %global _hardened_build 1
38
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
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
56 Name: openvswitch
57 Summary: Open vSwitch
58 Group: System Environment/Daemons
59 URL: http://www.openvswitch.org/
60 Version: @VERSION@
61
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)
65 License: ASL 2.0 and LGPLv2+ and SISSL
66 Release: 1%{?dist}
67 Source: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
68
69 BuildRequires: gcc gcc-c++
70 BuildRequires: autoconf automake libtool
71 BuildRequires: systemd-units openssl openssl-devel
72 BuildRequires: %{_py2}-devel
73 %if 0%{?fedora} > 22 || %{with build_python3}
74 BuildRequires: python3-devel
75 %endif
76 BuildRequires: desktop-file-utils
77 BuildRequires: groff graphviz
78 BuildRequires: checkpolicy, selinux-policy-devel
79 BuildRequires: %{_py2}-sphinx
80 # make check dependencies
81 BuildRequires: %{_py2}-twisted%{?rhel:-core} %{_py2}-zope-interface %{_py2}-six
82 BuildRequires: procps-ng
83 %if %{with libcapng}
84 BuildRequires: libcap-ng libcap-ng-devel
85 %endif
86 %if %{with dpdk}
87 BuildRequires: libpcap-devel numactl-devel
88 BuildRequires: dpdk-devel >= 17.05.1
89 Provides: %{name}-dpdk = %{version}-%{release}
90 %endif
91 BuildRequires: unbound unbound-devel
92
93 Requires: openssl hostname iproute module-init-tools unbound
94 #Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
95 #Requires: kernel >= 3.15.0-0
96
97 Requires(pre): shadow-utils
98 Requires(post): /bin/sed
99 Requires(post): systemd-units
100 Requires(preun): systemd-units
101 Requires(postun): systemd-units
102 Obsoletes: openvswitch-controller <= 0:2.1.0-1
103
104 # to skip running checks, pass --without check
105 %bcond_without check
106 %bcond_with check_datapath_kernel
107
108 %description
109 Open vSwitch provides standard network bridging functions and
110 support for the OpenFlow protocol for remote per-flow control of
111 traffic.
112
113 %package selinux-policy
114 Summary: Open vSwitch SELinux policy
115 License: ASL 2.0
116 BuildArch: noarch
117 Requires: selinux-policy-targeted
118
119 %description selinux-policy
120 Tailored Open vSwitch SELinux policy
121
122 %package -n %{_py2}-openvswitch
123 Summary: Open vSwitch python2 bindings
124 License: ASL 2.0
125 BuildArch: noarch
126 Requires: %{_py2}
127 Requires: %{_py2}-six
128 %{?python_provide:%python_provide python2-openvswitch = %{version}-%{release}}
129 %description -n %{_py2}-openvswitch
130 Python bindings for the Open vSwitch database
131
132 %if 0%{?fedora} > 22 || %{with build_python3}
133 %package -n python3-openvswitch
134 Summary: Open vSwitch python3 bindings
135 License: ASL 2.0
136 BuildArch: noarch
137 Requires: python3
138 Requires: python3-six
139 %{?python_provide:%python_provide python3-openvswitch = %{version}-%{release}}
140
141 %description -n python3-openvswitch
142 Python bindings for the Open vSwitch database
143 %endif
144
145 %package test
146 Summary: Open vSwitch testing utilities
147 License: ASL 2.0
148 BuildArch: noarch
149 Requires: %{_py2}-openvswitch = %{version}-%{release}
150 Requires: %{_py2} %{_py2}-netifaces %{_py2}-twisted
151
152 %description test
153 Utilities that are useful to diagnose performance and connectivity
154 issues in Open vSwitch setup.
155
156 %package devel
157 Summary: Open vSwitch OpenFlow development package (library, headers)
158 License: ASL 2.0
159 Provides: openvswitch-static = %{version}-%{release}
160
161 %description devel
162 This provides static library, libopenswitch.a and the openvswitch header
163 files needed to build an external application.
164
165 %if 0%{?rhel} > 7 || 0%{?fedora} > 28
166 %package -n network-scripts-%{name}
167 Summary: Open vSwitch legacy network service support
168 License: ASL 2.0
169 Requires: network-scripts
170 Supplements: (%{name} and network-scripts)
171
172 %description -n network-scripts-%{name}
173 This provides the ifup and ifdown scripts for use with the legacy network
174 service.
175 %endif
176
177 %package ovn-central
178 Summary: Open vSwitch - Open Virtual Network support
179 License: ASL 2.0
180 Requires: openvswitch openvswitch-ovn-common
181 Requires: firewalld-filesystem
182
183 %description ovn-central
184 OVN, the Open Virtual Network, is a system to support virtual network
185 abstraction. OVN complements the existing capabilities of OVS to add
186 native support for virtual network abstractions, such as virtual L2 and L3
187 overlays and security groups.
188
189 %package ovn-host
190 Summary: Open vSwitch - Open Virtual Network support
191 License: ASL 2.0
192 Requires: openvswitch openvswitch-ovn-common
193 Requires: firewalld-filesystem
194
195 %description ovn-host
196 OVN, the Open Virtual Network, is a system to support virtual network
197 abstraction. OVN complements the existing capabilities of OVS to add
198 native support for virtual network abstractions, such as virtual L2 and L3
199 overlays and security groups.
200
201 %package ovn-vtep
202 Summary: Open vSwitch - Open Virtual Network support
203 License: ASL 2.0
204 Requires: openvswitch openvswitch-ovn-common
205
206 %description ovn-vtep
207 OVN vtep controller
208
209 %package ovn-common
210 Summary: Open vSwitch - Open Virtual Network support
211 License: ASL 2.0
212 Requires: openvswitch
213
214 %description ovn-common
215 Utilities that are use to diagnose and manage the OVN components.
216
217 %package ovn-docker
218 Summary: Open vSwitch - Open Virtual Network support
219 License: ASL 2.0
220 Requires: openvswitch openvswitch-ovn-common %{_py2}-openvswitch
221
222 %description ovn-docker
223 Docker network plugins for OVN.
224
225 %prep
226 %setup -q
227
228 %build
229 %configure \
230 %if %{with libcapng}
231 --enable-libcapng \
232 %else
233 --disable-libcapng \
234 %endif
235 %if %{with dpdk}
236 --with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \
237 %endif
238 --enable-ssl \
239 --enable-shared \
240 --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
241 %if 0%{?fedora} > 22 || %{with build_python3}
242 PYTHON3=%{__python3} \
243 PYTHON=%{__python2}
244 %else
245 PYTHON=%{__python}
246 %endif
247
248 build-aux/dpdkstrip.py \
249 %if %{with dpdk}
250 --dpdk \
251 %else
252 --nodpdk \
253 %endif
254 < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
255 > rhel/usr_lib_systemd_system_ovs-vswitchd.service
256
257 make %{?_smp_mflags}
258 make selinux-policy
259
260 %install
261 rm -rf $RPM_BUILD_ROOT
262 make install DESTDIR=$RPM_BUILD_ROOT
263
264 install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
265 install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
266 install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
267
268 %if %{with dpdk}
269 install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
270 $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d/91-vfio.rules
271 %endif
272
273 install -p -D -m 0644 \
274 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
275 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
276 for service in openvswitch ovsdb-server ovs-vswitchd ovs-delete-transient-ports \
277 ovn-controller ovn-controller-vtep ovn-northd; do
278 install -p -D -m 0644 \
279 rhel/usr_lib_systemd_system_${service}.service \
280 $RPM_BUILD_ROOT%{_unitdir}/${service}.service
281 done
282 install -m 0755 rhel/etc_init.d_openvswitch \
283 $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
284
285 install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
286 $RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
287
288 install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
289 $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
290
291 install -m 0644 vswitchd/vswitch.ovsschema \
292 $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
293
294 install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
295 install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
296 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
297 install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
298 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
299
300 install -d -m 0755 $RPM_BUILD_ROOT%{python2_sitelib}
301 cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* \
302 $RPM_BUILD_ROOT%{python2_sitelib}
303
304 %if 0%{?fedora} > 22 || %{with build_python3}
305 install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
306 cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovs \
307 $RPM_BUILD_ROOT%{python3_sitelib}
308 %endif
309
310 rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
311
312 install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
313
314 touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
315 touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/.conf.db.~lock~
316 touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
317
318 install -p -m 644 -D selinux/openvswitch-custom.pp \
319 $RPM_BUILD_ROOT%{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
320
321 install -d $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
322 install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-central-firewall-service.xml \
323 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/ovn-central-firewall-service.xml
324 install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-host-firewall-service.xml \
325 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/ovn-host-firewall-service.xml
326
327 install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/ovn
328 ln -s %{_datadir}/openvswitch/scripts/ovndb-servers.ocf \
329 $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
330
331 install -p -D -m 0755 \
332 rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
333 $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
334
335 # remove unpackaged files
336 rm -f $RPM_BUILD_ROOT%{_bindir}/ovs-parse-backtrace \
337 $RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
338 $RPM_BUILD_ROOT%{_mandir}/man8/ovs-vlan-bug-workaround.8
339
340 %check
341 %if %{with check}
342 if make check TESTSUITEFLAGS='%{_smp_mflags}' RECHECK=yes; then :;
343 else
344 cat tests/testsuite.log
345 exit 1
346 fi
347 %endif
348 %if %{with check_datapath_kernel}
349 if make check-kernel RECHECK=yes; then :;
350 else
351 cat tests/system-kmod-testsuite.log
352 exit 1
353 fi
354 %endif
355
356 %clean
357 rm -rf $RPM_BUILD_ROOT
358
359 %pre selinux-policy
360 %selinux_relabel_pre -s targeted
361
362 %preun
363 %if 0%{?systemd_preun:1}
364 %systemd_preun %{name}.service
365 %else
366 if [ $1 -eq 0 ] ; then
367 # Package removal, not upgrade
368 /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
369 /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
370 fi
371 %endif
372
373 %preun ovn-central
374 %if 0%{?systemd_preun:1}
375 %systemd_preun ovn-northd.service
376 %else
377 if [ $1 -eq 0 ] ; then
378 # Package removal, not upgrade
379 /bin/systemctl --no-reload disable ovn-northd.service >/dev/null 2>&1 || :
380 /bin/systemctl stop ovn-northd.service >/dev/null 2>&1 || :
381 fi
382 %endif
383
384 %preun ovn-host
385 %if 0%{?systemd_preun:1}
386 %systemd_preun ovn-controller.service
387 %else
388 if [ $1 -eq 0 ] ; then
389 # Package removal, not upgrade
390 /bin/systemctl --no-reload disable ovn-controller.service >/dev/null 2>&1 || :
391 /bin/systemctl stop ovn-controller.service >/dev/null 2>&1 || :
392 fi
393 %endif
394
395 %preun ovn-vtep
396 %if 0%{?systemd_preun:1}
397 %systemd_preun ovn-controller-vtep.service
398 %else
399 if [ $1 -eq 0 ] ; then
400 # Package removal, not upgrade
401 /bin/systemctl --no-reload disable ovn-controller-vtep.service >/dev/null 2>&1 || :
402 /bin/systemctl stop ovn-controller-vtep.service >/dev/null 2>&1 || :
403 fi
404 %endif
405
406 %pre
407 getent group openvswitch >/dev/null || groupadd -r openvswitch
408 getent passwd openvswitch >/dev/null || \
409 useradd -r -g openvswitch -d / -s /sbin/nologin \
410 -c "Open vSwitch Daemons" openvswitch
411
412 %if %{with dpdk}
413 getent group hugetlbfs >/dev/null || groupadd -r hugetlbfs
414 usermod -a -G hugetlbfs openvswitch
415 %endif
416 exit 0
417
418 %post
419 if [ $1 -eq 1 ]; then
420 sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
421 sed -i 's:\(.*su\).*:\1 openvswitch openvswitch:' %{_sysconfdir}/logrotate.d/openvswitch
422
423 %if %{with dpdk}
424 sed -i \
425 's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
426 /etc/sysconfig/openvswitch
427 %endif
428
429 # In the case of upgrade, this is not needed.
430 chown -R openvswitch:openvswitch /etc/openvswitch
431 chown -R openvswitch:openvswitch /var/log/openvswitch
432 fi
433
434 %if 0%{?systemd_post:1}
435 %systemd_post %{name}.service
436 %else
437 # Package install, not upgrade
438 if [ $1 -eq 1 ]; then
439 /bin/systemctl daemon-reload >dev/null || :
440 fi
441 %endif
442
443 %post ovn-central
444 %if 0%{?systemd_post:1}
445 %systemd_post ovn-northd.service
446 %else
447 # Package install, not upgrade
448 if [ $1 -eq 1 ]; then
449 /bin/systemctl daemon-reload >dev/null || :
450 fi
451 %endif
452
453 %post ovn-host
454 %if 0%{?systemd_post:1}
455 %systemd_post ovn-controller.service
456 %else
457 # Package install, not upgrade
458 if [ $1 -eq 1 ]; then
459 /bin/systemctl daemon-reload >dev/null || :
460 fi
461 %endif
462
463 %post ovn-vtep
464 %if 0%{?systemd_post:1}
465 %systemd_post ovn-controller-vtep.service
466 %else
467 # Package install, not upgrade
468 if [ $1 -eq 1 ]; then
469 /bin/systemctl daemon-reload >dev/null || :
470 fi
471 %endif
472
473 %post selinux-policy
474 %selinux_modules_install -s targeted %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
475
476 %postun
477 %if 0%{?systemd_postun:1}
478 %systemd_postun %{name}.service
479 %else
480 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
481 %endif
482
483 %postun ovn-central
484 %if 0%{?systemd_postun:1}
485 %systemd_postun ovn-northd.service
486 %else
487 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
488 %endif
489
490 %postun ovn-host
491 %if 0%{?systemd_postun:1}
492 %systemd_postun ovn-controller.service
493 %else
494 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
495 %endif
496
497 %postun ovn-vtep
498 %if 0%{?systemd_postun:1}
499 %systemd_postun ovn-controller-vtep.service
500 %else
501 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
502 %endif
503
504 %postun selinux-policy
505 if [ $1 -eq 0 ] ; then
506 %selinux_modules_uninstall -s targeted openvswitch-custom
507 fi
508
509 %posttrans selinux-policy
510 %selinux_relabel_post -s targeted
511
512 %files selinux-policy
513 %defattr(-,root,root)
514 %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
515
516 %files -n %{_py2}-openvswitch
517 %{python2_sitelib}/ovs
518
519 %if 0%{?fedora} > 22 || %{with build_python3}
520 %files -n python3-openvswitch
521 %{python3_sitelib}/ovs
522 %endif
523
524 %files test
525 %{_bindir}/ovs-test
526 %{_bindir}/ovs-vlan-test
527 %{_bindir}/ovs-l3ping
528 %{_bindir}/ovs-pcap
529 %{_bindir}/ovs-tcpdump
530 %{_bindir}/ovs-tcpundump
531 %{_mandir}/man8/ovs-test.8*
532 %{_mandir}/man8/ovs-vlan-test.8*
533 %{_mandir}/man8/ovs-l3ping.8*
534 %{_mandir}/man1/ovs-pcap.1*
535 %{_mandir}/man8/ovs-tcpdump.8*
536 %{_mandir}/man1/ovs-tcpundump.1*
537 %{python2_sitelib}/ovstest
538
539 %files devel
540 %{_libdir}/lib*.so
541 %{_libdir}/*.a
542 %{_libdir}/*.la
543 %{_libdir}/pkgconfig/*.pc
544 %{_includedir}/openvswitch/*
545 %{_includedir}/openflow/*
546 %{_includedir}/ovn/*
547
548 %if 0%{?rhel} > 7 || 0%{?fedora} > 28
549 %files -n network-scripts-%{name}
550 %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
551 %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
552 %endif
553
554 %files
555 %defattr(-,openvswitch,openvswitch)
556 %dir %{_sysconfdir}/openvswitch
557 %{_sysconfdir}/openvswitch/default.conf
558 %config %ghost %{_sysconfdir}/openvswitch/conf.db
559 %ghost %{_sysconfdir}/openvswitch/.conf.db.~lock~
560 %config %ghost %{_sysconfdir}/openvswitch/system-id.conf
561 %config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
562 %defattr(-,root,root)
563 %{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
564 %{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
565 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
566 %{_unitdir}/openvswitch.service
567 %{_unitdir}/ovsdb-server.service
568 %{_unitdir}/ovs-vswitchd.service
569 %{_unitdir}/ovs-delete-transient-ports.service
570 %{_datadir}/openvswitch/scripts/openvswitch.init
571 %if ! (0%{?rhel} > 7 || 0%{?fedora} > 28)
572 %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
573 %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
574 %endif
575 %{_datadir}/openvswitch/bugtool-plugins/
576 %{_datadir}/openvswitch/scripts/ovs-bugtool-*
577 %{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
578 %{_datadir}/openvswitch/scripts/ovs-lib
579 %{_datadir}/openvswitch/scripts/ovs-save
580 %{_datadir}/openvswitch/scripts/ovs-vtep
581 %{_datadir}/openvswitch/scripts/ovs-ctl
582 %{_datadir}/openvswitch/scripts/ovs-kmod-ctl
583 %{_datadir}/openvswitch/scripts/ovs-systemd-reload
584 %config %{_datadir}/openvswitch/vswitch.ovsschema
585 %config %{_datadir}/openvswitch/vtep.ovsschema
586 %{_bindir}/ovs-appctl
587 %{_bindir}/ovs-docker
588 %{_bindir}/ovs-dpctl
589 %{_bindir}/ovs-dpctl-top
590 %{_bindir}/ovs-ofctl
591 %{_bindir}/ovs-vsctl
592 %{_bindir}/ovsdb-client
593 %{_bindir}/ovsdb-tool
594 %{_bindir}/ovs-testcontroller
595 %{_bindir}/ovs-pki
596 %{_bindir}/vtep-ctl
597 %{_libdir}/lib*.so.*
598 %{_sbindir}/ovs-bugtool
599 %{_sbindir}/ovs-vswitchd
600 %{_sbindir}/ovsdb-server
601 %{_mandir}/man1/ovsdb-client.1*
602 %{_mandir}/man1/ovsdb-server.1*
603 %{_mandir}/man1/ovsdb-tool.1*
604 %{_mandir}/man5/ovsdb-server.5*
605 %{_mandir}/man5/ovs-vswitchd.conf.db.5*
606 %{_mandir}/man5/ovsdb.5*
607 %{_mandir}/man5/vtep.5*
608 %{_mandir}/man7/ovs-fields.7*
609 %{_mandir}/man7/ovsdb.7*
610 %{_mandir}/man7/ovsdb-server.7*
611 %{_mandir}/man8/vtep-ctl.8*
612 %{_mandir}/man8/ovs-appctl.8*
613 %{_mandir}/man8/ovs-bugtool.8*
614 %{_mandir}/man8/ovs-ctl.8*
615 %{_mandir}/man8/ovs-dpctl.8*
616 %{_mandir}/man8/ovs-dpctl-top.8*
617 %{_mandir}/man8/ovs-kmod-ctl.8*
618 %{_mandir}/man8/ovs-ofctl.8*
619 %{_mandir}/man8/ovs-pki.8*
620 %{_mandir}/man8/ovs-vsctl.8*
621 %{_mandir}/man8/ovs-vswitchd.8*
622 %{_mandir}/man8/ovs-parse-backtrace.8*
623 %{_mandir}/man8/ovs-testcontroller.8*
624 %if %{with dpdk}
625 %{_prefix}/lib/udev/rules.d/91-vfio.rules
626 %endif
627 %doc NOTICE README.rst NEWS rhel/README.RHEL.rst
628 /var/lib/openvswitch
629 %attr(750,root,root) /var/log/openvswitch
630 %ghost %attr(755,root,root) %{_rundir}/openvswitch
631
632 %files ovn-docker
633 %{_bindir}/ovn-docker-overlay-driver
634 %{_bindir}/ovn-docker-underlay-driver
635
636 %files ovn-common
637 %{_bindir}/ovn-nbctl
638 %{_bindir}/ovn-sbctl
639 %{_bindir}/ovn-trace
640 %{_bindir}/ovn-detrace
641 %{_datadir}/openvswitch/scripts/ovn-ctl
642 %{_datadir}/openvswitch/scripts/ovndb-servers.ocf
643 %{_datadir}/openvswitch/scripts/ovn-bugtool-nbctl-show
644 %{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-lflow-list
645 %{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-show
646 %{_mandir}/man8/ovn-ctl.8*
647 %{_mandir}/man8/ovn-nbctl.8*
648 %{_mandir}/man8/ovn-trace.8*
649 %{_mandir}/man1/ovn-detrace.1*
650 %{_mandir}/man7/ovn-architecture.7*
651 %{_mandir}/man8/ovn-sbctl.8*
652 %{_mandir}/man5/ovn-nb.5*
653 %{_mandir}/man5/ovn-sb.5*
654 %{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
655
656 %files ovn-central
657 %{_bindir}/ovn-northd
658 %{_mandir}/man8/ovn-northd.8*
659 %config %{_datadir}/openvswitch/ovn-nb.ovsschema
660 %config %{_datadir}/openvswitch/ovn-sb.ovsschema
661 %{_unitdir}/ovn-northd.service
662 %{_prefix}/lib/firewalld/services/ovn-central-firewall-service.xml
663
664 %files ovn-host
665 %{_bindir}/ovn-controller
666 %{_mandir}/man8/ovn-controller.8*
667 %{_unitdir}/ovn-controller.service
668 %{_prefix}/lib/firewalld/services/ovn-host-firewall-service.xml
669
670 %files ovn-vtep
671 %{_bindir}/ovn-controller-vtep
672 %{_mandir}/man8/ovn-controller-vtep.8*
673 %{_unitdir}/ovn-controller-vtep.service
674
675 %changelog
676 * Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>
677 - First build on F14