Signed-off-by: Andrea Bolognani <abolo...@redhat.com>
---
 ansible/host_vars/libvirt-centos-7/main.yml       |  1 +
 ansible/host_vars/libvirt-debian-8/main.yml       |  1 +
 ansible/host_vars/libvirt-debian-9/main.yml       |  1 +
 ansible/host_vars/libvirt-fedora-25/main.yml      |  1 +
 ansible/host_vars/libvirt-fedora-26/main.yml      |  1 +
 ansible/host_vars/libvirt-fedora-rawhide/main.yml |  1 +
 ansible/host_vars/libvirt-freebsd-11/main.yml     |  1 +
 ansible/host_vars/libvirt-ubuntu-14/main.yml      |  1 +
 ansible/host_vars/libvirt-ubuntu-16/main.yml      |  1 +
 ansible/tasks/build.yml                           | 40 +++++++++++++++++++++++
 ansible/vars/libosinfo/CentOS-7.yml               | 19 +++++++++++
 ansible/vars/libosinfo/Debian-8.yml               | 19 +++++++++++
 ansible/vars/libosinfo/Debian-9.yml               | 19 +++++++++++
 ansible/vars/libosinfo/Fedora-25.yml              | 19 +++++++++++
 ansible/vars/libosinfo/Fedora-26.yml              | 19 +++++++++++
 ansible/vars/libosinfo/Fedora-Rawhide.yml         | 19 +++++++++++
 ansible/vars/libosinfo/FreeBSD-11.yml             | 19 +++++++++++
 ansible/vars/libosinfo/Ubuntu-14.yml              | 19 +++++++++++
 ansible/vars/libosinfo/Ubuntu-16.yml              | 19 +++++++++++
 19 files changed, 220 insertions(+)
 create mode 100644 ansible/vars/libosinfo/CentOS-7.yml
 create mode 100644 ansible/vars/libosinfo/Debian-8.yml
 create mode 100644 ansible/vars/libosinfo/Debian-9.yml
 create mode 100644 ansible/vars/libosinfo/Fedora-25.yml
 create mode 100644 ansible/vars/libosinfo/Fedora-26.yml
 create mode 100644 ansible/vars/libosinfo/Fedora-Rawhide.yml
 create mode 100644 ansible/vars/libosinfo/FreeBSD-11.yml
 create mode 100644 ansible/vars/libosinfo/Ubuntu-14.yml
 create mode 100644 ansible/vars/libosinfo/Ubuntu-16.yml

diff --git a/ansible/host_vars/libvirt-centos-7/main.yml 
b/ansible/host_vars/libvirt-centos-7/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-centos-7/main.yml
+++ b/ansible/host_vars/libvirt-centos-7/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-debian-8/main.yml 
b/ansible/host_vars/libvirt-debian-8/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-debian-8/main.yml
+++ b/ansible/host_vars/libvirt-debian-8/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-debian-9/main.yml 
b/ansible/host_vars/libvirt-debian-9/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-debian-9/main.yml
+++ b/ansible/host_vars/libvirt-debian-9/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml 
b/ansible/host_vars/libvirt-fedora-25/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-fedora-25/main.yml
+++ b/ansible/host_vars/libvirt-fedora-25/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml 
b/ansible/host_vars/libvirt-fedora-26/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-fedora-26/main.yml
+++ b/ansible/host_vars/libvirt-fedora-26/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml 
b/ansible/host_vars/libvirt-fedora-rawhide/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml
+++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml 
b/ansible/host_vars/libvirt-freebsd-11/main.yml
index d405d58..81e362d 100644
--- a/ansible/host_vars/libvirt-freebsd-11/main.yml
+++ b/ansible/host_vars/libvirt-freebsd-11/main.yml
@@ -8,3 +8,4 @@ sudo: /usr/local/bin/sudo
 
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml 
b/ansible/host_vars/libvirt-ubuntu-14/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-ubuntu-14/main.yml
+++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml 
b/ansible/host_vars/libvirt-ubuntu-16/main.yml
index 1602406..a40cb4c 100644
--- a/ansible/host_vars/libvirt-ubuntu-16/main.yml
+++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml
@@ -1,3 +1,4 @@
 ---
 projects:
   - base
+  - libosinfo
diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml
index edb0064..2210261 100644
--- a/ansible/tasks/build.yml
+++ b/ansible/tasks/build.yml
@@ -12,3 +12,43 @@
   command: git clean -xdf
   args:
     chdir: '{{ project }}'
+
+# C build
+
+- name: '{{ project }}: Prepare configure options'
+  set_fact:
+    configure_options: []
+
+- name: '{{ project }}: Prepare configure options'
+  set_fact:
+    configure_options: '{{ configure_options }} + [ "{{ features[item] }}" ]'
+  with_items:
+    '{{ features }}'
+  when:
+    - features is defined
+
+- name: '{{ project }}: Prepare configure options'
+  set_fact:
+    configure_options: '{{ configure_options | join(" ") }}'
+
+- name: '{{ project }}: Run autogen.sh'
+  command: './autogen.sh {{ configure_options }}'
+  args:
+    chdir: '{{ project }}'
+  environment:
+  when:
+    - project == 'libosinfo'
+
+- name: '{{ project }}: Build project'
+  command: '{{ make }} -j{{ smp }}'
+  args:
+    chdir: '{{ project }}'
+  when:
+    - project == 'libosinfo'
+
+- name: '{{ project }}: Run sanity checks'
+  command: '{{ make }} -j{{ smp }} syntax-check'
+  args:
+    chdir: '{{ project }}'
+  when:
+    - project == 'libosinfo'
diff --git a/ansible/vars/libosinfo/CentOS-7.yml 
b/ansible/vars/libosinfo/CentOS-7.yml
new file mode 100644
index 0000000..c833b54
--- /dev/null
+++ b/ansible/vars/libosinfo/CentOS-7.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check-devel
+  - glib2-devel
+  - gnome-common
+  - gobject-introspection-devel
+  - gtk-doc
+  - hwdata
+  - intltool
+  - libsoup-devel
+  - libxml2
+  - libxml2-devel
+  - libxslt-devel
+  - vala
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Debian-8.yml 
b/ansible/vars/libosinfo/Debian-8.yml
new file mode 100644
index 0000000..f2d7ac1
--- /dev/null
+++ b/ansible/vars/libosinfo/Debian-8.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check
+  - gnome-common
+  - gtk-doc-tools
+  - hwdata
+  - intltool
+  - libgirepository1.0-dev
+  - libglib2.0-dev
+  - libsoup2.4-dev
+  - libxml2-dev
+  - libxml2-utils
+  - libxslt1-dev
+  - valac
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Debian-9.yml 
b/ansible/vars/libosinfo/Debian-9.yml
new file mode 100644
index 0000000..f2d7ac1
--- /dev/null
+++ b/ansible/vars/libosinfo/Debian-9.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check
+  - gnome-common
+  - gtk-doc-tools
+  - hwdata
+  - intltool
+  - libgirepository1.0-dev
+  - libglib2.0-dev
+  - libsoup2.4-dev
+  - libxml2-dev
+  - libxml2-utils
+  - libxslt1-dev
+  - valac
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Fedora-25.yml 
b/ansible/vars/libosinfo/Fedora-25.yml
new file mode 100644
index 0000000..c833b54
--- /dev/null
+++ b/ansible/vars/libosinfo/Fedora-25.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check-devel
+  - glib2-devel
+  - gnome-common
+  - gobject-introspection-devel
+  - gtk-doc
+  - hwdata
+  - intltool
+  - libsoup-devel
+  - libxml2
+  - libxml2-devel
+  - libxslt-devel
+  - vala
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Fedora-26.yml 
b/ansible/vars/libosinfo/Fedora-26.yml
new file mode 100644
index 0000000..c833b54
--- /dev/null
+++ b/ansible/vars/libosinfo/Fedora-26.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check-devel
+  - glib2-devel
+  - gnome-common
+  - gobject-introspection-devel
+  - gtk-doc
+  - hwdata
+  - intltool
+  - libsoup-devel
+  - libxml2
+  - libxml2-devel
+  - libxslt-devel
+  - vala
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Fedora-Rawhide.yml 
b/ansible/vars/libosinfo/Fedora-Rawhide.yml
new file mode 100644
index 0000000..c833b54
--- /dev/null
+++ b/ansible/vars/libosinfo/Fedora-Rawhide.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check-devel
+  - glib2-devel
+  - gnome-common
+  - gobject-introspection-devel
+  - gtk-doc
+  - hwdata
+  - intltool
+  - libsoup-devel
+  - libxml2
+  - libxml2-devel
+  - libxslt-devel
+  - vala
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/FreeBSD-11.yml 
b/ansible/vars/libosinfo/FreeBSD-11.yml
new file mode 100644
index 0000000..27787cf
--- /dev/null
+++ b/ansible/vars/libosinfo/FreeBSD-11.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check
+  - glib
+  - gnome-common
+  - gobject-introspection
+  - gtk-doc
+  - intltool
+  - libsoup
+  - libxml2
+  - libxslt
+  - pciids
+  - usbids
+  - vala
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Ubuntu-14.yml 
b/ansible/vars/libosinfo/Ubuntu-14.yml
new file mode 100644
index 0000000..f2d7ac1
--- /dev/null
+++ b/ansible/vars/libosinfo/Ubuntu-14.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check
+  - gnome-common
+  - gtk-doc-tools
+  - hwdata
+  - intltool
+  - libgirepository1.0-dev
+  - libglib2.0-dev
+  - libsoup2.4-dev
+  - libxml2-dev
+  - libxml2-utils
+  - libxslt1-dev
+  - valac
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
diff --git a/ansible/vars/libosinfo/Ubuntu-16.yml 
b/ansible/vars/libosinfo/Ubuntu-16.yml
new file mode 100644
index 0000000..f2d7ac1
--- /dev/null
+++ b/ansible/vars/libosinfo/Ubuntu-16.yml
@@ -0,0 +1,19 @@
+---
+packages:
+  - check
+  - gnome-common
+  - gtk-doc-tools
+  - hwdata
+  - intltool
+  - libgirepository1.0-dev
+  - libglib2.0-dev
+  - libsoup2.4-dev
+  - libxml2-dev
+  - libxml2-utils
+  - libxslt1-dev
+  - valac
+
+features:
+  enable_gtk_doc: --enable-gtk-doc
+  enable_introspection: --enable-introspection
+  enable_vala: --enable-vala
-- 
2.13.6

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

Reply via email to