7cfb7a
# -*- rpm-spec -*-
7cfb7a
7cfb7a
%global with_gir 0
7cfb7a
7cfb7a
# Default to skipping autoreconf.  Distros can change just this one line
7cfb7a
# (or provide a command-line override) if they backport any patches that
7cfb7a
# touch configure.ac or Makefile.am.
7cfb7a
7cfb7a
# Force running autoreconf because data center patches touch Makefile.am.
7cfb7a
# To disable autoreconf, change the value to 0.
7cfb7a
%{!?enable_autotools:%global enable_autotools 1}
7cfb7a
7cfb7a
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
7cfb7a
%global with_gir 1
7cfb7a
%endif
7cfb7a
7cfb7a
Summary: A GObject library for interacting with oVirt REST API
7cfb7a
Name: libgovirt
7cfb7a
Version: 0.3.4
7cfb7a
Release: 8%{?dist}%{?extra_release}
7cfb7a
License: LGPLv2+
7cfb7a
Group: Development/Libraries
7cfb7a
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
7cfb7a
Source1: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz.sign
7cfb7a
Source2: cfergeau-29AC6C82.keyring
7cfb7a
URL: http://people.freedesktop.org/~teuf/govirt/
7cfb7a
Patch01: 0001-proxy-Fix-persistent-session-with-oVirt-3.6.patch
7cfb7a
Patch02: 0002-Force-use-of-v3-REST-API.patch
7cfb7a
Patch03: 0003-New-storage-format-added-in-oVirt-4.1.patch
7cfb7a
Patch04: 0004-proxy-Hold-reference-to-cancellable-object.patch
7cfb7a
Patch05: 0005-proxy-Check-if-operation-is-cancelled-before-disconn.patch
7cfb7a
Patch06: 0006-storage-domain-Factor-out-property-value-setting-fro.patch
7cfb7a
Patch07: 0007-storage-domain-use-explicit-initialization-of-struct.patch
7cfb7a
Patch08: 0008-storage-domain-Move-out-ovirt_resource_parse_xml-to-.patch
7cfb7a
Patch09: 0009-utils-Remove-unused-function-ovirt_rest_xml_node_get.patch
7cfb7a
Patch10: 0010-utils-Rename-ovirt_rest_xml_node_get_content_va-to-o.patch
7cfb7a
Patch11: 0011-utils-Retrieve-node-attributes-in-ovirt_resource_par.patch
7cfb7a
Patch12: 0012-utils-Support-G_TYPE_STRING-in-_set_property_value_f.patch
7cfb7a
Patch13: 0013-utils-Support-G_TYPE_STRV-in-_set_property_value_fro.patch
7cfb7a
Patch14: 0014-Introduce-auxiliary-function-ovirt_sub_collection_ne.patch
7cfb7a
Patch15: 0015-New-API-functions-to-enable-search-queries-of-collec.patch
7cfb7a
Patch16: 0016-Introduce-ovirt_resource_new-functions.patch
7cfb7a
Patch17: 0017-Use-ovirt_resource_new-functions-instead-of-g_initab.patch
7cfb7a
Patch18: 0018-Move-resource-type-definitions-to-ovirt-types.h.patch
7cfb7a
Patch19: 0019-Initial-support-for-hosts.patch
7cfb7a
Patch20: 0020-Initial-support-for-clusters.patch
7cfb7a
Patch21: 0021-Initial-support-for-data-centers.patch
7cfb7a
Patch22: 0022-vm-Introduce-ovirt_vm_get_host.patch
7cfb7a
Patch23: 0023-vm-Introduce-ovirt_vm_get_cluster.patch
7cfb7a
Patch24: 0024-host-Introduce-ovirt_host_get_cluster.patch
7cfb7a
Patch25: 0025-cluster-Introduce-ovirt_cluster_get_data_center.patch
7cfb7a
Patch26: 0026-storage-domain-Retrieve-data-center-ids.patch
7cfb7a
Patch27: 0027-Add-missing-include-in-govirt.h.patch
7cfb7a
Patch28: 0028-resource-Fix-ovirt_resource_rest_call_sync-return-va.patch
7cfb7a
Patch29: 0029-resource-Fix-ovirt_resource_rest_call_sync-crash-on-.patch
7cfb7a
Patch30: 0030-resource-Fix-ovirt_resource_init_from_xml_real-preco.patch
7cfb7a
Patch31: 0031-resource-Update-xml-node-in-ovirt_resource_init_from.patch
7cfb7a
Patch32: 0032-utils-Drop-type-member-from-OvirtXmlElement-struct.patch
7cfb7a
Pablo Greco 3177ed
Patch9999: 9999-fdb37fef96d4686b04c788cda6f74a13d6856eeb.patch
Pablo Greco 3177ed
7cfb7a
%if 0%{?enable_autotools}
7cfb7a
BuildRequires: autoconf
7cfb7a
BuildRequires: automake
7cfb7a
BuildRequires: gettext-devel
7cfb7a
BuildRequires: libtool
7cfb7a
%endif
7cfb7a
BuildRequires: git-core
7cfb7a
7cfb7a
BuildRequires: pkgconfig(glib-2.0)
7cfb7a
BuildRequires: intltool
7cfb7a
BuildRequires: rest-devel >= 0.7.92
7cfb7a
%if %{with_gir}
7cfb7a
BuildRequires: gobject-introspection-devel
7cfb7a
%endif
7cfb7a
#needed for make check
7cfb7a
BuildRequires: glib-networking
7cfb7a
BuildRequires: dconf
7cfb7a
#needed for GPG signature checek
7cfb7a
BuildRequires: gnupg2
7cfb7a
7cfb7a
%description
7cfb7a
libgovirt is a library that allows applications to use oVirt REST API
7cfb7a
to list VMs managed by an oVirt instance, and to get the connection
7cfb7a
parameters needed to make a SPICE/VNC connection to them.
7cfb7a
7cfb7a
%package devel
7cfb7a
Summary: Libraries, includes, etc. to compile with the libgovirt library
7cfb7a
Group: Development/Libraries
7cfb7a
Requires: %{name}%{?_isa} = %{version}-%{release}
7cfb7a
Requires: pkgconfig
7cfb7a
Requires: glib2-devel
7cfb7a
7cfb7a
%description devel
7cfb7a
libgovirt is a library that allows applications to use oVirt REST API
7cfb7a
to list VMs managed by an oVirt instance, and to get the connection
7cfb7a
parameters needed to make a SPICE/VNC connection to them.
7cfb7a
7cfb7a
Libraries, includes, etc. to compile with the libgovirt library
7cfb7a
7cfb7a
%prep
7cfb7a
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
7cfb7a
%autosetup -S git_am
7cfb7a
7cfb7a
%build
7cfb7a
%if 0%{?enable_autotools}
7cfb7a
autoreconf -if
7cfb7a
%endif
7cfb7a
7cfb7a
%if %{with_gir}
7cfb7a
%global gir_arg --enable-introspection=yes
7cfb7a
%else
7cfb7a
%global gir_arg --enable-introspection=no
7cfb7a
%endif
7cfb7a
7cfb7a
%configure %{gir_arg}
7cfb7a
%__make %{?_smp_mflags} V=1
7cfb7a
7cfb7a
%install
7cfb7a
%__make install DESTDIR=%{buildroot}
7cfb7a
rm -f %{buildroot}%{_libdir}/*.a
7cfb7a
rm -f %{buildroot}%{_libdir}/*.la
7cfb7a
%find_lang %{name} --with-gnome
7cfb7a
7cfb7a
%check
7cfb7a
make check
7cfb7a
7cfb7a
%ldconfig_scriptlets
7cfb7a
7cfb7a
%files -f %{name}.lang
7cfb7a
%doc AUTHORS COPYING MAINTAINERS README
7cfb7a
%{_libdir}/%{name}.so.2*
7cfb7a
%if %{with_gir}
7cfb7a
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
7cfb7a
%endif
7cfb7a
7cfb7a
%files devel
7cfb7a
%{_libdir}/%{name}.so
7cfb7a
%dir %{_includedir}/govirt-1.0/
7cfb7a
%dir %{_includedir}/govirt-1.0/govirt/
7cfb7a
%{_includedir}/govirt-1.0/govirt/*.h
7cfb7a
%{_libdir}/pkgconfig/govirt-1.0.pc
7cfb7a
%if %{with_gir}
7cfb7a
%{_datadir}/gir-1.0/GoVirt-1.0.gir
7cfb7a
%endif
7cfb7a
7cfb7a
%changelog
Pablo Greco 3177ed
* Fri May 24 2019 Pablo Greco <pgreco@centosproject.org> - 0.3.4-8
Pablo Greco 3177ed
- Fix FTBFS due to expired certs
Pablo Greco 3177ed
7cfb7a
* Mon Jun 11 2018 Christophe Fergeau <cfergeau@redhat.com> - 0.3.4-8
7cfb7a
- Sync with the rhel 7.6 package
7cfb7a
  Resolves: rhbz#1584506
7cfb7a
7cfb7a
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.4-7
7cfb7a
- Escape macros in %%changelog
7cfb7a
7cfb7a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-6
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7cfb7a
7cfb7a
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.4-5
7cfb7a
- Switch to %%ldconfig_scriptlets
7cfb7a
7cfb7a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-4
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7cfb7a
7cfb7a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-3
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7cfb7a
7cfb7a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7cfb7a
7cfb7a
* Wed Apr 13 2016 Christophe Fergeau <cfergeau@redhat.com> 0.3.4-1
7cfb7a
- Update to libgovirt 0.3.4
7cfb7a
7cfb7a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-3
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7cfb7a
7cfb7a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7cfb7a
7cfb7a
* Wed Apr 08 2015 Christophe Fergeau <cfergeau@redhat.com> 0.3.3-1
7cfb7a
- Update to upstream release 0.3.3
7cfb7a
7cfb7a
* Thu Oct 09 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.2-1
7cfb7a
- Update to upstream release 0.3.2
7cfb7a
7cfb7a
* Wed Sep 03 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-1
7cfb7a
- Update to upstream release 0.3.1
7cfb7a
7cfb7a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-7
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7cfb7a
7cfb7a
* Sat Aug 02 2014 Richard Jones <rjones@redhat.com> - 0.3.0-6
7cfb7a
- Force rebuild for aarch64.
7cfb7a
7cfb7a
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-5
7cfb7a
- Rebuilt for gobject-introspection 1.41.4
7cfb7a
7cfb7a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7cfb7a
7cfb7a
* Tue Nov 26 2013 Christophe Fergeau <cfergeau@redhat.com> 0.3.0-3
7cfb7a
- Actually apply Patch0 /o\
7cfb7a
7cfb7a
* Tue Nov 26 2013 Christophe Fergeau <cfergeau@redhat.com> 0.3.0-2
7cfb7a
- Add patch to fix a memory corruption issue when librest does not have the
7cfb7a
  RestProxy::ssl-ca-file property (which is currently the case in Fedora)
7cfb7a
7cfb7a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
7cfb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7cfb7a
7cfb7a
* Tue Jun 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.1.0-1
7cfb7a
- Update to upstream release 0.1.0
7cfb7a
7cfb7a
* Mon Mar 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-2
7cfb7a
- Removed definition of BuildRoot and cleanup of BuildRoot in %%clean
7cfb7a
- Added missing arch to versioned Requires: %%{name} in the -devel package
7cfb7a
- Don't include empty NEWS and ChangeLog in built RPM
7cfb7a
7cfb7a
* Wed Feb 20 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-1
7cfb7a
- Initial import of libgovirt 0.0.3
7cfb7a
7cfb7a