Blame SPECS/libgovirt.spec

546e1e
# -*- rpm-spec -*-
546e1e
546e1e
%global with_gir 0
546e1e
546e1e
# Default to skipping autoreconf.  Distros can change just this one line
546e1e
# (or provide a command-line override) if they backport any patches that
546e1e
# touch configure.ac or Makefile.am.
546e1e
546e1e
# Force running autoreconf because data center patches touch Makefile.am.
546e1e
# To disable autoreconf, change the value to 0.
546e1e
%{!?enable_autotools:%global enable_autotools 1}
546e1e
546e1e
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
546e1e
%global with_gir 1
546e1e
%endif
546e1e
546e1e
Summary: A GObject library for interacting with oVirt REST API
546e1e
Name: libgovirt
546e1e
Version: 0.3.4
546e1e
Release: 3%{?dist}%{?extra_release}
546e1e
License: LGPLv2+
546e1e
Group: Development/Libraries
546e1e
Source: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
546e1e
URL: http://people.freedesktop.org/~teuf/govirt/
546e1e
Patch01: 0001-proxy-Fix-persistent-session-with-oVirt-3.6.patch
546e1e
Patch02: 0002-Force-use-of-v3-REST-API.patch
546e1e
Patch03: 0003-New-storage-format-added-in-oVirt-4.1.patch
546e1e
Patch04: 0004-proxy-Hold-reference-to-cancellable-object.patch
546e1e
Patch05: 0005-proxy-Check-if-operation-is-cancelled-before-disconn.patch
546e1e
Patch06: 0006-storage-domain-Factor-out-property-value-setting-fro.patch
546e1e
Patch07: 0007-storage-domain-use-explicit-initialization-of-struct.patch
546e1e
Patch08: 0008-storage-domain-Move-out-ovirt_resource_parse_xml-to-.patch
546e1e
Patch09: 0009-utils-Remove-unused-function-ovirt_rest_xml_node_get.patch
546e1e
Patch10: 0010-utils-Rename-ovirt_rest_xml_node_get_content_va-to-o.patch
546e1e
Patch11: 0011-utils-Retrieve-node-attributes-in-ovirt_resource_par.patch
546e1e
Patch12: 0012-utils-Support-G_TYPE_STRING-in-_set_property_value_f.patch
546e1e
Patch13: 0013-utils-Support-G_TYPE_STRV-in-_set_property_value_fro.patch
546e1e
Patch14: 0014-Introduce-auxiliary-function-ovirt_sub_collection_ne.patch
546e1e
Patch15: 0015-New-API-functions-to-enable-search-queries-of-collec.patch
546e1e
Patch16: 0016-Introduce-ovirt_resource_new-functions.patch
546e1e
Patch17: 0017-Use-ovirt_resource_new-functions-instead-of-g_initab.patch
546e1e
Patch18: 0018-Move-resource-type-definitions-to-ovirt-types.h.patch
546e1e
Patch19: 0019-Initial-support-for-hosts.patch
546e1e
Patch20: 0020-Initial-support-for-clusters.patch
546e1e
Patch21: 0021-Initial-support-for-data-centers.patch
546e1e
Patch22: 0022-vm-Introduce-ovirt_vm_get_host.patch
546e1e
Patch23: 0023-vm-Introduce-ovirt_vm_get_cluster.patch
546e1e
Patch24: 0024-host-Introduce-ovirt_host_get_cluster.patch
546e1e
Patch25: 0025-cluster-Introduce-ovirt_cluster_get_data_center.patch
546e1e
Patch26: 0026-storage-domain-Retrieve-data-center-ids.patch
546e1e
Patch27: 0027-Add-missing-include-in-govirt.h.patch
546e1e
Patch28: 0028-resource-Fix-ovirt_resource_rest_call_sync-return-va.patch
546e1e
Patch29: 0029-resource-Fix-ovirt_resource_rest_call_sync-crash-on-.patch
546e1e
Patch30: 0030-resource-Fix-ovirt_resource_init_from_xml_real-preco.patch
546e1e
Patch31: 0031-resource-Update-xml-node-in-ovirt_resource_init_from.patch
546e1e
Patch32: 0032-utils-Drop-type-member-from-OvirtXmlElement-struct.patch
546e1e
Patch33: 0033-utils-Support-G_TYPE_UINT-in-_set_property_value_fro.patch
546e1e
Patch34: 0034-utils-Improve-log-message-when-subnode-is-not-found.patch
546e1e
Patch35: 0035-utils-Factor-out-basic-value-type-setting-from-_set_.patch
546e1e
Patch36: 0036-utils-Get-enum-default-value-from-GParamSpec.patch
546e1e
Patch37: 0037-vm-Set-vm-state-property-using-OvirtXmlElement-struc.patch
546e1e
Patch38: 0038-vm-Set-values-of-OvirtVmDisplay-using-OvirtXmlElemen.patch
546e1e
Patch39: 0039-vm-display-Move-XML-parsing-from-ovirt-vm-xml.c-file.patch
546e1e
Patch40: 0040-vm-Set-ticket-expiry-using-OvirtXmlElement-struct.patch
546e1e
Patch41: 0041-test-govirt-Add-display-node-to-vm-XMLs.patch
546e1e
Patch42: 0042-proxy-Set-detailed-error-message-for-async-call.patch
546e1e
Patch43: 0043-cdrom-Set-file-property-using-OvirtXmlElement-struct.patch
546e1e
Patch44: 0044-proxy-Don-t-try-to-unref-NULL-root-node.patch
546e1e
Patch45: 0045-utils-Check-for-valid-data-before-calling-rest_xml_p.patch
546e1e
Patch46: 0046-Update-tests-certificates.patch
546e1e
546e1e
%if 0%{?enable_autotools}
546e1e
BuildRequires: autoconf
546e1e
BuildRequires: automake
546e1e
BuildRequires: gettext-devel
546e1e
BuildRequires: libtool
546e1e
%endif
546e1e
546e1e
BuildRequires: pkgconfig(glib-2.0)
546e1e
BuildRequires: rest-devel >= 0.7.92
546e1e
# needed for make check to complete successfully
546e1e
BuildRequires: dconf
546e1e
546e1e
BuildRequires: intltool
546e1e
%if %{with_gir}
546e1e
BuildRequires: gobject-introspection-devel
546e1e
%endif
546e1e
546e1e
%description
546e1e
libgovirt is a library that allows applications to use oVirt REST API
546e1e
to list VMs managed by an oVirt instance, and to get the connection
546e1e
parameters needed to make a SPICE/VNC connection to them.
546e1e
546e1e
%package devel
546e1e
Summary: Libraries, includes, etc. to compile with the libgovirt library
546e1e
Group: Development/Libraries
546e1e
Requires: %{name}%{?_isa} = %{version}-%{release}
546e1e
Requires: pkgconfig
546e1e
Requires: glib2-devel
546e1e
546e1e
%description devel
546e1e
libgovirt is a library that allows applications to use oVirt REST API
546e1e
to list VMs managed by an oVirt instance, and to get the connection
546e1e
parameters needed to make a SPICE/VNC connection to them.
546e1e
546e1e
Libraries, includes, etc. to compile with the libgovirt library
546e1e
546e1e
%prep
546e1e
%autosetup -S git_am
546e1e
546e1e
%build
546e1e
%if 0%{?enable_autotools}
546e1e
autoreconf -if
546e1e
%endif
546e1e
546e1e
%if %{with_gir}
546e1e
%global gir_arg --enable-introspection=yes
546e1e
%else
546e1e
%global gir_arg --enable-introspection=no
546e1e
%endif
546e1e
546e1e
%configure %{gir_arg}
546e1e
%__make %{?_smp_mflags} V=1
546e1e
546e1e
%install
546e1e
%__make install DESTDIR=%{buildroot}
546e1e
rm -f %{buildroot}%{_libdir}/*.a
546e1e
rm -f %{buildroot}%{_libdir}/*.la
546e1e
%find_lang %{name} --with-gnome
546e1e
546e1e
%check
546e1e
make check
546e1e
546e1e
%post -p /sbin/ldconfig
546e1e
546e1e
%postun -p /sbin/ldconfig
546e1e
546e1e
%files -f %{name}.lang
546e1e
%doc AUTHORS COPYING MAINTAINERS README
546e1e
%{_libdir}/%{name}.so.2*
546e1e
%if %{with_gir}
546e1e
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
546e1e
%endif
546e1e
546e1e
%files devel
546e1e
%{_libdir}/%{name}.so
546e1e
%dir %{_includedir}/govirt-1.0/
546e1e
%dir %{_includedir}/govirt-1.0/govirt/
546e1e
%{_includedir}/govirt-1.0/govirt/*.h
546e1e
%{_libdir}/pkgconfig/govirt-1.0.pc
546e1e
%if %{with_gir}
546e1e
%{_datadir}/gir-1.0/GoVirt-1.0.gir
546e1e
%endif
546e1e
546e1e
%changelog
546e1e
* Tue Apr 09 2019 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.4-2
546e1e
- Parse XML nodes automatically
546e1e
  Related: rhbz#1427467
546e1e
- Set detailed error message for async call
546e1e
  Related: rhbz#1427467
546e1e
546e1e
* Fri Jun 08 2018 Christophe Fergeau <cfergeau@redhat.com> - 0.3.4-1
546e1e
- Rebase to latest 0.3.4 upstream release. Still quite a few patches as
546e1e
  there was no 0.3.5 release yet
546e1e
  Resolves: rhbz#1584266
546e1e
546e1e
* Mon Oct 02 2017 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.3-6
546e1e
- Add support for Hosts, Clusters and Data Centers
546e1e
  Resolves: rhbz#1428401
546e1e
546e1e
* Mon Mar 13 2017 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.3-5
546e1e
- New storage format added in oVirt 4.1
546e1e
  Resolves: rhbz#1346215
546e1e
- Check if operation was cancelled before disconnecting signal
546e1e
  Resolves: rhbz#1431275
546e1e
546e1e
* Fri Jul 01 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.3.3-4
546e1e
- Add upstream patch forcing use of the older v3 REST API as we don't support
546e1e
  yet the v4 API
546e1e
  Resolves: rhbz#1346215
546e1e
546e1e
* Tue Jun 14 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.3.3-3
546e1e
- Add upstream patch fixing unwanted authentication dialog for foreign menu
546e1e
  when using remote-viewer ovirt://
546e1e
  Resolves: rhbz#1346256
546e1e
546e1e
* Mon Jan 04 2016 Fabiano FidĂȘncio <fidencio@redhat.com> 0.3.3-2
546e1e
- Fix crash when VM has several ISO domains
546e1e
  Resolves: rhbz#1274356
546e1e
- Add OvirtProxy::sso-token support for oVirt 4.0
546e1e
  Resolves: rhbz#1324457
546e1e
546e1e
* Tue May 12 2015 Christophe Fergeau <cfergeau@redhat.com> 0.3.3-1
546e1e
- Rebase to 0.3.3
546e1e
  Resolves: rhbz#1214234
546e1e
546e1e
* Fri Oct 10 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-3
546e1e
- Add upstream patch allowing to remove CD images from an OvirtCdrom
546e1e
  Resolves: rhbz#1151171
546e1e
546e1e
* Tue Sep 30 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-2
546e1e
- Requires a new enough librest as we use symbols not available in older
546e1e
  librest
546e1e
  Related: rhbz#1116844
546e1e
546e1e
* Mon Sep 08 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-1
546e1e
- Rebase to libgovirt 0.3.1.
546e1e
  Resolves: rhbz#1116844
546e1e
546e1e
* Mon Jul  7 2014 Marc-Andre Lureau <marcandre.lureau@redhat.com> - 0.3.0-1
546e1e
- Rebase to libgovirt 0.3.0.
546e1e
  Resolves: rhbz#1116844
546e1e
546e1e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.0-3
546e1e
- Mass rebuild 2014-01-24
546e1e
546e1e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.0-2
546e1e
- Mass rebuild 2013-12-27
546e1e
546e1e
* Tue Jun 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.1.0-1
546e1e
- Update to upstream release 0.1.0
546e1e
546e1e
* Mon Mar 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-2
546e1e
- Removed definition of BuildRoot and cleanup of BuildRoot in %clean
546e1e
- Added missing arch to versioned Requires: %%{name} in the -devel package
546e1e
- Don't include empty NEWS and ChangeLog in built RPM
546e1e
546e1e
* Wed Feb 20 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-1
546e1e
- Initial import of libgovirt 0.0.3
546e1e
546e1e