SHA256
1
0
forked from pool/libvirt-glib
libvirt-glib/libvirt-glib.spec
Cédric Bosdonnat e916781671 Accepting request 236234 from home:cbosdonnat:branches:Virtualization
- Extended API to provide host supported security models.
  bnc#878048. secmodel-caps.patch

- Update to version 0.1.8:
  + Add getter/setter for UUID in domain config
  + Remove dead code / unused variables
  + Add missing symbol exports
  + Add support for setting nwfilters in domain config
  + Switch to standard gobject introspection autotools macros
  + Fix typo preventing removal of clock config
  + Add getter/setters for disk driver type
  + Add unit tests based on glib tap harness
  + Add test for validating symbol file exports
  + Add getters for domain graphics config params
  + Add more getters for domain timer config
  + Add support for hpet timer type
  + Fix event loop impl on win32
  + Fix parent class/object of pit timer class
  + Fix misc API doc bugs
  + Add more getters for domain clock config
  + Fix removal of domain CPU feature flags
  + Fix removal of capabilities CPU topology
  + Misc fixes to glib event loop integration

OBS-URL: https://build.opensuse.org/request/show/236234
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt-glib?expand=0&rev=34
2014-06-04 14:46:44 +00:00

190 lines
7.7 KiB
RPMSpec

#
# spec file for package libvirt-glib
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libvirt-glib
Version: 0.1.8
Release: 0
Summary: GLib and GObject mapping of libvirt
License: LGPL-2.1+
Group: System/Libraries
Url: http://libvirt.org
Source: http://libvirt.org/sources/glib/%{name}-%{version}.tar.gz
# Patches pending upstreaming
Patch0: secmodel-caps.patch
BuildRequires: intltool >= 0.35.0
BuildRequires: libtool
BuildRequires: vala
BuildRequires: pkgconfig(glib-2.0) >= 2.22.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.10.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8
BuildRequires: pkgconfig(gthread-2.0) >= 2.22.0
BuildRequires: pkgconfig(libvirt) >= 0.10.2
BuildRequires: pkgconfig(libxml-2.0) >= 2.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%package -n libvirt-glib-1_0-0
Summary: GLib and GObject mapping of libvirt
Group: System/Libraries
%description -n libvirt-glib-1_0-0
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%package -n typelib-1_0-LibvirtGConfig-1_0
Summary: GLib and GObject mapping of libvirt - gi-bindings
Group: System/Libraries
%description -n typelib-1_0-LibvirtGConfig-1_0
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%package -n typelib-1_0-LibvirtGLib-1_0
Summary: GLib and GObject mapping of libvirt - gi-bindings
Group: System/Libraries
%description -n typelib-1_0-LibvirtGLib-1_0
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%package -n typelib-1_0-LibvirtGObject-1_0
Summary: GLib and GObject mapping of libvirt - gi-bindings
Group: System/Libraries
%description -n typelib-1_0-LibvirtGObject-1_0
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%package devel
Summary: GLib and GObject mapping of libvirt - Development files
Group: Development/Languages/C and C++
Requires: libvirt-glib-1_0-0 = %{version}
Requires: typelib-1_0-LibvirtGConfig-1_0 = %{version}
Requires: typelib-1_0-LibvirtGLib-1_0 = %{version}
Requires: typelib-1_0-LibvirtGObject-1_0 = %{version}
%description devel
libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization on
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
# Parallel build causes random failures
#make %{?_smp_mflags}
make
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%post -n libvirt-glib-1_0-0 -p /sbin/ldconfig
%postun -n libvirt-glib-1_0-0 -p /sbin/ldconfig
%files -n libvirt-glib-1_0-0 -f %{name}.lang
%defattr(-, root, root)
%doc COPYING README ChangeLog
%{_libdir}/libvirt-gconfig-1.0.so.*
%{_libdir}/libvirt-glib-1.0.so.*
%{_libdir}/libvirt-gobject-1.0.so.*
%files -n typelib-1_0-LibvirtGConfig-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
%files -n typelib-1_0-LibvirtGLib-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
%files -n typelib-1_0-LibvirtGObject-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
%files devel
%defattr(-, root, root)
%{_libdir}/libvirt-gconfig-1.0.so
%{_libdir}/libvirt-glib-1.0.so
%{_libdir}/libvirt-gobject-1.0.so
%{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
%{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
%{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
%{_includedir}/libvirt-gconfig-1.0/
%{_includedir}/libvirt-glib-1.0/
%{_includedir}/libvirt-gobject-1.0/
%{_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
%{_libdir}/pkgconfig/libvirt-glib-1.0.pc
%{_libdir}/pkgconfig/libvirt-gobject-1.0.pc
%{_datadir}/gtk-doc/html/Libvirt-gconfig/
%{_datadir}/gtk-doc/html/Libvirt-glib/
%{_datadir}/gtk-doc/html/Libvirt-gobject/
%dir %{_datadir}/vala/
%dir %{_datadir}/vala/vapi/
%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
%changelog