SHA256
1
0
forked from pool/libvirt

enable libvirt audit support

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=128
This commit is contained in:
James Fehlig 2011-06-30 19:38:30 +00:00 committed by Git OBS Bridge
parent 69045e4376
commit 965511f6c0
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 30 10:44:17 MDT 2011 - jfehlig@suse.de
- Enable building libvirt with audit support
bnc#694891
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 13 14:50:32 CST 2011 - lidongyang@novell.com Mon Jun 13 14:50:32 CST 2011 - lidongyang@novell.com

View File

@ -17,6 +17,9 @@
# norootforbuild # norootforbuild
# In the future, we may want a client only build, which will create a
# libvirt.so only containing the generic RPC driver and the test driver,
# but no libvirtd
# For now, default to a full server + client build # For now, default to a full server + client build
%define client_only 0 %define client_only 0
@ -142,6 +145,9 @@
%define with_yajl 0%{!?_without_yajl:%{server_drivers}} %define with_yajl 0%{!?_without_yajl:%{server_drivers}}
%endif %endif
# All supported version of openSUSE/SLE contain audit
%define with_audit 0%{!?_without_audit:1}
# Enable libpcap library # Enable libpcap library
%if %{with_qemu} %if %{with_qemu}
%if 0%{?suse_version} >= 1140 %if 0%{?suse_version} >= 1140
@ -271,6 +277,9 @@ BuildRequires: parted-devel
# For Multipath support # For Multipath support
BuildRequires: device-mapper-devel BuildRequires: device-mapper-devel
%endif %endif
%if %{with_audit}
BuildRequires: audit-devel
%endif
Name: libvirt Name: libvirt
Url: http://libvirt.org/ Url: http://libvirt.org/
@ -436,7 +445,6 @@ Authors:
Karel Zak <kzak@redhat.com> Karel Zak <kzak@redhat.com>
%if %{with_python} %if %{with_python}
%package python %package python
License: LGPLv2.1+ License: LGPLv2.1+
Summary: A C toolkit to interract with the virtualization capabilities of Linux Summary: A C toolkit to interract with the virtualization capabilities of Linux
@ -548,6 +556,9 @@ Authors:
%if ! %{with_polkit} %if ! %{with_polkit}
%define _without_polkit --without-polkit %define _without_polkit --without-polkit
%endif %endif
%if ! %{with_audit}
%define _without_audit --without-audit
%endif
%if ! %{with_network} %if ! %{with_network}
%define _without_network --without-network %define _without_network --without-network
%endif %endif
@ -591,6 +602,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
%{?_without_yajl} \ %{?_without_yajl} \
%{?_without_macvtap} \ %{?_without_macvtap} \
%{?_without_polkit} \ %{?_without_polkit} \
%{?_without_audit} \
%{?_without_network} \ %{?_without_network} \
%{?_without_sasl} \ %{?_without_sasl} \
%{?_without_python} \ %{?_without_python} \
@ -719,7 +731,6 @@ fi
%postun client -p /sbin/ldconfig %postun client -p /sbin/ldconfig
%if %{with_libvirtd} %if %{with_libvirtd}
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%{_sbindir}/libvirtd %{_sbindir}/libvirtd
@ -837,7 +848,6 @@ fi
%doc %{_docdir}/%{name}/html %doc %{_docdir}/%{name}/html
%if %{with_python} %if %{with_python}
%files python %files python
%defattr(-, root, root) %defattr(-, root, root)
%doc %{_docdir}/%{name}-python %doc %{_docdir}/%{name}-python