|
|
fef13e |
# -*- rpm-spec -*-
|
|
|
fef13e |
|
|
|
fef13e |
# Plugin isn't ready for real world use yet - it needs
|
|
|
fef13e |
# a security audit at very least
|
|
|
fef13e |
%define with_plugin 0
|
|
|
fef13e |
|
|
|
fef13e |
%define with_gir 0
|
|
|
fef13e |
|
|
|
fef13e |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
fef13e |
%define with_gir 1
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
%define with_udev 1
|
|
|
fef13e |
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
|
|
fef13e |
%define with_udev 0
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
Summary: A library for managing OS information for virtualization
|
|
|
fef13e |
Name: libosinfo
|
|
|
fef13e |
Version: 0.2.11
|
|
|
fef13e |
Release: 7%{?dist}%{?extra_release}
|
|
|
fef13e |
License: LGPLv2+
|
|
|
fef13e |
Group: Development/Libraries
|
|
|
fef13e |
Source: https://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz
|
|
|
fef13e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
fef13e |
URL: http://libosinfo.org/
|
|
|
fef13e |
BuildRequires: intltool
|
|
|
fef13e |
BuildRequires: glib2-devel
|
|
|
fef13e |
BuildRequires: check-devel
|
|
|
fef13e |
BuildRequires: libxml2-devel >= 2.6.0
|
|
|
fef13e |
BuildRequires: libxslt-devel >= 1.0.0
|
|
|
fef13e |
BuildRequires: vala
|
|
|
fef13e |
BuildRequires: vala-tools
|
|
|
fef13e |
BuildRequires: libsoup-devel
|
|
|
fef13e |
BuildRequires: /usr/bin/pod2man
|
|
|
fef13e |
%if %{with_gir}
|
|
|
fef13e |
BuildRequires: gobject-introspection-devel
|
|
|
fef13e |
%endif
|
|
|
fef13e |
Requires: hwdata
|
|
|
fef13e |
%if %{with_udev}
|
|
|
fef13e |
Requires: udev
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
# https://bugzilla.redhat.com/show_bug.cgi?id=1032524
|
|
|
fef13e |
# Don't advertise unsigned drivers from unsecure locations
|
|
|
fef13e |
Patch0: rm-unsigned-drivers-from-unsecure-locations.patch
|
|
|
fef13e |
|
|
|
fef13e |
# https://bugzilla.redhat.com/show_bug.cgi?id=1168199
|
|
|
fef13e |
# virt-manager can not recognize rhel6.6
|
|
|
fef13e |
Patch1: add-rhel-5.9.11-and-rhel-6.6-info.patch
|
|
|
fef13e |
|
|
|
fef13e |
# https://bugzilla.redhat.com/show_bug.cgi?id=1169415
|
|
|
fef13e |
# F20 express installation does not work & F21 not recognised
|
|
|
fef13e |
Patch2: fedora-script-Don-t-specify-interface.patch
|
|
|
fef13e |
Patch3: fedora-Add-F21-info.patch
|
|
|
fef13e |
|
|
|
fef13e |
# https://bugzilla.redhat.com/show_bug.cgi?id=1172817
|
|
|
fef13e |
# Detect rhelsa as rhel7.0
|
|
|
fef13e |
Patch14: 0004-oses-Detect-RHEL-Server-for-AArch64-as-RHEL-7.0.patch
|
|
|
fef13e |
|
|
|
fef13e |
%description
|
|
|
fef13e |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
fef13e |
determine the optimal device settings for a hypervisor/operating system
|
|
|
fef13e |
combination.
|
|
|
fef13e |
|
|
|
fef13e |
%package devel
|
|
|
fef13e |
Summary: Libraries, includes, etc. to compile with the libosinfo library
|
|
|
fef13e |
Group: Development/Libraries
|
|
|
fef13e |
Requires: %{name} = %{version}-%{release}
|
|
|
fef13e |
Requires: pkgconfig
|
|
|
fef13e |
Requires: glib2-devel
|
|
|
fef13e |
|
|
|
fef13e |
%description devel
|
|
|
fef13e |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
fef13e |
determine the optimal device settings for a hypervisor/operating system
|
|
|
fef13e |
combination.
|
|
|
fef13e |
|
|
|
fef13e |
Libraries, includes, etc. to compile with the libosinfo library
|
|
|
fef13e |
|
|
|
fef13e |
%package vala
|
|
|
fef13e |
Summary: Vala bindings
|
|
|
fef13e |
Group: Development/Libraries
|
|
|
fef13e |
Requires: %{name} = %{version}-%{release}
|
|
|
fef13e |
|
|
|
fef13e |
%description vala
|
|
|
fef13e |
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
fef13e |
determine the optimal device settings for a hypervisor/operating system
|
|
|
fef13e |
combination.
|
|
|
fef13e |
|
|
|
fef13e |
This package provides the Vala bindings for libosinfo library.
|
|
|
fef13e |
|
|
|
fef13e |
%prep
|
|
|
fef13e |
%setup -q
|
|
|
fef13e |
%patch0 -p1 -b .rm-unsigned-drivers-from-unsecure-locations
|
|
|
fef13e |
%patch1 -p1 -b .add-rhel-5.9.11-and-rhel-6.6-info
|
|
|
fef13e |
%patch2 -p1 -b .fedora-script-Don-t-specify-interface
|
|
|
fef13e |
%patch3 -p1 -b .fedora-Add-F21-info
|
|
|
fef13e |
%patch14 -p1 -b .detect-rhelsa-as-rhel7
|
|
|
fef13e |
|
|
|
fef13e |
%build
|
|
|
fef13e |
%if %{with_gir}
|
|
|
fef13e |
%define gir_arg --enable-introspection=yes
|
|
|
fef13e |
%else
|
|
|
fef13e |
%define gir_arg --enable-introspection=no
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
%if %{with_udev}
|
|
|
fef13e |
%define udev_arg --enable-udev=yes
|
|
|
fef13e |
%else
|
|
|
fef13e |
%define udev_arg --enable-udev=no
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
%configure %{gir_arg} %{udev_arg} --enable-vala=yes --with-usb-ids-path=/usr/share/hwdata/usb.ids --with-pci-ids-path=/usr/share/hwdata/pci.ids
|
|
|
fef13e |
%__make %{?_smp_mflags} V=1
|
|
|
fef13e |
|
|
|
fef13e |
chmod a-x examples/*.js examples/*.py
|
|
|
fef13e |
|
|
|
fef13e |
%install
|
|
|
fef13e |
rm -fr %{buildroot}
|
|
|
fef13e |
%__make install DESTDIR=%{buildroot}
|
|
|
fef13e |
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
fef13e |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
fef13e |
|
|
|
fef13e |
%find_lang %{name}
|
|
|
fef13e |
|
|
|
fef13e |
%check
|
|
|
fef13e |
make check
|
|
|
fef13e |
|
|
|
fef13e |
%clean
|
|
|
fef13e |
rm -fr %{buildroot}
|
|
|
fef13e |
|
|
|
fef13e |
%post -p /sbin/ldconfig
|
|
|
fef13e |
|
|
|
fef13e |
%postun -p /sbin/ldconfig
|
|
|
fef13e |
|
|
|
fef13e |
%files -f %{name}.lang
|
|
|
fef13e |
%defattr(-, root, root)
|
|
|
fef13e |
%doc AUTHORS ChangeLog COPYING.LIB NEWS README
|
|
|
fef13e |
%{_bindir}/osinfo-detect
|
|
|
fef13e |
%{_bindir}/osinfo-db-validate
|
|
|
fef13e |
%{_bindir}/osinfo-query
|
|
|
fef13e |
%{_bindir}/osinfo-install-script
|
|
|
fef13e |
%dir %{_datadir}/libosinfo/
|
|
|
fef13e |
%dir %{_datadir}/libosinfo/db/
|
|
|
fef13e |
%dir %{_datadir}/libosinfo/schemas/
|
|
|
fef13e |
%{_datadir}/libosinfo/db/usb.ids
|
|
|
fef13e |
%{_datadir}/libosinfo/db/pci.ids
|
|
|
fef13e |
%{_datadir}/libosinfo/db/datamaps
|
|
|
fef13e |
%{_datadir}/libosinfo/db/devices
|
|
|
fef13e |
%{_datadir}/libosinfo/db/oses
|
|
|
fef13e |
%{_datadir}/libosinfo/db/hypervisors
|
|
|
fef13e |
%{_datadir}/libosinfo/db/install-scripts
|
|
|
fef13e |
%{_datadir}/libosinfo/schemas/libosinfo.rng
|
|
|
fef13e |
%{_mandir}/man1/osinfo-db-validate.1*
|
|
|
fef13e |
%{_mandir}/man1/osinfo-detect.1*
|
|
|
fef13e |
%{_mandir}/man1/osinfo-query.1*
|
|
|
fef13e |
%{_mandir}/man1/osinfo-install-script.1*
|
|
|
fef13e |
%{_libdir}/%{name}-1.0.so.*
|
|
|
fef13e |
%if %{with_udev}
|
|
|
fef13e |
/lib/udev/rules.d/95-osinfo.rules
|
|
|
fef13e |
%endif
|
|
|
fef13e |
%if %{with_gir}
|
|
|
fef13e |
%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
|
|
|
fef13e |
%endif
|
|
|
fef13e |
|
|
|
fef13e |
%files devel
|
|
|
fef13e |
%defattr(-, root, root)
|
|
|
fef13e |
%doc examples/demo.js
|
|
|
fef13e |
%doc examples/demo.py
|
|
|
fef13e |
%{_libdir}/%{name}-1.0.so
|
|
|
fef13e |
%dir %{_includedir}/%{name}-1.0/
|
|
|
fef13e |
%dir %{_includedir}/%{name}-1.0/osinfo/
|
|
|
fef13e |
%{_includedir}/%{name}-1.0/osinfo/*.h
|
|
|
fef13e |
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
fef13e |
%if %{with_gir}
|
|
|
fef13e |
%{_datadir}/gir-1.0/Libosinfo-1.0.gir
|
|
|
fef13e |
%endif
|
|
|
fef13e |
%{_datadir}/gtk-doc/html/Libosinfo
|
|
|
fef13e |
|
|
|
fef13e |
%files vala
|
|
|
fef13e |
%defattr(-, root, root)
|
|
|
fef13e |
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
|
|
|
fef13e |
|
|
|
fef13e |
%changelog
|
|
|
fef13e |
* Tue May 12 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.2.11-7
|
|
|
fef13e |
- Apply previous patch
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Feb 24 2015 Cole Robinson <crobinso@redhat.com> 0.2.11-6
|
|
|
fef13e |
- Detect rhelsa as rhel7.0 (#1172817)
|
|
|
fef13e |
|
|
|
fef13e |
* Sun Feb 22 2015 Cole Robinson <crobinso@redhat.com> 0.2.11-5
|
|
|
fef13e |
- Add rhelsa2.0 os entry (#1172817)
|
|
|
fef13e |
|
|
|
fef13e |
* Mon Jan 26 2015 Zeeshan Ali <zeenix@redhat.com> - 0.2.11-4
|
|
|
fef13e |
- Add/update F21 info (#1169415).
|
|
|
fef13e |
|
|
|
fef13e |
* Mon Jan 26 2015 Zeeshan Ali <zeenix@redhat.com> - 0.2.11-3
|
|
|
fef13e |
- Don't specify network interface in fedora script (#1169415).
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Jan 8 2015 Zeeshan Ali <zeenix@redhat.com> - 0.2.11-2
|
|
|
fef13e |
- Add rhel-5.9..11 and rhel-6.6 info (#1168199).
|
|
|
fef13e |
|
|
|
fef13e |
* Wed Sep 3 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.11-1
|
|
|
fef13e |
- Update to latest libosinfo release (#1128621).
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Feb 28 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-10
|
|
|
fef13e |
- Rebuild with -fstack-protector-strong (#1070773).
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Feb 28 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-9
|
|
|
fef13e |
- Remove unsigned drivers from unsecure locations (#1032524).
|
|
|
fef13e |
|
|
|
fef13e |
* Mon Feb 24 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-8
|
|
|
fef13e |
- Disable unattended installation scripts for Windows 8.1 (#1067431).
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Feb 18 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-7
|
|
|
fef13e |
- Support windows 8.1 (#1066042).
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.7-6
|
|
|
fef13e |
- Mass rebuild 2014-01-24
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Jan 7 2014 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-5
|
|
|
fef13e |
- fedora,win7: Improve & add data (#1047774).
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.7-4
|
|
|
fef13e |
- Mass rebuild 2013-12-27
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Dec 5 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-3
|
|
|
fef13e |
- rhel: Add info on 6.5 and 7.0 (#1015055).
|
|
|
fef13e |
- install-script,rhel: Fix for 'Server' & 7.0 (#1033007).
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Jul 19 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-2
|
|
|
fef13e |
- Don't install udev rule in RHEL7+ either (#983169).
|
|
|
fef13e |
|
|
|
fef13e |
* Tue May 14 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.7-1
|
|
|
fef13e |
- New upstream release 0.2.7
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Mar 21 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.6-1
|
|
|
fef13e |
- New upstream release 0.2.6
|
|
|
fef13e |
|
|
|
fef13e |
* Wed Mar 06 2013 Christophe Fergeau <cfergeau@redhat.com> - 0.2.5-2
|
|
|
fef13e |
- BuildRequires /usr/bin/pod2man as this will automatically pick the right
|
|
|
fef13e |
package rather than conditionally requiring a package that is only
|
|
|
fef13e |
available in f19+
|
|
|
fef13e |
- Do not Requires: udev when building libosinfo without its udev rule
|
|
|
fef13e |
(which is done on f19+)
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Mar 05 2013 Christophe Fergeau <cfergeau@redhat.com> 0.2.5-1
|
|
|
fef13e |
- New upstream release 0.2.5
|
|
|
fef13e |
- Disable udev rule as it's no longer required with newer
|
|
|
fef13e |
systemd/util-linux
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Feb 12 2013 Cole Robinson <crobinso@redhat.com> - 0.2.3-2
|
|
|
fef13e |
- Fix osinfo-detect crash with non-bootable media (bz #901910)
|
|
|
fef13e |
|
|
|
fef13e |
* Mon Jan 14 2013 Zeeshan Ali <zeenix@redhat.com> - 0.2.3-1
|
|
|
fef13e |
- New upstream release 0.2.3
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Dec 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.2.2-1
|
|
|
fef13e |
- New upstream release 0.2.2
|
|
|
fef13e |
|
|
|
fef13e |
* Fri Oct 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.2.1-1
|
|
|
fef13e |
- Fix and simplify udev rule.
|
|
|
fef13e |
- Fedora:
|
|
|
fef13e |
- Fix minimum RAM requirements for F16 and F17.
|
|
|
fef13e |
- Add data on:
|
|
|
fef13e |
- Fedora 18
|
|
|
fef13e |
- GNOME 3.6
|
|
|
fef13e |
- Ubuntu 12.10
|
|
|
fef13e |
- Fixes to doc build.
|
|
|
fef13e |
- Install script:
|
|
|
fef13e |
- Add get_config_param method.
|
|
|
fef13e |
- Differenciate between expected/output script names.
|
|
|
fef13e |
- Add more utility functions.
|
|
|
fef13e |
- Add 'installer-reboots' parameter to medias.
|
|
|
fef13e |
- osinfo-detect does not die of DB loading errors anymore.
|
|
|
fef13e |
- More type-specific entity value getters/setters.
|
|
|
fef13e |
- Fixe and update RNG file.
|
|
|
fef13e |
- Add 'subsystem' property/attribute to devices.
|
|
|
fef13e |
|
|
|
fef13e |
* Mon Sep 03 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.2.0-1
|
|
|
fef13e |
- Update to 0.2.0 release.
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
|
|
|
fef13e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Jun 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.1.2-1
|
|
|
fef13e |
- Update to 0.1.2 release.
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Apr 12 2012 Zeeshan Ali <zeenix@redhat.com> - 0.1.1-1
|
|
|
fef13e |
- Update to 0.1.1 release.
|
|
|
fef13e |
|
|
|
fef13e |
* Wed Mar 14 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-2
|
|
|
fef13e |
- Remove obsolete perl based scripts (rhbz #803086)
|
|
|
fef13e |
|
|
|
fef13e |
* Wed Feb 08 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.1.0-1
|
|
|
fef13e |
- Update to 0.1.0 release
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Jan 17 2012 Zeeshan Ali <zeenix@redhat.com> - 0.0.5-1
|
|
|
fef13e |
- Update to 0.0.5 release
|
|
|
fef13e |
|
|
|
fef13e |
* Tue Jan 3 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-2
|
|
|
fef13e |
- Remove pointless gir conditionals
|
|
|
fef13e |
|
|
|
fef13e |
* Wed Dec 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-1
|
|
|
fef13e |
- Update to 0.0.4 release
|
|
|
fef13e |
|
|
|
fef13e |
* Thu Nov 24 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
|
|
|
fef13e |
- Initial package
|
|
|
fef13e |
|