summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-03-06 12:18:37 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-03-06 12:18:51 +0000
commit903120d640b6bcf721d28bde7e4b07cedd2b2cf3 (patch)
treecef7a53f3192e61dd1063c9efcce07b1180f70cd
parent32c004fedb444f54aaee304e22c0b553cf024321 (diff)
Add vala bindings to RPM
-rw-r--r--libvirt-designer.spec.in27
1 files changed, 26 insertions, 1 deletions
diff --git a/libvirt-designer.spec.in b/libvirt-designer.spec.in
index 2531650..5f1558f 100644
--- a/libvirt-designer.spec.in
+++ b/libvirt-designer.spec.in
@@ -8,7 +8,7 @@
%if 0%{?rhel} >= 6
%define with_introspection 1
%endif
-
+%define with_vala %{with_introspection}
Name: @PACKAGE@
Version: @VERSION@
@@ -25,6 +25,10 @@ BuildRequires: libvirt-gobject-devel >= @LIBVIRT_GOBJECT_REQUIRED@
BuildRequires: gobject-introspection-devel
%endif
BuildRequires: libosinfo-devel >= @LIBOSINFO_REQUIRED@
+%if %{with_vala}
+BuildRequires: vala-tools
+BuildRequires: libosinfo-vala >= @LIBOSINFO_REQUIRED@
+%endif
%package libs
Group: Development/Libraries
@@ -36,6 +40,14 @@ Summary: Libvirt configuration designer development headers
Requires: %{name}-libs = %{version}-%{release}
Requires: libvirt-gconfig-devel >= @LIBVIRT_GCONFIG_REQUIRED@
+%if %{with_vala}
+%package vala
+Group: Development/Libraries
+Summary: Libvirt designer vala language bindings
+Requires: %{name}-libs = %{version}-%{release}
+Requires: libosinfo-vala >= @LIBOSINFO_REQUIRED@
+%endif
+
%description
This package provides the libvirt configuration designer command
line tools.
@@ -48,6 +60,12 @@ libraries.
This package provides the libvirt configuration designer development
headers
+%if %{with_vala}
+%description vala
+This package provides the libvirt configuration designer vala
+language binding
+%endif
+
%prep
%setup -q
@@ -88,6 +106,13 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/girepository-1.0/LibvirtDesigner-1.0.typelib
%endif
+%if %{with_vala}
+%files vala
+%defattr(-,root,root,-)
+%{_datadir}/vala/vapi/libvirt-designer-1.0.deps
+%{_datadir}/vala/vapi/libvirt-designer-1.0.vapi
+%endif
+
%files devel
%defattr(-,root,root,-)
%{_libdir}/libvirt-designer-1.0.so