Blame SPECS/libgovirt.spec

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