|
|
0a59fa |
# -*- rpm-spec -*-
|
|
|
0a59fa |
|
|
|
0a59fa |
Summary: A library for managing OS information for virtualization
|
|
|
0a59fa |
Name: libosinfo
|
|
|
0a59fa |
Version: 1.1.0
|
|
|
0a59fa |
Release: 5%{?dist}%{?extra_release}
|
|
|
0a59fa |
License: LGPLv2+
|
|
|
0a59fa |
Group: Development/Libraries
|
|
|
0a59fa |
Source: https://releases.pagure.io/%{name}/%{name}-%{version}.tar.gz
|
|
|
0a59fa |
URL: https://libosinfo.org/
|
|
|
0a59fa |
|
|
|
0a59fa |
### Patches ###
|
|
|
0a59fa |
# https://bugzilla.redhat.com/show_bug.cgi?id=1712458
|
|
|
0a59fa |
Patch0001: 0001-Use-g_list_free_full-where-easily-possible.patch
|
|
|
0a59fa |
Patch0002: 0002-loader-Replace-strcmp-with-g_str_equal.patch
|
|
|
0a59fa |
Patch0003: 0003-loader-properly-load-the-treeinfo-attributes.patch
|
|
|
0a59fa |
Patch0004: 0004-db-improve-_guess_os_from_tree-checks.patch
|
|
|
0a59fa |
Patch0005: 0005-tree-cleanup-load_key_info.patch
|
|
|
0a59fa |
Patch0006: 0006-tree-cleanup-non-fatal-errors-in-load_key_info.patch
|
|
|
0a59fa |
Patch0007: 0007-tree-Also-check-fore-treeinfo-in-addition-to-.treein.patch
|
|
|
0a59fa |
Patch0008: 0008-tree-Avoid-use-of-memory-after-it-s-freed.patch
|
|
|
0a59fa |
Patch0009: 0009-tree-Cleanup-_create_from_location_async_helper.patch
|
|
|
0a59fa |
Patch0010: 0010-db-improve-_guess_os_from_media-checks.patch
|
|
|
0a59fa |
# https://bugzilla.redhat.com/show_bug.cgi?id=1727842
|
|
|
0a59fa |
Patch0011: 0011-tools-install-script-Add-config-file-f-option.patch
|
|
|
0a59fa |
Patch0012: 0012-tools-install-script-Deprecate-config-user-admin-pas.patch
|
|
|
0a59fa |
# https://bugzilla.redhat.com/show_bug.cgi?id=1740212
|
|
|
0a59fa |
Patch0013: 0013-loader-Don-t-expand-entities-when-parsing-XML.patch
|
|
|
0a59fa |
Patch0014: 0014-install-script-Don-t-expand-entities-when-parsing-XM.patch
|
|
|
0a59fa |
|
|
|
0a59fa |
BuildRequires: intltool
|
|
|
0a59fa |
BuildRequires: glib2-devel
|
|
|
0a59fa |
BuildRequires: check-devel
|
|
|
0a59fa |
BuildRequires: libxml2-devel >= 2.6.0
|
|
|
0a59fa |
BuildRequires: libxslt-devel >= 1.0.0
|
|
|
0a59fa |
BuildRequires: vala
|
|
|
0a59fa |
BuildRequires: vala-tools
|
|
|
0a59fa |
BuildRequires: libsoup-devel
|
|
|
0a59fa |
BuildRequires: /usr/bin/pod2man
|
|
|
0a59fa |
BuildRequires: hwdata
|
|
|
0a59fa |
BuildRequires: gobject-introspection-devel
|
|
|
0a59fa |
BuildRequires: osinfo-db
|
|
|
0a59fa |
Requires: hwdata
|
|
|
0a59fa |
Requires: osinfo-db
|
|
|
0a59fa |
Requires: osinfo-db-tools
|
|
|
0a59fa |
|
|
|
0a59fa |
%description
|
|
|
0a59fa |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
0a59fa |
determine the optimal device settings for a hypervisor/operating system
|
|
|
0a59fa |
combination.
|
|
|
0a59fa |
|
|
|
0a59fa |
%package devel
|
|
|
0a59fa |
Summary: Libraries, includes, etc. to compile with the libosinfo library
|
|
|
0a59fa |
Group: Development/Libraries
|
|
|
0a59fa |
Requires: %{name} = %{version}-%{release}
|
|
|
0a59fa |
Requires: pkgconfig
|
|
|
0a59fa |
Requires: glib2-devel
|
|
|
0a59fa |
|
|
|
0a59fa |
%description devel
|
|
|
0a59fa |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
0a59fa |
determine the optimal device settings for a hypervisor/operating system
|
|
|
0a59fa |
combination.
|
|
|
0a59fa |
|
|
|
0a59fa |
Libraries, includes, etc. to compile with the libosinfo library
|
|
|
0a59fa |
|
|
|
0a59fa |
%package vala
|
|
|
0a59fa |
Summary: Vala bindings
|
|
|
0a59fa |
Group: Development/Libraries
|
|
|
0a59fa |
Requires: %{name} = %{version}-%{release}
|
|
|
0a59fa |
|
|
|
0a59fa |
%description vala
|
|
|
0a59fa |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
0a59fa |
determine the optimal device settings for a hypervisor/operating system
|
|
|
0a59fa |
combination.
|
|
|
0a59fa |
|
|
|
0a59fa |
This package provides the Vala bindings for libosinfo library.
|
|
|
0a59fa |
|
|
|
0a59fa |
%prep
|
|
|
0a59fa |
%setup -q
|
|
|
0a59fa |
for p in %patches ; do
|
|
|
0a59fa |
%__patch -p1 -i $p
|
|
|
0a59fa |
done
|
|
|
0a59fa |
|
|
|
0a59fa |
%build
|
|
|
0a59fa |
%configure --enable-introspection=yes --enable-vala=yes
|
|
|
0a59fa |
%__make %{?_smp_mflags} V=1
|
|
|
0a59fa |
|
|
|
0a59fa |
chmod a-x examples/*.js examples/*.py
|
|
|
0a59fa |
|
|
|
0a59fa |
%install
|
|
|
0a59fa |
rm -fr %{buildroot}
|
|
|
0a59fa |
%__make install DESTDIR=%{buildroot}
|
|
|
0a59fa |
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
0a59fa |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
0a59fa |
|
|
|
0a59fa |
%find_lang %{name}
|
|
|
0a59fa |
|
|
|
0a59fa |
%clean
|
|
|
0a59fa |
rm -fr %{buildroot}
|
|
|
0a59fa |
|
|
|
0a59fa |
%post -p /sbin/ldconfig
|
|
|
0a59fa |
|
|
|
0a59fa |
%postun -p /sbin/ldconfig
|
|
|
0a59fa |
|
|
|
0a59fa |
%files -f %{name}.lang
|
|
|
0a59fa |
%defattr(-, root, root)
|
|
|
0a59fa |
%doc AUTHORS ChangeLog COPYING.LIB NEWS README
|
|
|
0a59fa |
%{_bindir}/osinfo-detect
|
|
|
0a59fa |
%{_bindir}/osinfo-query
|
|
|
0a59fa |
%{_bindir}/osinfo-install-script
|
|
|
0a59fa |
%{_mandir}/man1/osinfo-detect.1*
|
|
|
0a59fa |
%{_mandir}/man1/osinfo-query.1*
|
|
|
0a59fa |
%{_mandir}/man1/osinfo-install-script.1*
|
|
|
0a59fa |
%{_libdir}/%{name}-1.0.so.*
|
|
|
0a59fa |
%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
|
|
|
0a59fa |
|
|
|
0a59fa |
%files devel
|
|
|
0a59fa |
%defattr(-, root, root)
|
|
|
0a59fa |
%doc examples/demo.js
|
|
|
0a59fa |
%doc examples/demo.py
|
|
|
0a59fa |
%{_libdir}/%{name}-1.0.so
|
|
|
0a59fa |
%dir %{_includedir}/%{name}-1.0/
|
|
|
0a59fa |
%dir %{_includedir}/%{name}-1.0/osinfo/
|
|
|
0a59fa |
%{_includedir}/%{name}-1.0/osinfo/*.h
|
|
|
0a59fa |
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
0a59fa |
%{_datadir}/gir-1.0/Libosinfo-1.0.gir
|
|
|
0a59fa |
%{_datadir}/gtk-doc/html/Libosinfo
|
|
|
0a59fa |
|
|
|
0a59fa |
%files vala
|
|
|
0a59fa |
%defattr(-, root, root)
|
|
|
0a59fa |
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
|
|
|
0a59fa |
|
|
|
0a59fa |
%changelog
|
|
|
0a59fa |
* Tue Aug 13 2019 Fabiano Fidêncio <fidencio@redhat.com> - 1.1.0-5
|
|
|
0a59fa |
- Resolves: rhbz#1740212 - New defect found in libosinfo-1.1.0-4.el7
|
|
|
0a59fa |
|
|
|
0a59fa |
* Fri Aug 02 2019 Fabiano Fidêncio <fidencio@redhat.com> - 1.1.0-4
|
|
|
0a59fa |
- Resolves: rhbz#1727842 - CVE-2019-13313 libosinfo: osinfo-install-script
|
|
|
0a59fa |
option leaks password via command line argument
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu May 23 2019 Fabiano Fidêncio <fidencio@redhat.com> - 1.1.0-3
|
|
|
0a59fa |
- Resolves: rhbz#1712458 - [machines] The function of 'Auto-detect guest
|
|
|
0a59fa |
operating system' is not available on rhel 7.7
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Jun 06 2018 Richard Hughes <rhughes@redhat.com> 1.1.0-2
|
|
|
0a59fa |
- New upstream release 1.1.0
|
|
|
0a59fa |
- Resolves: #1584263
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Feb 23 2017 Matthias Clasen <mclasen@redhat.com> 1.0.0-1
|
|
|
0a59fa |
- Rebase to 1.0.0
|
|
|
0a59fa |
Resolves: rhbz#1387014
|
|
|
0a59fa |
|
|
|
0a59fa |
* Fri Jul 1 2016 Daniel P. Berrange <berrange@redhat.com> 0.3.1-1
|
|
|
0a59fa |
- New upstream release 0.3.1
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Fri Jan 8 2016 Zeeshan Ali <zeenix@redhat.com> 0.3.0-1
|
|
|
0a59fa |
- New upstream release 0.3.0
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.12-2
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu May 28 2015 Zeeshan Ali <zeenix@redhat.com> 0.2.12-1
|
|
|
0a59fa |
- New upstream release 0.2.12
|
|
|
0a59fa |
|
|
|
0a59fa |
* Mon Sep 22 2014 Cole Robinson <crobinso@redhat.com> - 0.2.11-2
|
|
|
0a59fa |
- os: Add Fedora 21
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Aug 26 2014 Christophe Fergeau <cfergeau@redhat.com> 0.2.11-1
|
|
|
0a59fa |
- New upstream release 0.2.11
|
|
|
0a59fa |
|
|
|
0a59fa |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.9-3
|
|
|
0a59fa |
- Rebuilt for gobject-introspection 1.41.4
|
|
|
0a59fa |
|
|
|
0a59fa |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-2
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Dec 18 2013 Debarshi Ray <rishi@fedoraproject.org> - 0.2.9-1
|
|
|
0a59fa |
- New upstream release 0.2.9
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Nov 28 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.8-1
|
|
|
0a59fa |
- New upstream release 0.2.8
|
|
|
0a59fa |
|
|
|
0a59fa |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue May 14 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-1
|
|
|
0a59fa |
- New upstream release 0.2.7
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Mar 21 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.6-1
|
|
|
0a59fa |
- New upstream release 0.2.6
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Mar 06 2013 Christophe Fergeau <cfergeau@redhat.com> - 0.2.5-2
|
|
|
0a59fa |
- BuildRequires /usr/bin/pod2man as this will automatically pick the right
|
|
|
0a59fa |
package rather than conditionally requiring a package that is only
|
|
|
0a59fa |
available in f19+
|
|
|
0a59fa |
- Do not Requires: udev when building libosinfo without its udev rule
|
|
|
0a59fa |
(which is done on f19+)
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Mar 05 2013 Christophe Fergeau <cfergeau@redhat.com> 0.2.5-1
|
|
|
0a59fa |
- New upstream release 0.2.5
|
|
|
0a59fa |
- Disable udev rule as it's no longer required with newer
|
|
|
0a59fa |
systemd/util-linux
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Feb 12 2013 Cole Robinson <crobinso@redhat.com> - 0.2.3-2
|
|
|
0a59fa |
- Fix osinfo-detect crash with non-bootable media (bz #901910)
|
|
|
0a59fa |
|
|
|
0a59fa |
* Mon Jan 14 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.3-1
|
|
|
0a59fa |
- New upstream release 0.2.3
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Dec 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.2.2-1
|
|
|
0a59fa |
- New upstream release 0.2.2
|
|
|
0a59fa |
|
|
|
0a59fa |
* Fri Oct 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.2.1-1
|
|
|
0a59fa |
- Fix and simplify udev rule.
|
|
|
0a59fa |
- Fedora:
|
|
|
0a59fa |
- Fix minimum RAM requirements for F16 and F17.
|
|
|
0a59fa |
- Add data on:
|
|
|
0a59fa |
- Fedora 18
|
|
|
0a59fa |
- GNOME 3.6
|
|
|
0a59fa |
- Ubuntu 12.10
|
|
|
0a59fa |
- Fixes to doc build.
|
|
|
0a59fa |
- Install script:
|
|
|
0a59fa |
- Add get_config_param method.
|
|
|
0a59fa |
- Differenciate between expected/output script names.
|
|
|
0a59fa |
- Add more utility functions.
|
|
|
0a59fa |
- Add 'installer-reboots' parameter to medias.
|
|
|
0a59fa |
- osinfo-detect does not die of DB loading errors anymore.
|
|
|
0a59fa |
- More type-specific entity value getters/setters.
|
|
|
0a59fa |
- Fixe and update RNG file.
|
|
|
0a59fa |
- Add 'subsystem' property/attribute to devices.
|
|
|
0a59fa |
|
|
|
0a59fa |
* Mon Sep 03 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.2.0-1
|
|
|
0a59fa |
- Update to 0.2.0 release.
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
|
|
|
0a59fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Jun 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.1.2-1
|
|
|
0a59fa |
- Update to 0.1.2 release.
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Apr 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.1.1-1
|
|
|
0a59fa |
- Update to 0.1.1 release.
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Mar 14 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-2
|
|
|
0a59fa |
- Remove obsolete perl based scripts (rhbz #803086)
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Feb 08 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.1.0-1
|
|
|
0a59fa |
- Update to 0.1.0 release
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Jan 17 2012 Zeeshan Ali <zeenix@redhat.com> - 0.0.5-1
|
|
|
0a59fa |
- Update to 0.0.5 release
|
|
|
0a59fa |
|
|
|
0a59fa |
* Tue Jan 3 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-2
|
|
|
0a59fa |
- Remove pointless gir conditionals
|
|
|
0a59fa |
|
|
|
0a59fa |
* Wed Dec 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-1
|
|
|
0a59fa |
- Update to 0.0.4 release
|
|
|
0a59fa |
|
|
|
0a59fa |
* Thu Nov 24 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
|
|
|
0a59fa |
- Initial package
|
|
|
0a59fa |
|