]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt.spec: Move ownership of 'storage-file' backends directory to gluster
authorPeter Krempa <pkrempa@redhat.com>
Mon, 20 Jan 2025 14:14:39 +0000 (15:14 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Jan 2025 15:47:24 +0000 (16:47 +0100)
Commit f8558a87ac8525b16f4cbba4f24e0885fde2b79e de-modularized the
'storage-file' backend for local files, and thus now the only
possibility to have the directory is when compiling with gluster.

This breaks RPM builds when building without gluster as the backend
directory no longer exists in such case. Move the stanza requiring the
directory under the gluster driver declarations.

Fixes: f8558a87ac8525b16f4cbba4f24e0885fde2b79e
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
libvirt.spec.in

index b1e223cfbe0650110f5b0d6eebf6c8e09b4d133b..f513ca917399dff38bd1bb2a5dbfe0177f4e1643 100644 (file)
@@ -2098,7 +2098,6 @@ exit 0
 %dir %attr(0755, root, root) %{_libdir}/libvirt/
 %dir %attr(0755, root, root) %{_libdir}/libvirt/connection-driver/
 %dir %attr(0755, root, root) %{_libdir}/libvirt/storage-backend/
-%dir %attr(0755, root, root) %{_libdir}/libvirt/storage-file/
 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
 %{_datadir}/polkit-1/actions/org.libvirt.api.policy
 %{_datadir}/polkit-1/rules.d/50-libvirt.rules
@@ -2293,6 +2292,7 @@ exit 0
     %if %{with_storage_gluster}
 %files daemon-driver-storage-gluster
 %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so
+%dir %attr(0755, root, root) %{_libdir}/libvirt/storage-file/
 %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so
     %endif