.vapi files are only needed when building vala programs using
libvirt-glib, so they belong to the -devel RPMs, not to the non-devel
RPMs which only hold files needed at runtime.
---
libvirt-glib.spec.in | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/libvirt-glib.spec.in b/libvirt-glib.spec.in
index f467767..202e624 100644
--- a/libvirt-glib.spec.in
+++ b/libvirt-glib.spec.in
@@ -162,28 +162,18 @@ rm -rf $RPM_BUILD_ROOT
%if %{with_introspection}
%{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
%endif
-%if %{with_vala}
-%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
-%endif
%files -n libvirt-gconfig
%{_libdir}/libvirt-gconfig-1.0.so.*
%if %{with_introspection}
%{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
%endif
-%if %{with_vala}
-%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
-%endif
%files -n libvirt-gobject
%{_libdir}/libvirt-gobject-1.0.so.*
%if %{with_introspection}
%{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
%endif
-%if %{with_vala}
-%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
-%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
-%endif
%files devel
%defattr(-,root,root,-)
@@ -198,6 +188,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
%endif
%{_datadir}/gtk-doc/html/Libvirt-glib
+%if %{with_vala}
+%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
+%endif
%files -n libvirt-gconfig-devel
%defattr(-,root,root,-)
@@ -212,6 +205,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
%endif
%{_datadir}/gtk-doc/html/Libvirt-gconfig
+%if %{with_vala}
+%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
+%endif
%files -n libvirt-gobject-devel
%defattr(-,root,root,-)
@@ -226,6 +222,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
%endif
%{_datadir}/gtk-doc/html/Libvirt-gobject
+%if %{with_vala}
+%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
+%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
+%endif
%if %{with_python}
%files python
--
1.9.3