[libvirt] [PATCH] spec: fix rpm build with VPATH

Pavel Hrdina posted 1 patch 5 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/6674b2313e1974b68115743ab1dccbb81bdb8f91.1573463773.git.phrdina@redhat.com
Test syntax-check failed
libvirt.spec.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH] spec: fix rpm build with VPATH
Posted by Pavel Hrdina 5 years ago
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 libvirt.spec.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 723ced3535..eb8b2df055 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1532,7 +1532,7 @@ exit 0
 
 %files docs
 %doc AUTHORS ChangeLog NEWS README README.md
-%doc libvirt-docs/*
+%doc %{_vpath_builddir}/libvirt-docs/*
 
 %files daemon
 
@@ -1892,7 +1892,7 @@ exit 0
 %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
 
-%files libs -f %{name}.lang
+%files libs -f %{_vpath_builddir}/%{name}.lang
 %license COPYING COPYING.LESSER
 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
 %config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf
-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] spec: fix rpm build with VPATH
Posted by Erik Skultety 5 years ago
On Mon, Nov 11, 2019 at 10:16:38AM +0100, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list