2011-11-24 22:21:12 +01:00
|
|
|
#
|
2012-01-31 11:38:16 +01:00
|
|
|
# spec file for package libosinfo
|
2011-11-24 22:21:12 +01:00
|
|
|
#
|
2024-01-16 17:10:07 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-11-24 22:21:12 +01:00
|
|
|
# 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.
|
|
|
|
|
2020-06-01 21:15:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-11-24 22:21:12 +01:00
|
|
|
#
|
|
|
|
|
2012-01-31 11:38:16 +01:00
|
|
|
|
2013-01-15 22:25:52 +01:00
|
|
|
%define with_lang 1
|
2012-12-11 13:50:45 +01:00
|
|
|
|
2011-11-24 22:21:12 +01:00
|
|
|
Name: libosinfo
|
2023-11-13 22:37:42 +01:00
|
|
|
Version: 1.11.0
|
2012-01-31 11:38:16 +01:00
|
|
|
Release: 0
|
2019-02-05 16:23:36 +01:00
|
|
|
Summary: Operating system and hypervisor information management library
|
2022-03-01 19:09:31 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2019-02-05 03:02:54 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-09-12 17:12:06 +02:00
|
|
|
URL: https://releases.pagure.org/libosinfo
|
|
|
|
Source0: %{url}/%{name}-%{version}.tar.xz
|
2024-05-27 10:23:21 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- libxml 2.12 compatibility
|
|
|
|
Patch0: 0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch
|
2019-12-02 19:43:25 +01:00
|
|
|
BuildRequires: gtk-doc
|
2019-12-27 11:04:25 +01:00
|
|
|
BuildRequires: hwdata
|
2019-03-01 21:06:12 +01:00
|
|
|
BuildRequires: libcurl-devel
|
2019-12-02 19:43:25 +01:00
|
|
|
BuildRequires: meson
|
2011-11-24 22:21:12 +01:00
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(check)
|
2017-01-23 22:15:00 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2011-11-24 22:21:12 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2024-03-04 22:49:28 +01:00
|
|
|
%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150600
|
2019-07-27 04:16:47 +02:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
2024-03-04 22:49:28 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(libsoup-3.0)
|
2022-09-12 17:12:06 +02:00
|
|
|
%endif
|
2011-11-24 22:21:12 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2012-09-04 15:14:09 +02:00
|
|
|
BuildRequires: pkgconfig(libxslt) >= 1.0.0
|
2017-01-23 22:15:00 +01:00
|
|
|
Requires: osinfo-db
|
2011-11-24 22:21:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-01-23 22:15:00 +01:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%package -n libosinfo-1_0-0
|
2019-02-05 16:23:36 +01:00
|
|
|
Summary: Operating system and hypervisor information management library
|
2011-11-24 22:21:12 +01:00
|
|
|
Group: System/Libraries
|
2012-02-02 21:23:41 +01:00
|
|
|
Requires: %{name} >= %{version}
|
2019-12-27 11:04:25 +01:00
|
|
|
# for usb.ids and pci.ids
|
|
|
|
Requires: hwdata
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%description -n libosinfo-1_0-0
|
2017-01-23 22:15:00 +01:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2011-11-24 22:21:12 +01:00
|
|
|
|
2012-01-31 11:38:16 +01:00
|
|
|
%package -n typelib-1_0-Libosinfo-1_0
|
2019-02-05 03:02:54 +01:00
|
|
|
Summary: Typelib files for libosinfo
|
2012-01-31 11:38:16 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Libosinfo-1_0
|
2017-01-23 22:15:00 +01:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2012-01-31 11:38:16 +01:00
|
|
|
|
2011-11-24 22:21:12 +01:00
|
|
|
%package devel
|
2019-02-05 03:02:54 +01:00
|
|
|
Summary: Header files for libosinfo, an OS/hypervisor information library
|
2011-11-24 22:21:12 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libosinfo-1_0-0 = %{version}
|
2012-01-31 11:38:16 +01:00
|
|
|
Requires: typelib-1_0-Libosinfo-1_0 = %{version}
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%description devel
|
2017-01-23 22:15:00 +01:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
|
|
|
|
2019-02-05 03:02:54 +01:00
|
|
|
This package provides includes to compile with the libosinfo library,
|
|
|
|
as well as Vala bindings for the libosinfo library.
|
2011-11-24 22:21:12 +01:00
|
|
|
|
2012-12-11 13:50:45 +01:00
|
|
|
%if %{with_lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
2022-03-01 19:09:31 +01:00
|
|
|
|
2011-11-24 22:21:12 +01:00
|
|
|
%prep
|
2022-09-12 17:12:06 +02:00
|
|
|
%autosetup -p1
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%build
|
2019-12-02 19:43:25 +01:00
|
|
|
%meson \
|
|
|
|
-Denable-gtk-doc=true \
|
|
|
|
-Denable-tests=true \
|
|
|
|
-Denable-introspection=enabled \
|
|
|
|
-Denable-vala=enabled
|
2020-08-18 14:40:21 +02:00
|
|
|
%meson_build
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%install
|
2019-12-02 19:43:25 +01:00
|
|
|
%meson_install
|
2011-11-24 22:21:12 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-12-11 13:50:45 +01:00
|
|
|
%if %{with_lang}
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%endif
|
2011-11-24 22:21:12 +01:00
|
|
|
|
2022-09-12 17:12:06 +02:00
|
|
|
%ldconfig_scriptlets -n libosinfo-1_0-0
|
2012-01-31 11:38:16 +01:00
|
|
|
|
2011-11-24 22:21:12 +01:00
|
|
|
%files
|
2022-09-12 17:12:06 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README
|
2011-11-24 22:21:12 +01:00
|
|
|
%{_bindir}/osinfo-detect
|
2012-09-04 15:14:09 +02:00
|
|
|
%{_bindir}/osinfo-install-script
|
2012-04-13 16:43:34 +02:00
|
|
|
%{_bindir}/osinfo-query
|
|
|
|
%{_mandir}/man1/osinfo-detect.1%{?ext_man}
|
2012-09-04 15:14:09 +02:00
|
|
|
%{_mandir}/man1/osinfo-install-script.1%{?ext_man}
|
2012-04-13 16:43:34 +02:00
|
|
|
%{_mandir}/man1/osinfo-query.1%{?ext_man}
|
2011-11-24 22:21:12 +01:00
|
|
|
|
|
|
|
%files -n libosinfo-1_0-0
|
|
|
|
%{_libdir}/libosinfo-1.0.so.*
|
2012-01-31 11:38:16 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-Libosinfo-1_0
|
2011-11-24 22:21:12 +01:00
|
|
|
%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
|
|
|
|
|
|
|
|
%files devel
|
2024-01-16 17:10:07 +01:00
|
|
|
%{_datadir}/gtk-doc/
|
2011-11-24 22:21:12 +01:00
|
|
|
%{_includedir}/%{name}-1.0
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
%{_libdir}/libosinfo-1.0.so
|
|
|
|
%{_datadir}/gir-1.0/Libosinfo-1.0.gir
|
2019-12-02 19:43:25 +01:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/libosinfo-1.0.deps
|
2011-11-24 22:21:12 +01:00
|
|
|
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
|
|
|
|
|
2012-12-11 13:50:45 +01:00
|
|
|
%if %{with_lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
2011-11-24 22:21:12 +01:00
|
|
|
%changelog
|