libvirt-glib/libvirt-glib.spec
James Fehlig f5f5474953 Accepting request 1131370 from GNOME:Next
- Update to version 5.0.0:
  + Fix compatiblity with libxml2 >= 2.12.0
  + Bump min libvirt version to 2.3.0
  + Bump min meson to 0.56.0
  + Require use of GCC >= 4.8 / CLang > 3.4 / XCode CLang > 5.1
  + Mark USB disks as removable by default
  + Add support for audio device backend config
  + Add support for DBus graphics backend config
  + Add support for controlling firmware feature flags
  + Improve compiler flag handling in meson
  + Extend library version script handling to FreeBSD
  + Fix pointer sign issue in capabilities config API
  + Fix compat with gnome.mkenums() in Meson 0.60.0
  + Avoid compiler warnings from gi-ir-scanner generated code by
    not setting glib version constraints
  + Be more robust about NULL GError parameters
  + Disable unimportant cast alignment compiler warnings
  + Use ‘pragma once’ in all header files
  + Updated translations.

OBS-URL: https://build.opensuse.org/request/show/1131370
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt-glib?expand=0&rev=61
2023-12-06 21:12:55 +00:00

185 lines
7.6 KiB
RPMSpec

#
# spec file for package libvirt-glib
#
# Copyright (c) 2023 SUSE LLC
# 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 https://bugs.opensuse.org/
#
Name: libvirt-glib
Version: 5.0.0
Release: 0
Summary: GLib and GObject mapping of libvirt
License: LGPL-2.1-or-later
Group: System/Libraries
URL: http://libvirt.org
Source0: http://libvirt.org/sources/glib/%{name}-%{version}.tar.xz
Source1: http://libvirt.org/sources/glib/%{name}-%{version}.tar.xz.asc
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: pkgconfig(glib-2.0) >= 2.38.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.10.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8
BuildRequires: pkgconfig(gthread-2.0) >= 2.36.0
BuildRequires: pkgconfig(libvirt) >= 2.3.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.0.0
%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
%autosetup -p1
%build
%meson \
-Dgit_werror=disabled
%meson_build
%install
%meson_install
%find_lang %{name}
%fdupes %{buildroot}/%{_datadir}/gtk-doc/
%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
%license COPYING
%doc README
%{_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
%{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
%files -n typelib-1_0-LibvirtGLib-1_0
%{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
%files -n typelib-1_0-LibvirtGObject-1_0
%{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
%files devel
%{_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.deps
%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
%{_datadir}/vala/vapi/libvirt-glib-1.0.deps
%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
%changelog