add-casp-support.patch - bsc#1013983 - incomplete capabilities list of SLE and openSUSE distributions in libosinfo 99f7e666-fix-opensuse-derives-from-information.patch 470b7652-add-opensuse-device-information.patch 3c621fd8-add-opensuse-date-information.patch e77abec7-add-opensuse-resource-information.patch 67c74e5f-add-opensuse-leap-42.2-support.patch f0d44d88-add-missing-sle10-distros.patch 9a35cea7-fix-sle-derives-from-information.patch 50091807-add-sle-device-information.patch 9dec2be8-add-sle-date-information.patch 1a7ce161-add-sle-resource-information.patch 99ae3d72-add-sle12sp2-support.patch - Dropped or renamed Fix_derives-from_and_add_tablet_item.patch add-opensuse-leap-42.2-support.patch add-sle12sp2-support.patch add-sle12sp2-support-for-arch.patch add-missing-sle10-distros.patch - Update to database version 20161026 osinfo-db-20161026.tar.xz - bsc#1012005 - [openqa virtualization] using the wrong bootloader tool to boot the sles-12-sp3 pv kernel on xen platform add-sle12sp3-support.patch add-opensuse-leap-42.3-support.patch OBS-URL: https://build.opensuse.org/package/show/hardware/libosinfo?expand=0&rev=51
156 lines
4.6 KiB
RPMSpec
156 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package libosinfo
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%define with_lang 1
|
|
|
|
Name: libosinfo
|
|
Version: 1.0.0
|
|
Release: 0
|
|
Summary: Manage information about operating systems and hypervisors
|
|
License: LGPL-2.1+ and GPL-2.0+
|
|
Group: System/Libraries
|
|
Url: http://libosinfo.org/
|
|
Source0: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.gz
|
|
Source1: ids.tar.bz2
|
|
BuildRequires: intltool
|
|
BuildRequires: vala
|
|
BuildRequires: pkgconfig(check)
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
|
BuildRequires: pkgconfig(libsoup-gnome-2.4)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(libxslt) >= 1.0.0
|
|
Requires: osinfo-db
|
|
%if %{with_lang}
|
|
Recommends: %{name}-lang
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
combination.
|
|
|
|
%package -n libosinfo-1_0-0
|
|
Summary: Manage information about operating systems and hypervisors
|
|
Group: System/Libraries
|
|
Requires: %{name} >= %{version}
|
|
|
|
%description -n libosinfo-1_0-0
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
combination.
|
|
|
|
%package -n typelib-1_0-Libosinfo-1_0
|
|
Summary: Manage information about operating systems and hypervisors
|
|
Group: System/Libraries
|
|
|
|
%description -n typelib-1_0-Libosinfo-1_0
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
combination.
|
|
|
|
%package devel
|
|
Summary: Manage information about operating systems and hypervisors - Development Files
|
|
Group: Development/Languages/C and C++
|
|
Requires: libosinfo-1_0-0 = %{version}
|
|
Requires: typelib-1_0-Libosinfo-1_0 = %{version}
|
|
|
|
%description devel
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
combination.
|
|
|
|
Libraries, includes, etc. to compile with the libosinfo library
|
|
|
|
%package vala
|
|
Summary: Vala bindings
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description vala
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
combination.
|
|
|
|
This package provides the Vala bindings for libosinfo library.
|
|
|
|
%if %{with_lang}
|
|
%lang_package
|
|
%endif
|
|
%prep
|
|
%setup -q -a 1
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static --enable-vala=yes
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%if %{with_lang}
|
|
%find_lang %{name} %{?no_lang_C}
|
|
%endif
|
|
|
|
%post -n libosinfo-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libosinfo-1_0-0 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog README COPYING
|
|
%{_bindir}/osinfo-detect
|
|
%{_bindir}/osinfo-install-script
|
|
%{_bindir}/osinfo-query
|
|
%{_datadir}/%{name}/
|
|
%{_mandir}/man1/osinfo-detect.1%{?ext_man}
|
|
%{_mandir}/man1/osinfo-install-script.1%{?ext_man}
|
|
%{_mandir}/man1/osinfo-query.1%{?ext_man}
|
|
|
|
%files -n libosinfo-1_0-0
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libosinfo-1.0.so.*
|
|
|
|
%files -n typelib-1_0-Libosinfo-1_0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_datadir}/gtk-doc/html/Libosinfo/
|
|
%{_includedir}/%{name}-1.0
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
%{_libdir}/libosinfo-1.0.so
|
|
%{_datadir}/gir-1.0/Libosinfo-1.0.gir
|
|
|
|
%files vala
|
|
%defattr(-, root, root)
|
|
%dir %{_datadir}/vala/
|
|
%dir %{_datadir}/vala/vapi/
|
|
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
|
|
|
|
%if %{with_lang}
|
|
%files lang -f %{name}.lang
|
|
%endif
|
|
|
|
%changelog
|