Blame SPECS/libgovirt.spec

2bd53e
# -*- rpm-spec -*-
2bd53e
2bd53e
%global with_gir 0
2bd53e
2bd53e
# Default to skipping autoreconf.  Distros can change just this one line
2bd53e
# (or provide a command-line override) if they backport any patches that
2bd53e
# touch configure.ac or Makefile.am.
2bd53e
2bd53e
# Force running autoreconf because data center patches touch Makefile.am.
2bd53e
# To disable autoreconf, change the value to 0.
2bd53e
%{!?enable_autotools:%global enable_autotools 1}
2bd53e
2bd53e
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
2bd53e
%global with_gir 1
2bd53e
%endif
2bd53e
2bd53e
Summary: A GObject library for interacting with oVirt REST API
2bd53e
Name: libgovirt
2bd53e
Version: 0.3.3
2bd53e
Release: 6%{?dist}%{?extra_release}
2bd53e
License: LGPLv2+
2bd53e
Group: Development/Libraries
2bd53e
Source: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
2bd53e
URL: http://people.freedesktop.org/~teuf/govirt/
2bd53e
Patch0001: 0001-collection-unref-the-resource-instead-of-the-resourc.patch
2bd53e
Patch0002: 0002-proxy-Document-OvirtProxy-properties.patch
2bd53e
Patch0003: 0003-proxy-Readd-additional-header-API.patch
2bd53e
Patch0004: 0004-proxy-Add-OvirtProxy-sso-token.patch
2bd53e
Patch0005: 0005-proxy-Remove-jsessionid-cookie-when-its-value-is-NUL.patch
2bd53e
Patch0006: 0006-proxy-Only-set-Prefer-persistent-auth-with-jsession-.patch
2bd53e
Patch0007: 0007-proxy-Fix-persistent-session-with-oVirt-3.6.patch
2bd53e
Patch0008: 0008-Force-use-of-v3-REST-API.patch
2bd53e
Patch0009: 0009-New-storage-format-added-in-oVirt-4.1.patch
2bd53e
Patch0010: 0010-proxy-Fix-bug-in-cancelled-disconnection-after-async.patch
2bd53e
Patch0011: 0011-proxy-Hold-reference-to-cancellable-object.patch
2bd53e
Patch0012: 0012-proxy-Check-if-operation-is-cancelled-before-disconn.patch
2bd53e
Patch0013: 0013-storage-domain-Factor-out-property-value-setting-fro.patch
2bd53e
Patch0014: 0014-storage-domain-use-explicit-initialization-of-struct.patch
2bd53e
Patch0015: 0015-storage-domain-Move-out-ovirt_resource_parse_xml-to-.patch
2bd53e
Patch0016: 0016-utils-Remove-unused-function-ovirt_rest_xml_node_get.patch
2bd53e
Patch0017: 0017-utils-Rename-ovirt_rest_xml_node_get_content_va-to-o.patch
2bd53e
Patch0018: 0018-utils-Retrieve-node-attributes-in-ovirt_resource_par.patch
2bd53e
Patch0019: 0019-utils-Support-G_TYPE_STRING-in-_set_property_value_f.patch
2bd53e
Patch0020: 0020-utils-Support-G_TYPE_STRV-in-_set_property_value_fro.patch
2bd53e
Patch0021: 0021-Introduce-auxiliary-function-ovirt_sub_collection_ne.patch
2bd53e
Patch0022: 0022-New-API-functions-to-enable-search-queries-of-collec.patch
2bd53e
Patch0023: 0023-Introduce-ovirt_resource_new-functions.patch
2bd53e
Patch0024: 0024-Use-ovirt_resource_new-functions-instead-of-g_initab.patch
2bd53e
Patch0025: 0025-Move-resource-type-definitions-to-ovirt-types.h.patch
2bd53e
Patch0026: 0026-Initial-support-for-hosts.patch
2bd53e
Patch0027: 0027-Initial-support-for-clusters.patch
2bd53e
Patch0028: 0028-Initial-support-for-data-centers.patch
2bd53e
Patch0029: 0029-vm-Introduce-ovirt_vm_get_host.patch
2bd53e
Patch0030: 0030-vm-Introduce-ovirt_vm_get_cluster.patch
2bd53e
Patch0031: 0031-host-Introduce-ovirt_host_get_cluster.patch
2bd53e
Patch0032: 0032-cluster-Introduce-ovirt_cluster_get_data_center.patch
2bd53e
Patch0033: 0033-storage-domain-Retrieve-data-center-ids.patch
2bd53e
Patch0034: 0034-Add-missing-include-in-govirt.h.patch
2bd53e
Patch0035: 0035-resource-Fix-ovirt_resource_rest_call_sync-return-va.patch
2bd53e
Patch0036: 0036-resource-Fix-ovirt_resource_rest_call_sync-crash-on-.patch
2bd53e
Patch0037: 0037-resource-Fix-ovirt_resource_init_from_xml_real-preco.patch
2bd53e
Patch0038: 0038-resource-Update-xml-node-in-ovirt_resource_init_from.patch
2bd53e
Patch0039: 0039-utils-Drop-type-member-from-OvirtXmlElement-struct.patch
2bd53e
2bd53e
%if 0%{?enable_autotools}
2bd53e
BuildRequires: autoconf
2bd53e
BuildRequires: automake
2bd53e
BuildRequires: gettext-devel
2bd53e
BuildRequires: libtool
2bd53e
%endif
2bd53e
2bd53e
BuildRequires: pkgconfig(glib-2.0)
2bd53e
BuildRequires: rest-devel >= 0.7.92
2bd53e
2bd53e
BuildRequires: intltool
2bd53e
%if %{with_gir}
2bd53e
BuildRequires: gobject-introspection-devel
2bd53e
%endif
2bd53e
2bd53e
%description
2bd53e
libgovirt is a library that allows applications to use oVirt REST API
2bd53e
to list VMs managed by an oVirt instance, and to get the connection
2bd53e
parameters needed to make a SPICE/VNC connection to them.
2bd53e
2bd53e
%package devel
2bd53e
Summary: Libraries, includes, etc. to compile with the libgovirt library
2bd53e
Group: Development/Libraries
2bd53e
Requires: %{name}%{?_isa} = %{version}-%{release}
2bd53e
Requires: pkgconfig
2bd53e
Requires: glib2-devel
2bd53e
2bd53e
%description devel
2bd53e
libgovirt is a library that allows applications to use oVirt REST API
2bd53e
to list VMs managed by an oVirt instance, and to get the connection
2bd53e
parameters needed to make a SPICE/VNC connection to them.
2bd53e
2bd53e
Libraries, includes, etc. to compile with the libgovirt library
2bd53e
2bd53e
%prep
2bd53e
%autosetup -S git_am
2bd53e
2bd53e
%build
2bd53e
%if 0%{?enable_autotools}
2bd53e
autoreconf -if
2bd53e
%endif
2bd53e
2bd53e
%if %{with_gir}
2bd53e
%global gir_arg --enable-introspection=yes
2bd53e
%else
2bd53e
%global gir_arg --enable-introspection=no
2bd53e
%endif
2bd53e
2bd53e
%configure %{gir_arg}
2bd53e
%__make %{?_smp_mflags} V=1
2bd53e
2bd53e
%install
2bd53e
%__make install DESTDIR=%{buildroot}
2bd53e
rm -f %{buildroot}%{_libdir}/*.a
2bd53e
rm -f %{buildroot}%{_libdir}/*.la
2bd53e
%find_lang %{name} --with-gnome
2bd53e
2bd53e
%check
2bd53e
make check
2bd53e
2bd53e
%post -p /sbin/ldconfig
2bd53e
2bd53e
%postun -p /sbin/ldconfig
2bd53e
2bd53e
%files -f %{name}.lang
2bd53e
%doc AUTHORS COPYING MAINTAINERS README
2bd53e
%{_libdir}/%{name}.so.2*
2bd53e
%if %{with_gir}
2bd53e
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
2bd53e
%endif
2bd53e
2bd53e
%files devel
2bd53e
%{_libdir}/%{name}.so
2bd53e
%dir %{_includedir}/govirt-1.0/
2bd53e
%dir %{_includedir}/govirt-1.0/govirt/
2bd53e
%{_includedir}/govirt-1.0/govirt/*.h
2bd53e
%{_libdir}/pkgconfig/govirt-1.0.pc
2bd53e
%if %{with_gir}
2bd53e
%{_datadir}/gir-1.0/GoVirt-1.0.gir
2bd53e
%endif
2bd53e
2bd53e
%changelog
2bd53e
* Mon Oct 02 2017 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.3-6
2bd53e
- Add support for Hosts, Clusters and Data Centers
2bd53e
  Resolves: rhbz#1428401
2bd53e
2bd53e
* Mon Mar 13 2017 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.3-5
2bd53e
- New storage format added in oVirt 4.1
2bd53e
  Resolves: rhbz#1346215
2bd53e
- Check if operation was cancelled before disconnecting signal
2bd53e
  Resolves: rhbz#1431275
2bd53e
2bd53e
* Fri Jul 01 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.3.3-4
2bd53e
- Add upstream patch forcing use of the older v3 REST API as we don't support
2bd53e
  yet the v4 API
2bd53e
  Resolves: rhbz#1346215
2bd53e
2bd53e
* Tue Jun 14 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.3.3-3
2bd53e
- Add upstream patch fixing unwanted authentication dialog for foreign menu
2bd53e
  when using remote-viewer ovirt://
2bd53e
  Resolves: rhbz#1346256
2bd53e
2bd53e
* Mon Jan 04 2016 Fabiano FidĂȘncio <fidencio@redhat.com> 0.3.3-2
2bd53e
- Fix crash when VM has several ISO domains
2bd53e
  Resolves: rhbz#1274356
2bd53e
- Add OvirtProxy::sso-token support for oVirt 4.0
2bd53e
  Resolves: rhbz#1324457
2bd53e
2bd53e
* Tue May 12 2015 Christophe Fergeau <cfergeau@redhat.com> 0.3.3-1
2bd53e
- Rebase to 0.3.3
2bd53e
  Resolves: rhbz#1214234
2bd53e
2bd53e
* Fri Oct 10 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-3
2bd53e
- Add upstream patch allowing to remove CD images from an OvirtCdrom
2bd53e
  Resolves: rhbz#1151171
2bd53e
2bd53e
* Tue Sep 30 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-2
2bd53e
- Requires a new enough librest as we use symbols not available in older
2bd53e
  librest
2bd53e
  Related: rhbz#1116844
2bd53e
2bd53e
* Mon Sep 08 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-1
2bd53e
- Rebase to libgovirt 0.3.1.
2bd53e
  Resolves: rhbz#1116844
2bd53e
2bd53e
* Mon Jul  7 2014 Marc-Andre Lureau <marcandre.lureau@redhat.com> - 0.3.0-1
2bd53e
- Rebase to libgovirt 0.3.0.
2bd53e
  Resolves: rhbz#1116844
2bd53e
2bd53e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.0-3
2bd53e
- Mass rebuild 2014-01-24
2bd53e
2bd53e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.0-2
2bd53e
- Mass rebuild 2013-12-27
2bd53e
2bd53e
* Tue Jun 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.1.0-1
2bd53e
- Update to upstream release 0.1.0
2bd53e
2bd53e
* Mon Mar 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-2
2bd53e
- Removed definition of BuildRoot and cleanup of BuildRoot in %clean
2bd53e
- Added missing arch to versioned Requires: %%{name} in the -devel package
2bd53e
- Don't include empty NEWS and ChangeLog in built RPM
2bd53e
2bd53e
* Wed Feb 20 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-1
2bd53e
- Initial import of libgovirt 0.0.3
2bd53e
2bd53e