]> git.proxmox.com Git - mirror_ovs.git/blame - rhel/openvswitch-fedora.spec.in
rhel: bug fix kmod spec file, rhel6
[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
771680d9 90BuildRequires: unbound unbound-devel
21ea8738 91
771680d9 92Requires: openssl hostname iproute module-init-tools unbound
ab725f42 93#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
c1ddf091 94#Requires: kernel >= 3.15.0-0
ab725f42 95
f624bf23 96Requires(pre): shadow-utils
108bcd6a 97Requires(post): /bin/sed
b33c6dca 98Requires(post): systemd-units
d8fe0a6a
RS
99Requires(preun): systemd-units
100Requires(postun): systemd-units
f1b476c3 101Obsoletes: openvswitch-controller <= 0:2.1.0-1
d8fe0a6a 102
db8dcbaf 103# to skip running checks, pass --without check
329cf232 104%bcond_without check
8ef22bb1 105%bcond_with check_datapath_kernel
329cf232 106
d8fe0a6a 107%description
6fcc7a7a 108Open vSwitch provides standard network bridging functions and
d8fe0a6a
RS
109support for the OpenFlow protocol for remote per-flow control of
110traffic.
111
9b897c91
AA
112%package selinux-policy
113Summary: Open vSwitch SELinux policy
114License: ASL 2.0
115BuildArch: noarch
116Requires: selinux-policy-targeted
117
118%description selinux-policy
119Tailored Open vSwitch SELinux policy
120
db8dcbaf 121%package -n %{_py2}-openvswitch
bb1a7ca2 122Summary: Open vSwitch python2 bindings
9136f9bd
FL
123License: ASL 2.0
124BuildArch: noarch
db8dcbaf
LM
125Requires: %{_py2}
126Requires: %{_py2}-six
127%{?python_provide:%python_provide python2-openvswitch = %{version}-%{release}}
128%description -n %{_py2}-openvswitch
bb1a7ca2
TR
129Python bindings for the Open vSwitch database
130
db8dcbaf 131%if 0%{?fedora} > 22 || %{with build_python3}
bb1a7ca2
TR
132%package -n python3-openvswitch
133Summary: Open vSwitch python3 bindings
134License: ASL 2.0
135BuildArch: noarch
136Requires: python3
137Requires: python3-six
db8dcbaf 138%{?python_provide:%python_provide python3-openvswitch = %{version}-%{release}}
bb1a7ca2
TR
139
140%description -n python3-openvswitch
9136f9bd 141Python bindings for the Open vSwitch database
db8dcbaf 142%endif
9136f9bd 143
f305420a
FL
144%package test
145Summary: Open vSwitch testing utilities
146License: ASL 2.0
147BuildArch: noarch
db8dcbaf 148Requires: %{_py2}-openvswitch = %{version}-%{release}
8e89f48b 149Requires: %{_py2} %{_py2}-netifaces %{_py2}-twisted
f305420a
FL
150
151%description test
152Utilities that are useful to diagnose performance and connectivity
153issues in Open vSwitch setup.
154
3519fa08
FL
155%package devel
156Summary: Open vSwitch OpenFlow development package (library, headers)
157License: ASL 2.0
158Provides: openvswitch-static = %{version}-%{release}
159
160%description devel
161This provides static library, libopenswitch.a and the openvswitch header
162files needed to build an external application.
163
0e12c2a4 164%package ovn-central
c05ea879
RB
165Summary: Open vSwitch - Open Virtual Network support
166License: ASL 2.0
0e12c2a4 167Requires: openvswitch openvswitch-ovn-common
55f36be5 168Requires: firewalld-filesystem
c05ea879 169
0e12c2a4 170%description ovn-central
c05ea879
RB
171OVN, the Open Virtual Network, is a system to support virtual network
172abstraction. OVN complements the existing capabilities of OVS to add
173native support for virtual network abstractions, such as virtual L2 and L3
174overlays and security groups.
175
0e12c2a4
BS
176%package ovn-host
177Summary: Open vSwitch - Open Virtual Network support
178License: ASL 2.0
179Requires: openvswitch openvswitch-ovn-common
55f36be5 180Requires: firewalld-filesystem
0e12c2a4
BS
181
182%description ovn-host
183OVN, the Open Virtual Network, is a system to support virtual network
184abstraction. OVN complements the existing capabilities of OVS to add
185native support for virtual network abstractions, such as virtual L2 and L3
186overlays and security groups.
187
188%package ovn-vtep
189Summary: Open vSwitch - Open Virtual Network support
190License: ASL 2.0
191Requires: openvswitch openvswitch-ovn-common
192
193%description ovn-vtep
194OVN vtep controller
195
196%package ovn-common
197Summary: Open vSwitch - Open Virtual Network support
198License: ASL 2.0
199Requires: openvswitch
200
201%description ovn-common
202Utilities that are use to diagnose and manage the OVN components.
203
204%package ovn-docker
205Summary: Open vSwitch - Open Virtual Network support
206License: ASL 2.0
db8dcbaf 207Requires: openvswitch openvswitch-ovn-common %{_py2}-openvswitch
0e12c2a4
BS
208
209%description ovn-docker
210Docker network plugins for OVN.
3519fa08 211
d8fe0a6a 212%prep
c1aadf4a 213%setup -q
d8fe0a6a
RS
214
215%build
2ff63ae0
FL
216%configure \
217%if %{with libcapng}
5a0e4aec 218 --enable-libcapng \
2ff63ae0 219%else
5a0e4aec 220 --disable-libcapng \
eea0cdb5
PM
221%endif
222%if %{with dpdk}
5a0e4aec 223 --with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \
2ff63ae0 224%endif
5a0e4aec
BP
225 --enable-ssl \
226 --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
72e6cd99 227%if 0%{?fedora} > 22 || %{with build_python3}
5a0e4aec
BP
228 PYTHON3=%{__python3} \
229 PYTHON=%{__python2}
72e6cd99 230%else
5a0e4aec 231 PYTHON=%{__python}
72e6cd99 232%endif
2ff63ae0 233
dd6f26a9 234build-aux/dpdkstrip.py \
491a9d3b 235%if %{with dpdk}
5a0e4aec 236 --dpdk \
491a9d3b 237%else
5a0e4aec 238 --nodpdk \
491a9d3b 239%endif
5a0e4aec
BP
240 < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
241 > rhel/usr_lib_systemd_system_ovs-vswitchd.service
491a9d3b 242
6238c95d 243make %{?_smp_mflags}
ee29e9fe 244make selinux-policy
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 \
5a0e4aec
BP
263 ovn-controller ovn-controller-vtep ovn-northd; do
264 install -p -D -m 0644 \
265 rhel/usr_lib_systemd_system_${service}.service \
266 $RPM_BUILD_ROOT%{_unitdir}/${service}.service
c05ea879 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
21aade70
AC
345%pre selinux-policy
346%selinux_relabel_pre -s targeted
347
d8fe0a6a 348%preun
0447019d
FL
349%if 0%{?systemd_preun:1}
350 %systemd_preun %{name}.service
351%else
352 if [ $1 -eq 0 ] ; then
0e12c2a4 353 # Package removal, not upgrade
0447019d
FL
354 /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
355 /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
356 fi
357%endif
358
0e12c2a4 359%preun ovn-central
c05ea879 360%if 0%{?systemd_preun:1}
c05ea879
RB
361 %systemd_preun ovn-northd.service
362%else
363 if [ $1 -eq 0 ] ; then
0e12c2a4
BS
364 # Package removal, not upgrade
365 /bin/systemctl --no-reload disable ovn-northd.service >/dev/null 2>&1 || :
366 /bin/systemctl stop ovn-northd.service >/dev/null 2>&1 || :
367 fi
368%endif
369
370%preun ovn-host
371%if 0%{?systemd_preun:1}
372 %systemd_preun ovn-controller.service
373%else
374 if [ $1 -eq 0 ] ; then
375 # Package removal, not upgrade
c05ea879
RB
376 /bin/systemctl --no-reload disable ovn-controller.service >/dev/null 2>&1 || :
377 /bin/systemctl stop ovn-controller.service >/dev/null 2>&1 || :
0e12c2a4
BS
378 fi
379%endif
380
381%preun ovn-vtep
382%if 0%{?systemd_preun:1}
383 %systemd_preun ovn-controller-vtep.service
384%else
385 if [ $1 -eq 0 ] ; then
386 # Package removal, not upgrade
ab4d55dc
RB
387 /bin/systemctl --no-reload disable ovn-controller-vtep.service >/dev/null 2>&1 || :
388 /bin/systemctl stop ovn-controller-vtep.service >/dev/null 2>&1 || :
c05ea879
RB
389 fi
390%endif
d8fe0a6a 391
f624bf23
AP
392%pre
393getent group openvswitch >/dev/null || groupadd -r openvswitch
394getent passwd openvswitch >/dev/null || \
395 useradd -r -g openvswitch -d / -s /sbin/nologin \
396 -c "Open vSwitch Daemons" openvswitch
397
398%if %{with dpdk}
399 getent group hugetlbfs >/dev/null || groupadd hugetlbfs
400 usermod -a -G hugetlbfs openvswitch
401%endif
402exit 0
403
d8fe0a6a 404%post
ac416a3a 405if [ $1 -eq 1 ]; then
ac416a3a 406 sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
407
e3e738a3 408%if %{with dpdk}
e3e738a3 409 sed -i \
410 's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
411 /etc/sysconfig/openvswitch
412%endif
413
ac416a3a 414 # In the case of upgrade, this is not needed.
415 chown -R openvswitch:openvswitch /etc/openvswitch
416fi
417
0447019d
FL
418%if 0%{?systemd_post:1}
419 %systemd_post %{name}.service
420%else
421 # Package install, not upgrade
422 if [ $1 -eq 1 ]; then
423 /bin/systemctl daemon-reload >dev/null || :
424 fi
425%endif
426
0e12c2a4
BS
427%post ovn-central
428%if 0%{?systemd_post:1}
429 %systemd_post ovn-northd.service
430%else
431 # Package install, not upgrade
432 if [ $1 -eq 1 ]; then
433 /bin/systemctl daemon-reload >dev/null || :
434 fi
435%endif
436
437%post ovn-host
c05ea879
RB
438%if 0%{?systemd_post:1}
439 %systemd_post ovn-controller.service
0e12c2a4
BS
440%else
441 # Package install, not upgrade
442 if [ $1 -eq 1 ]; then
443 /bin/systemctl daemon-reload >dev/null || :
444 fi
445%endif
446
447%post ovn-vtep
448%if 0%{?systemd_post:1}
ab4d55dc 449 %systemd_post ovn-controller-vtep.service
c05ea879
RB
450%else
451 # Package install, not upgrade
452 if [ $1 -eq 1 ]; then
453 /bin/systemctl daemon-reload >dev/null || :
454 fi
455%endif
d8fe0a6a 456
9b897c91 457%post selinux-policy
21aade70 458%selinux_modules_install -s targeted %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
9b897c91 459
d8fe0a6a 460%postun
5771f476
FL
461%if 0%{?systemd_postun:1}
462 %systemd_postun %{name}.service
0447019d
FL
463%else
464 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0447019d
FL
465%endif
466
0e12c2a4 467%postun ovn-central
44dd4cc4
LR
468%if 0%{?systemd_postun:1}
469 %systemd_postun ovn-northd.service
c05ea879
RB
470%else
471 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0e12c2a4
BS
472%endif
473
474%postun ovn-host
44dd4cc4
LR
475%if 0%{?systemd_postun:1}
476 %systemd_postun ovn-controller.service
0e12c2a4
BS
477%else
478 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
0e12c2a4
BS
479%endif
480
481%postun ovn-vtep
44dd4cc4
LR
482%if 0%{?systemd_postun:1}
483 %systemd_postun ovn-controller-vtep.service
0e12c2a4
BS
484%else
485 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
c05ea879 486%endif
d8fe0a6a 487
9b897c91
AA
488%postun selinux-policy
489if [ $1 -eq 0 ] ; then
21aade70 490 %selinux_modules_uninstall -s targeted openvswitch-custom
9b897c91
AA
491fi
492
21aade70
AC
493%posttrans selinux-policy
494%selinux_relabel_post -s targeted
495
9b897c91
AA
496%files selinux-policy
497%defattr(-,root,root)
498%{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp
499
db8dcbaf 500%files -n %{_py2}-openvswitch
bb1a7ca2 501%{python2_sitelib}/ovs
bb1a7ca2 502
db8dcbaf 503%if 0%{?fedora} > 22 || %{with build_python3}
bb1a7ca2
TR
504%files -n python3-openvswitch
505%{python3_sitelib}/ovs
db8dcbaf 506%endif
9136f9bd 507
f305420a
FL
508%files test
509%{_bindir}/ovs-test
510%{_bindir}/ovs-vlan-test
511%{_bindir}/ovs-l3ping
8647686e
AC
512%{_bindir}/ovs-pcap
513%{_bindir}/ovs-tcpdump
514%{_bindir}/ovs-tcpundump
f305420a
FL
515%{_mandir}/man8/ovs-test.8*
516%{_mandir}/man8/ovs-vlan-test.8*
517%{_mandir}/man8/ovs-l3ping.8*
8647686e
AC
518%{_mandir}/man1/ovs-pcap.1*
519%{_mandir}/man8/ovs-tcpdump.8*
520%{_mandir}/man1/ovs-tcpundump.1*
bb1a7ca2 521%{python2_sitelib}/ovstest
f305420a 522
3519fa08
FL
523%files devel
524%{_libdir}/*.a
525%{_libdir}/*.la
2fd84d5e 526%{_libdir}/pkgconfig/*.pc
3519fa08
FL
527%{_includedir}/openvswitch/*
528%{_includedir}/openflow/*
13a08aa9 529%{_includedir}/ovn/*
3519fa08 530
d8fe0a6a 531%files
951d79e6 532%defattr(-,openvswitch,openvswitch)
1c9564eb 533%dir %{_sysconfdir}/openvswitch
92d53574 534%{_sysconfdir}/openvswitch/default.conf
1c9564eb 535%config %ghost %{_sysconfdir}/openvswitch/conf.db
c1c7480b 536%ghost %{_sysconfdir}/openvswitch/.conf.db.~lock~
1c9564eb
FL
537%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
538%config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
951d79e6
TR
539%defattr(-,root,root)
540%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
541%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
a7321a1f 542%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
d8fe0a6a 543%{_unitdir}/openvswitch.service
4f621873 544%{_unitdir}/ovsdb-server.service
84ad1208 545%{_unitdir}/ovs-vswitchd.service
a694ead1 546%{_unitdir}/ovs-delete-transient-ports.service
d8fe0a6a
RS
547%{_datadir}/openvswitch/scripts/openvswitch.init
548%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
549%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
aa6ccca5
FL
550%{_datadir}/openvswitch/bugtool-plugins/
551%{_datadir}/openvswitch/scripts/ovs-bugtool-*
552%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
553%{_datadir}/openvswitch/scripts/ovs-lib
50e6c26f 554%{_datadir}/openvswitch/scripts/ovs-save
aa6ccca5
FL
555%{_datadir}/openvswitch/scripts/ovs-vtep
556%{_datadir}/openvswitch/scripts/ovs-ctl
15117123 557%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
ea36b046 558%{_datadir}/openvswitch/scripts/ovs-systemd-reload
aa6ccca5
FL
559%config %{_datadir}/openvswitch/vswitch.ovsschema
560%config %{_datadir}/openvswitch/vtep.ovsschema
5b88626a
FL
561%{_bindir}/ovs-appctl
562%{_bindir}/ovs-docker
563%{_bindir}/ovs-dpctl
564%{_bindir}/ovs-dpctl-top
565%{_bindir}/ovs-ofctl
566%{_bindir}/ovs-vsctl
567%{_bindir}/ovsdb-client
568%{_bindir}/ovsdb-tool
569%{_bindir}/ovs-testcontroller
570%{_bindir}/ovs-pki
571%{_bindir}/vtep-ctl
f616ba3e
FL
572%{_sbindir}/ovs-bugtool
573%{_sbindir}/ovs-vswitchd
574%{_sbindir}/ovsdb-server
a2f24d79
FL
575%{_mandir}/man1/ovsdb-client.1*
576%{_mandir}/man1/ovsdb-server.1*
577%{_mandir}/man1/ovsdb-tool.1*
6bb9b060 578%{_mandir}/man5/ovsdb-server.5*
a2f24d79 579%{_mandir}/man5/ovs-vswitchd.conf.db.5*
bfaf6352 580%{_mandir}/man5/ovsdb.5*
a2f24d79 581%{_mandir}/man5/vtep.5*
b81dc9a3 582%{_mandir}/man7/ovs-fields.7*
bfaf6352
TR
583%{_mandir}/man7/ovsdb.7*
584%{_mandir}/man7/ovsdb-server.7*
a2f24d79
FL
585%{_mandir}/man8/vtep-ctl.8*
586%{_mandir}/man8/ovs-appctl.8*
587%{_mandir}/man8/ovs-bugtool.8*
588%{_mandir}/man8/ovs-ctl.8*
589%{_mandir}/man8/ovs-dpctl.8*
590%{_mandir}/man8/ovs-dpctl-top.8*
15117123 591%{_mandir}/man8/ovs-kmod-ctl.8*
a2f24d79
FL
592%{_mandir}/man8/ovs-ofctl.8*
593%{_mandir}/man8/ovs-pki.8*
594%{_mandir}/man8/ovs-vsctl.8*
595%{_mandir}/man8/ovs-vswitchd.8*
596%{_mandir}/man8/ovs-parse-backtrace.8*
597%{_mandir}/man8/ovs-testcontroller.8*
ea5dbd79 598%if %{with dpdk}
599%{_prefix}/lib/udev/rules.d/91-vfio.rules
600%endif
888cf44d 601%doc NOTICE README.rst NEWS rhel/README.RHEL.rst
d8fe0a6a 602/var/lib/openvswitch
3f556d66 603%attr(750,openvswitch,openvswitch) /var/log/openvswitch
51542edd 604%ghost %attr(755,root,root) %{_rundir}/openvswitch
d8fe0a6a 605
0e12c2a4 606%files ovn-docker
eaa923e3
GS
607%{_bindir}/ovn-docker-overlay-driver
608%{_bindir}/ovn-docker-underlay-driver
0e12c2a4
BS
609
610%files ovn-common
c05ea879 611%{_bindir}/ovn-nbctl
600a8085 612%{_bindir}/ovn-sbctl
f448e5a4 613%{_bindir}/ovn-trace
3547a8c1 614%{_bindir}/ovn-detrace
c05ea879 615%{_datadir}/openvswitch/scripts/ovn-ctl
a4245b78 616%{_datadir}/openvswitch/scripts/ovndb-servers.ocf
cfc6963c
FL
617%{_datadir}/openvswitch/scripts/ovn-bugtool-nbctl-show
618%{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-lflow-list
619%{_datadir}/openvswitch/scripts/ovn-bugtool-sbctl-show
c05ea879
RB
620%{_mandir}/man8/ovn-ctl.8*
621%{_mandir}/man8/ovn-nbctl.8*
f448e5a4 622%{_mandir}/man8/ovn-trace.8*
3547a8c1 623%{_mandir}/man1/ovn-detrace.1*
0e12c2a4 624%{_mandir}/man7/ovn-architecture.7*
600a8085 625%{_mandir}/man8/ovn-sbctl.8*
0e12c2a4
BS
626%{_mandir}/man5/ovn-nb.5*
627%{_mandir}/man5/ovn-sb.5*
f1ea8916 628%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
0e12c2a4
BS
629
630%files ovn-central
631%{_bindir}/ovn-northd
632%{_mandir}/man8/ovn-northd.8*
c05ea879
RB
633%config %{_datadir}/openvswitch/ovn-nb.ovsschema
634%config %{_datadir}/openvswitch/ovn-sb.ovsschema
0e12c2a4 635%{_unitdir}/ovn-northd.service
d5c2862a 636%{_prefix}/lib/firewalld/services/ovn-central-firewall-service.xml
0e12c2a4
BS
637
638%files ovn-host
639%{_bindir}/ovn-controller
640%{_mandir}/man8/ovn-controller.8*
c05ea879 641%{_unitdir}/ovn-controller.service
d5c2862a 642%{_prefix}/lib/firewalld/services/ovn-host-firewall-service.xml
0e12c2a4
BS
643
644%files ovn-vtep
645%{_bindir}/ovn-controller-vtep
646%{_mandir}/man8/ovn-controller-vtep.8*
ab4d55dc 647%{_unitdir}/ovn-controller-vtep.service
c05ea879 648
d8fe0a6a
RS
649%changelog
650* Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>
651- First build on F14