|
|
40462c |
# -*- rpm-spec -*-
|
|
|
40462c |
|
|
|
40462c |
%global with_gir 0
|
|
|
40462c |
|
|
|
40462c |
# Default to skipping autoreconf. Distros can change just this one line
|
|
|
40462c |
# (or provide a command-line override) if they backport any patches that
|
|
|
40462c |
# touch configure.ac or Makefile.am.
|
|
|
40462c |
|
|
|
40462c |
# Force running autoreconf because data center patches touch Makefile.am.
|
|
|
40462c |
# To disable autoreconf, change the value to 0.
|
|
|
40462c |
%{!?enable_autotools:%global enable_autotools 1}
|
|
|
40462c |
|
|
|
40462c |
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
|
40462c |
%global with_gir 1
|
|
|
40462c |
%endif
|
|
|
40462c |
|
|
|
40462c |
Summary: A GObject library for interacting with oVirt REST API
|
|
|
40462c |
Name: libgovirt
|
|
|
40462c |
Version: 0.3.7
|
|
|
f51e03 |
Release: 4%{?dist}%{?extra_release}
|
|
|
40462c |
License: LGPLv2+
|
|
|
40462c |
Group: Development/Libraries
|
|
|
40462c |
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
|
|
|
40462c |
Source1: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz.sig
|
|
|
40462c |
Source2: etrunko-57E1C130.keyring
|
|
|
40462c |
URL: https://gitlab.gnome.org/GNOME/libgovirt
|
|
|
40462c |
|
|
|
68850c |
Patch0001: 0001-Initial-support-for-Disks.patch
|
|
|
68850c |
Patch0002: 0002-ovirt-storage-domain-Introduce-ovirt_storage_domain_.patch
|
|
|
68850c |
Patch0003: 0003-ovirt-disk-Fix-content-type-property-name.patch
|
|
|
f51e03 |
Patch0004: 0004-proxy-Fix-error-handling.patch
|
|
|
68850c |
|
|
|
40462c |
%if 0%{?enable_autotools}
|
|
|
40462c |
BuildRequires: autoconf
|
|
|
40462c |
BuildRequires: automake
|
|
|
40462c |
BuildRequires: gettext-devel
|
|
|
40462c |
BuildRequires: libtool
|
|
|
40462c |
%endif
|
|
|
40462c |
BuildRequires: git-core
|
|
|
40462c |
|
|
|
40462c |
BuildRequires: pkgconfig(glib-2.0)
|
|
|
40462c |
BuildRequires: intltool
|
|
|
40462c |
BuildRequires: rest-devel >= 0.7.92
|
|
|
40462c |
%if %{with_gir}
|
|
|
40462c |
BuildRequires: gobject-introspection-devel
|
|
|
40462c |
%endif
|
|
|
40462c |
#needed for make check
|
|
|
40462c |
BuildRequires: glib-networking
|
|
|
40462c |
BuildRequires: dconf
|
|
|
40462c |
#needed for GPG signature checek
|
|
|
40462c |
BuildRequires: gnupg2
|
|
|
40462c |
|
|
|
40462c |
%description
|
|
|
40462c |
libgovirt is a library that allows applications to use oVirt REST API
|
|
|
40462c |
to list VMs managed by an oVirt instance, and to get the connection
|
|
|
40462c |
parameters needed to make a SPICE/VNC connection to them.
|
|
|
40462c |
|
|
|
40462c |
%package devel
|
|
|
40462c |
Summary: Libraries, includes, etc. to compile with the libgovirt library
|
|
|
40462c |
Group: Development/Libraries
|
|
|
40462c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
40462c |
Requires: pkgconfig
|
|
|
40462c |
Requires: glib2-devel
|
|
|
40462c |
|
|
|
40462c |
%description devel
|
|
|
40462c |
libgovirt is a library that allows applications to use oVirt REST API
|
|
|
40462c |
to list VMs managed by an oVirt instance, and to get the connection
|
|
|
40462c |
parameters needed to make a SPICE/VNC connection to them.
|
|
|
40462c |
|
|
|
40462c |
Libraries, includes, etc. to compile with the libgovirt library
|
|
|
40462c |
|
|
|
40462c |
%prep
|
|
|
40462c |
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
40462c |
%autosetup -S git_am
|
|
|
40462c |
|
|
|
40462c |
%build
|
|
|
40462c |
%if 0%{?enable_autotools}
|
|
|
40462c |
autoreconf -if
|
|
|
40462c |
%endif
|
|
|
40462c |
|
|
|
40462c |
%if %{with_gir}
|
|
|
40462c |
%global gir_arg --enable-introspection=yes
|
|
|
40462c |
%else
|
|
|
40462c |
%global gir_arg --enable-introspection=no
|
|
|
40462c |
%endif
|
|
|
40462c |
|
|
|
40462c |
%configure %{gir_arg}
|
|
|
40462c |
%__make %{?_smp_mflags} V=1
|
|
|
40462c |
|
|
|
40462c |
%install
|
|
|
40462c |
%__make install DESTDIR=%{buildroot}
|
|
|
40462c |
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
40462c |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
40462c |
%find_lang %{name} --with-gnome
|
|
|
40462c |
|
|
|
40462c |
%check
|
|
|
40462c |
make check
|
|
|
40462c |
|
|
|
40462c |
%ldconfig_scriptlets
|
|
|
40462c |
|
|
|
40462c |
%files -f %{name}.lang
|
|
|
40462c |
%doc AUTHORS COPYING MAINTAINERS README
|
|
|
40462c |
%{_libdir}/%{name}.so.2*
|
|
|
40462c |
%if %{with_gir}
|
|
|
40462c |
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
|
|
|
40462c |
%endif
|
|
|
40462c |
|
|
|
40462c |
%files devel
|
|
|
40462c |
%{_libdir}/%{name}.so
|
|
|
40462c |
%dir %{_includedir}/govirt-1.0/
|
|
|
40462c |
%dir %{_includedir}/govirt-1.0/govirt/
|
|
|
40462c |
%{_includedir}/govirt-1.0/govirt/*.h
|
|
|
40462c |
%{_libdir}/pkgconfig/govirt-1.0.pc
|
|
|
40462c |
%if %{with_gir}
|
|
|
40462c |
%{_datadir}/gir-1.0/GoVirt-1.0.gir
|
|
|
40462c |
%endif
|
|
|
40462c |
|
|
|
40462c |
%changelog
|
|
|
f51e03 |
* Tue Dec 22 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.7-4
|
|
|
f51e03 |
- Fix error handling in ovirt-proxy.c
|
|
|
f51e03 |
Resolves: rhbz#1910033
|
|
|
f51e03 |
|
|
|
68850c |
* Tue Jun 16 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.7-3
|
|
|
68850c |
- Fix content-type property name
|
|
|
68850c |
Resolves: rhbz#1847223
|
|
|
68850c |
|
|
|
68850c |
* Tue Jun 16 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.7-2
|
|
|
68850c |
- Add support for storage domains 'disks' query
|
|
|
68850c |
Resolves: rhbz#1847223
|
|
|
68850c |
|
|
|
40462c |
* Fri May 08 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.7-1
|
|
|
40462c |
- Rebase to latest upstream version
|
|
|
40462c |
Resolves: rhbz#1801226
|
|
|
40462c |
|
|
|
40462c |
* Mon Mar 16 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.4-11
|
|
|
40462c |
- Bumped version and rebuild to trigger gating for 8.2.0.z properly
|
|
|
40462c |
Resolves: rhbz#1813962
|
|
|
40462c |
|
|
|
40462c |
* Mon Mar 16 2020 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.4-10
|
|
|
40462c |
- Update to RHV REST API version 4
|
|
|
40462c |
Resolves: rhbz#1813962
|
|
|
40462c |
|
|
|
40462c |
* Mon Aug 2 2019 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.3.4-9
|
|
|
40462c |
- Sync with the rhel 7.7 package
|
|
|
40462c |
Related: rhbz#1717900
|
|
|
40462c |
|
|
|
40462c |
* Mon Jun 11 2018 Christophe Fergeau <cfergeau@redhat.com> - 0.3.4-8
|
|
|
40462c |
- Sync with the rhel 7.6 package
|
|
|
40462c |
Resolves: rhbz#1584506
|
|
|
40462c |
|
|
|
40462c |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.4-7
|
|
|
40462c |
- Escape macros in %%changelog
|
|
|
40462c |
|
|
|
40462c |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-6
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.4-5
|
|
|
40462c |
- Switch to %%ldconfig_scriptlets
|
|
|
40462c |
|
|
|
40462c |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-4
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-3
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Wed Apr 13 2016 Christophe Fergeau <cfergeau@redhat.com> 0.3.4-1
|
|
|
40462c |
- Update to libgovirt 0.3.4
|
|
|
40462c |
|
|
|
40462c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-3
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Wed Apr 08 2015 Christophe Fergeau <cfergeau@redhat.com> 0.3.3-1
|
|
|
40462c |
- Update to upstream release 0.3.3
|
|
|
40462c |
|
|
|
40462c |
* Thu Oct 09 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.2-1
|
|
|
40462c |
- Update to upstream release 0.3.2
|
|
|
40462c |
|
|
|
40462c |
* Wed Sep 03 2014 Christophe Fergeau <cfergeau@redhat.com> 0.3.1-1
|
|
|
40462c |
- Update to upstream release 0.3.1
|
|
|
40462c |
|
|
|
40462c |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-7
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Sat Aug 02 2014 Richard Jones <rjones@redhat.com> - 0.3.0-6
|
|
|
40462c |
- Force rebuild for aarch64.
|
|
|
40462c |
|
|
|
40462c |
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-5
|
|
|
40462c |
- Rebuilt for gobject-introspection 1.41.4
|
|
|
40462c |
|
|
|
40462c |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Tue Nov 26 2013 Christophe Fergeau <cfergeau@redhat.com> 0.3.0-3
|
|
|
40462c |
- Actually apply Patch0 /o\
|
|
|
40462c |
|
|
|
40462c |
* Tue Nov 26 2013 Christophe Fergeau <cfergeau@redhat.com> 0.3.0-2
|
|
|
40462c |
- Add patch to fix a memory corruption issue when librest does not have the
|
|
|
40462c |
RestProxy::ssl-ca-file property (which is currently the case in Fedora)
|
|
|
40462c |
|
|
|
40462c |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
|
|
|
40462c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
40462c |
|
|
|
40462c |
* Tue Jun 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.1.0-1
|
|
|
40462c |
- Update to upstream release 0.1.0
|
|
|
40462c |
|
|
|
40462c |
* Mon Mar 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-2
|
|
|
40462c |
- Removed definition of BuildRoot and cleanup of BuildRoot in %%clean
|
|
|
40462c |
- Added missing arch to versioned Requires: %%{name} in the -devel package
|
|
|
40462c |
- Don't include empty NEWS and ChangeLog in built RPM
|
|
|
40462c |
|
|
|
40462c |
* Wed Feb 20 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-1
|
|
|
40462c |
- Initial import of libgovirt 0.0.3
|
|
|
40462c |
|
|
|
40462c |
|