summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2018-01-12 15:58:56 +0000
committerDaniel P. Berrange <berrange@redhat.com>2018-01-12 18:15:57 +0000
commit7cb4a803877262a994e8f7097988c14b6f40e509 (patch)
tree32cdaffb4a8ef864935f7f3cfc40e67559dc3890 /libvirt-python.spec.in
parent948d77335ee33e78854e612fa51ce44506cdbb1a (diff)
downloadlibvirt-python-7cb4a803877262a994e8f7097988c14b6f40e509.tar.gz
Fix filtering of RPM provides for .so files
Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index 2dfc84a..f658496 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -54,7 +54,12 @@ BuildRequires: python3-lxml
%endif
# Don't want provides for python shared objects
+%if %{with_python2}
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
+%endif
+%if %{with_python3}
+%{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so}
+%endif
%{?filter_setup}
%description