From 53adb9aabaa045177403648941ef665a41075f36 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 30 Jul 2013 11:27:28 +0100 Subject: [PATCH] Re-add code to delete python tests Upstream mistakenly deleted code to remove the python test files from the docs dir Signed-off-by: Daniel P. Berrange --- libvirt.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libvirt.spec b/libvirt.spec index 42c4237..f418685 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -1440,6 +1440,12 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug %endif +%if ! %{with_python} +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version} +%else +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}/examples +%endif + %if ! %{with_qemu} rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu