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
%define with_udev 1
3d815f
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
3d815f
%define with_udev 0
3d815f
%endif
3d815f
3d815f
Summary: A library for managing OS information for virtualization
3d815f
Name: libosinfo
3d815f
Version: 0.2.7
3d815f
Release: 2%{?dist}%{?extra_release}
3d815f
License: LGPLv2+
3d815f
Group: Development/Libraries
3d815f
Source: https://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz
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
%if %{with_udev}
3d815f
Requires: udev
3d815f
%endif
3d815f
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
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
%if %{with_udev}
3d815f
%define udev_arg --enable-udev=yes
3d815f
%else
3d815f
%define udev_arg --enable-udev=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/
3d815f
%{_datadir}/libosinfo/db/usb.ids
3d815f
%{_datadir}/libosinfo/db/pci.ids
3d815f
%{_datadir}/libosinfo/db/datamaps
3d815f
%{_datadir}/libosinfo/db/devices
3d815f
%{_datadir}/libosinfo/db/oses
3d815f
%{_datadir}/libosinfo/db/hypervisors
3d815f
%{_datadir}/libosinfo/db/install-scripts
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_udev}
3d815f
/lib/udev/rules.d/95-osinfo.rules
3d815f
%endif
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
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