Blame SPECS/libosinfo.spec

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