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