# A few optional bits off by default, we enable later
%define with_fuse 0%{!?_without_fuse:0}
-%define with_nwfilter 0%{!?_without_nwfilter:0}
%define with_libpcap 0%{!?_without_libpcap:0}
%define with_macvtap 0%{!?_without_macvtap:0}
%define with_libnl 0%{!?_without_libnl:0}
%if %{with_qemu} || %{with_lxc} || %{with_uml}
- %define with_nwfilter 0%{!?_without_nwfilter:1}
# Enable libpcap library
%define with_libpcap 0%{!?_without_libpcap:1}
%define with_macvtap 0%{!?_without_macvtap:1}
Requires: libvirt-daemon = %{version}-%{release}
Requires: libvirt-daemon-config-network = %{version}-%{release}
-%if %{with_nwfilter}
Requires: libvirt-daemon-config-nwfilter = %{version}-%{release}
-%endif
%if %{with_libxl}
Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
%endif
%if %{with_vbox}
Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
%endif
-%if %{with_nwfilter}
Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
-%endif
Requires: libvirt-daemon-driver-interface = %{version}-%{release}
Requires: libvirt-daemon-driver-secret = %{version}-%{release}
BuildRequires: iptables-ipv6
%endif
BuildRequires: radvd
-%if %{with_nwfilter}
BuildRequires: ebtables
-%endif
BuildRequires: module-init-tools
BuildRequires: cyrus-sasl-devel
%if 0%{?fedora} || 0%{?rhel} >= 7
%description daemon-config-network
Default configuration files for setting up NAT based networking
-%if %{with_nwfilter}
%package daemon-config-nwfilter
Summary: Network filter configuration files for the libvirtd daemon
Group: Development/Libraries
%description daemon-config-nwfilter
Network filter configuration files for cleaning guest traffic
-%endif
%package daemon-driver-network
Summary: Network driver plugin for the libvirtd daemon
bridge capabilities.
-%if %{with_nwfilter}
%package daemon-driver-nwfilter
Summary: Nwfilter driver plugin for the libvirtd daemon
Group: Development/Libraries
Requires: libvirt-daemon = %{version}-%{release}
Requires: iptables
- %if 0%{?rhel} && 0%{?rhel} < 7
+%if 0%{?rhel} && 0%{?rhel} < 7
Requires: iptables-ipv6
- %endif
+%endif
Requires: ebtables
%description daemon-driver-nwfilter
The nwfilter driver plugin for the libvirtd daemon, providing
an implementation of the firewall APIs using the ebtables,
iptables and ip6tables capabilities
-%endif
%package daemon-driver-nodedev
%dir %{_datadir}/libvirt/networks/
%{_datadir}/libvirt/networks/default.xml
-%if %{with_nwfilter}
%files daemon-config-nwfilter
%defattr(-, root, root)
%{_sysconfdir}/libvirt/nwfilter/*.xml
-%endif
%files daemon-driver-interface
%defattr(-, root, root)
%defattr(-, root, root)
%{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
-%if %{with_nwfilter}
%files daemon-driver-nwfilter
%defattr(-, root, root)
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
%ghost %dir %{_localstatedir}/run/libvirt/network/
%{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
-%endif
%files daemon-driver-secret
%defattr(-, root, root)