Blame SPECS/gnome-boxes.spec

9dba73
# Since RHEL-5, QEMU is restricted to x86_64 only
9dba73
# As Boxes don't really handle the !qemu case very well (untested, the 'box
9dba73
# creation' UI would still be there but non-functional, ...), better to
9dba73
# only build Boxes on platforms where qemu/qemu-kvm are available
9dba73
%if 0%{?rhel}
9dba73
ExclusiveArch: x86_64
9dba73
%endif
9dba73
9dba73
9dba73
# The following qemu_kvm_arches/with_qemu_kvm defines come from
9dba73
# libvirt.spec
9dba73
%if 0%{?fedora} >= 18
9dba73
    %define qemu_kvm_arches    %{ix86} x86_64 ppc64 s390x
9dba73
%else
9dba73
    %define qemu_kvm_arches    %{ix86} x86_64
9dba73
%endif
9dba73
9dba73
%if 0%{?rhel} >= 7
9dba73
    %define qemu_kvm_arches    x86_64
9dba73
%endif
9dba73
9dba73
%ifarch %{qemu_kvm_arches}
9dba73
    %define with_qemu_kvm      1
9dba73
%else
9dba73
    %define with_qemu_kvm      0
9dba73
%endif
9dba73
9dba73
9dba73
#based on openSUSE spec file from dimstar, and on the Mageia .spec from bkor
9dba73
%global url_ver	%%(echo %{version}|cut -d. -f1,2)
9dba73
9dba73
Name:		gnome-boxes
9dba73
Version:	3.8.3
e0d3d7
Release:	8%{?dist}
9dba73
Summary:	A simple GNOME 3 application to access remote or virtual systems
9dba73
9dba73
Group:		Applications/Emulators
9dba73
License:	LGPLv2+
9dba73
URL:		https://live.gnome.org/Boxes
9dba73
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
9dba73
9dba73
BuildRequires:  libgovirt-devel
9dba73
BuildRequires:	intltool
9dba73
BuildRequires:	vala-devel >= 0.17.3
9dba73
BuildRequires:	vala-tools >= 0.17.3
9dba73
BuildRequires:	yelp-tools
9dba73
BuildRequires:	pkgconfig(clutter-gtk-1.0) >= 1.3.2
9dba73
BuildRequires:	pkgconfig(glib-2.0) => 2.32
9dba73
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.9.6
9dba73
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.5.5
9dba73
BuildRequires:	pkgconfig(gtk-vnc-2.0) >= 0.4.4
9dba73
BuildRequires:	pkgconfig(libvirt-gobject-1.0) >= 0.1.5
9dba73
BuildRequires:	pkgconfig(libvirt-gconfig-1.0) >= 0.1.5
9dba73
BuildRequires:	pkgconfig(libxml-2.0) >= 2.7.8
9dba73
BuildRequires:	pkgconfig(gudev-1.0) >= 167
9dba73
BuildRequires:	pkgconfig(libosinfo-1.0) >= 0.2.3
9dba73
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.38
9dba73
BuildRequires:	spice-gtk3-vala >= 0.9
9dba73
BuildRequires:	libosinfo-vala >= 0.0.4
9dba73
BuildRequires:	desktop-file-utils
9dba73
BuildRequires:	tracker-devel
9dba73
BuildRequires:	libuuid-devel
9dba73
#BuildRequires: autoconf automake libtool
9dba73
9dba73
# Pulls in libvirtd + KVM, but no NAT / firewall configs
9dba73
%if %{with_qemu_kvm}
9dba73
Requires:	libvirt-daemon-kvm
9dba73
%else
9dba73
Requires:	libvirt-daemon-qemu
9dba73
%endif
9dba73
9dba73
# Needed for unattended installations
9dba73
Requires:	fuseiso
9dba73
Requires:	mtools
9dba73
Requires:	genisoimage
9dba73
9dba73
# gnome-boxes uses a dark theme
9dba73
Requires:	gnome-icon-theme
9dba73
9dba73
# https://bugzilla.redhat.com/show_bug.cgi?id=968285
9dba73
# No keyboard shortcut to quit Boxes
e0d3d7
Patch0:		take-default-modifiers-into-account.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=1030336
e0d3d7
# [gnome-boxes] Translations incomplete
e0d3d7
Patch1: complete-l10n.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=846408
e0d3d7
# Media list should watch for new/deleted ISOs
e0d3d7
Patch2: rm-media-from-correct-widget.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=1015079
e0d3d7
# Need to click twice to get properties menu
e0d3d7
Patch3: rm-existing-transition-before-adding-new-on.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=1061216
e0d3d7
# [abrt] gnome-boxes: boxes_installer_media_get_decoded_udev_property(): gnome-boxes killed by SIGABRT
e0d3d7
Patch4: get_decoded_udev_property-Fix-sscanf-use.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=1072611
e0d3d7
# Should not propose to install/boot from CD/DVD in RHEL7
e0d3d7
Patch5: don-t-register-for-x-content-bootable-media.patch
e0d3d7
Patch6: ignore-CDROM-devices.patch
e0d3d7
e0d3d7
# https://bugzilla.gnome.org/show_bug.cgi?id=1043892
e0d3d7
# Boxes can't handle ISO9660 USB devices
e0d3d7
Patch7: ignore-non-readable-devices.patch
9dba73
9dba73
%description
9dba73
gnome-boxes lets you easily create, setup, access, and use:
9dba73
  * remote machines
9dba73
  * remote virtual machines
9dba73
  * local virtual machines
9dba73
  * When technology permits, set up access for applications on
9dba73
    local virtual machines
9dba73
9dba73
%prep
9dba73
%setup -q
9dba73
9dba73
%patch0 -p1 -b .take-default-modifiers-into-account
e0d3d7
%patch1 -p2 -b .complete-l10n
e0d3d7
%patch2 -p1 -b .rm-media-from-correct-widget
e0d3d7
%patch3 -p1 -b .rm-existing-transition-before-adding-new-on
e0d3d7
%patch4 -p1 -b .get_decoded_udev_property-Fix-sscanf-use
e0d3d7
%patch5 -p1 -b .don-t-register-for-x-content-bootable-media
e0d3d7
%patch6 -p1 -b .ignore-CDROM-devices
e0d3d7
%patch7 -p1 -b .ignore-non-readable-devices
9dba73
9dba73
%build
9dba73
#fedora-legal and the fedora board permit logos to be enabled
9dba73
#http://lists.fedoraproject.org/pipermail/advisory-board/2012-February/011360.html
9dba73
%configure --enable-logos --enable-vala --enable-usbredir --enable-smartcard
9dba73
make %{?_smp_mflags} V=1
9dba73
9dba73
9dba73
%install
9dba73
make install DESTDIR=%{buildroot}
9dba73
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
9dba73
%find_lang %{name} --with-gnome
9dba73
9dba73
9dba73
%post
9dba73
update-desktop-database &> /dev/null || :
9dba73
update-mime-database %{_datadir}/mime &> /dev/null || :
9dba73
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
9dba73
9dba73
%postun
9dba73
update-desktop-database &> /dev/null || :
9dba73
update-mime-database %{_datadir}/mime &> /dev/null || :
9dba73
if [ $1 -eq 0 ] ; then
9dba73
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
9dba73
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
9dba73
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
9dba73
fi
9dba73
9dba73
%posttrans
9dba73
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
9dba73
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
9dba73
9dba73
9dba73
%files -f %{name}.lang
9dba73
%doc AUTHORS COPYING README NEWS TODO
9dba73
%{_bindir}/%{name}
9dba73
%{_datadir}/%{name}/
9dba73
%{_datadir}/applications/%{name}.desktop
9dba73
%{_datadir}/glib-2.0/schemas/org.gnome.boxes.gschema.xml
9dba73
%{_datadir}/icons/hicolor/*/apps/gnome-boxes.*
9dba73
%{_libexecdir}/gnome-boxes-search-provider
9dba73
%{_datadir}/dbus-1/services/org.gnome.Boxes.SearchProvider.service
9dba73
%dir %{_datadir}/gnome-shell
9dba73
%dir %{_datadir}/gnome-shell/search-providers
9dba73
%{_datadir}/gnome-shell/search-providers/gnome-boxes-search-provider.ini
9dba73
9dba73
%changelog
e0d3d7
* Mon Mar 17 2014 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-8
e0d3d7
- Don't register for 'x-content/bootable-media' (related: #1072611).
e0d3d7
- Ignore CDROM devices (related: #1072611).
e0d3d7
- Ignore non-readable devices (related: #1043892)
e0d3d7
e0d3d7
* Wed Mar 12 2014 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-7
e0d3d7
- Fix a crash in get_decoded_udev_property (related: #1061216).
e0d3d7
e0d3d7
* Fri Feb 28 2014 Matthias Clasen <mclasen@redhat.com> - 3.8.3-6
e0d3d7
- Rebuild
e0d3d7
Resolves: #1070807
e0d3d7
e0d3d7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.3-5
e0d3d7
- Mass rebuild 2013-12-27
e0d3d7
e0d3d7
* Tue Dec 17 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-4
e0d3d7
- Remove media from correct box (related: #846408).
e0d3d7
- Remove existing transition before adding new one (related: #1015079).
e0d3d7
e0d3d7
* Wed Dec  4 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-3
e0d3d7
- Complete translations (related: #1030336).
e0d3d7
9dba73
* Fri Nov  8 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-2
9dba73
- Fix rhbz#968285
9dba73
9dba73
* Tue May 28 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.3-1
9dba73
- Update to 3.8.3.
9dba73
9dba73
* Mon May 27 2013 Kalev Lember <kalevlember@gmail.com> 3.8.2-5
9dba73
- Only pull in qemu on non-kvm arches
9dba73
9dba73
* Fri May 24 2013 Christophe Fergeau <cfergeau@redhat.com> 3.8.2-4
9dba73
- ... and remove again the ExclusiveArch on fedora. If libvirt-daemon-qemu
9dba73
  is available, this means we can create (very slow) x86 boxes regardless
9dba73
  of the arch
9dba73
9dba73
* Thu May 23 2013 Christophe Fergeau <cfergeau@redhat.com> 3.8.2-3
9dba73
- Readd ExclusiveArch as Boxes is not really functional on non-x86
9dba73
  arch even if it can be built. Also, libvirt-daemon-kvm is not
9dba73
  available on every arch, causing rhbz#962325
9dba73
9dba73
* Thu May 16 2013 Christophe Fergeau <cfergeau@redhat.com> 3.8.2-2
9dba73
- Add upstream patch for rhbz#963464
9dba73
9dba73
* Tue May 14 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.2-1
9dba73
- Update to 3.8.2.
9dba73
9dba73
* Thu Apr 18 2013 Christophe Fergeau <cfergeau@redhat.com> 3.8.1.2-1
9dba73
- Update to 3.8.1.2
9dba73
9dba73
* Tue Apr 16 2013 Richard Hughes <rhughes@redhat.com> - 3.8.1-1
9dba73
- Update to 3.8.1
9dba73
9dba73
* Tue Mar 26 2013 Richard Hughes <rhughes@redhat.com> - 3.8.0-1
9dba73
- Update to 3.8.0
9dba73
9dba73
* Wed Mar 20 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
9dba73
- Update to 3.7.92
9dba73
9dba73
* Fri Mar  8 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
9dba73
- Update to 3.7.91
9dba73
9dba73
* Thu Feb 21 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.90-2
9dba73
- Rebuilt for cogl soname bump
9dba73
9dba73
* Thu Feb 21 2013 Christophe Fergeau <cfergeau@redhat.com> 3.7.90-1
9dba73
- Update do 3.7.90
9dba73
9dba73
* Wed Feb 06 2013 Richard Hughes <rhughes@redhat.com> - 3.7.5-1
9dba73
- Update to 3.7.5
9dba73
9dba73
* Sun Jan 27 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.4-3
9dba73
- Rebuilt for tracker 0.16 ABI
9dba73
9dba73
* Fri Jan 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 3.7.4-2
9dba73
- Rebuild for new cogl
9dba73
9dba73
* Tue Jan 15 2013 Zeeshan Ali <zeenix@redhat.com> - 3.7.4-1
9dba73
- Update to 3.7.4.
9dba73
9dba73
* Thu Dec 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.7.3-1
9dba73
- Update to 3.7.3
9dba73
9dba73
* Tue Nov 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.7.2-2
9dba73
- Reenable USB redirection (it's disabled by default, packagers must
9dba73
  enable it if appropriate)
9dba73
9dba73
* Tue Nov 20 2012 Zeeshan Ali <zeenix@redhat.com> - 3.7.2-1
9dba73
- Update to 3.7.2.
9dba73
9dba73
* Tue Nov 13 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.6.2-2
9dba73
- Update to 3.6.2
9dba73
9dba73
* Tue Oct 16 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1.1-2
9dba73
- Enable USB redirection in new domains.
9dba73
9dba73
* Tue Oct 16 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1.1-1
9dba73
- Update to 3.6.1.1
9dba73
9dba73
* Mon Oct 15 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1-1
9dba73
- Update to 3.6.1
9dba73
9dba73
* Tue Sep 25 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.6.0-1
9dba73
- Update to 3.6.0
9dba73
9dba73
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 3.5.92-1
9dba73
- Update to 3.5.92
9dba73
9dba73
* Thu Sep  6 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.91-2
9dba73
- Rebuild against new spice
9dba73
9dba73
* Tue Sep 04 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.91-1
9dba73
- Update do 3.5.91
9dba73
9dba73
* Wed Aug 22 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
9dba73
- Update to 3.5.90
9dba73
9dba73
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
9dba73
- Update to 3.5.5
9dba73
9dba73
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.4.1-2
9dba73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9dba73
9dba73
* Mon Jul 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.4.1-1
9dba73
- Update to 3.5.4.1
9dba73
9dba73
* Mon Jul 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.4-1
9dba73
- Update to 3.5.4
9dba73
- Update some BuildRequires min version
9dba73
9dba73
* Tue Jun 26 2012 Richard Hughes <hughsient@gmail.com> - 3.5.3-1
9dba73
- Update to 3.5.3
9dba73
9dba73
* Thu Jun 07 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.2-2
9dba73
- enable logos after getting confirmation this has been approved by
9dba73
  fedora-legal and the Fedora board
9dba73
9dba73
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.2-1
9dba73
- Update to 3.5.2
9dba73
9dba73
* Wed May 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.2-2
9dba73
- Remove ExclusiveArch now that spice-gtk is built on all arch
9dba73
9dba73
* Tue May 15 2012 Zeeshan Ali <zeenix@redhat.com> - 3.4.2-1
9dba73
- Update to 3.4.2
9dba73
9dba73
* Thu Apr 26 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.1-2
9dba73
- Backport a few upstream patches:
9dba73
  - asynchronously fetch domain information from libvirt, this makes Boxes
9dba73
    much more responsive
9dba73
  - make the file chooser dialog modal
9dba73
  - fix f17 unattended installation
9dba73
9dba73
* Tue Apr 17 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1
9dba73
- Update to 3.4.1
9dba73
9dba73
* Sat Mar 31 2012 Daniel P. Berrange <berrange@redhat.com> - 3.4.0.1-2
9dba73
- Only pull in libvirtd + KVM drivers, without default configs (bug 802475)
9dba73
9dba73
* Sat Mar 31 2012 Zeeshan Ali <zeenix@redhat.com> - 3.4.0.1-1
9dba73
- Update to 3.4.0.1
9dba73
9dba73
* Mon Mar 26 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.0-1
9dba73
- Update to 3.4.0
9dba73
9dba73
* Mon Mar 26 2012 Dan HorĂ¡k <dan[at]danny.cz> - 3.3.92-2
9dba73
- set ExclusiveArch equal to spice-gtk
9dba73
9dba73
* Tue Mar 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.92-1
9dba73
- Update to 3.3.92
9dba73
9dba73
* Tue Mar  6 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.91-1
9dba73
- Update to 3.3.91
9dba73
9dba73
* Sun Feb 26 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.90-1
9dba73
- Update to 3.3.90
9dba73
9dba73
* Wed Feb 08 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.5.1-1
9dba73
- Update to 3.3.5.1
9dba73
9dba73
* Wed Jan 25 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4.1-1
9dba73
- Update to minor 3.3.4.1 release
9dba73
9dba73
* Fri Jan 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-4
9dba73
- call desktop-file-validate in %%install. gnome-boxes upstream installs
9dba73
  a .desktop file on its own so desktop-file-validate is enough, no need
9dba73
  to call desktop-file-install.
9dba73
9dba73
* Fri Jan 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-3
9dba73
- Fix %%global use (%%url_ver got expanded to 3.3.4 instead of 3.3 in
9dba73
  -2)
9dba73
9dba73
* Tue Jan 17 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-2
9dba73
- Remove use of BuildRoot
9dba73
- Remove use of defattr
9dba73
- Use %%global instead of %%define
9dba73
9dba73
* Tue Jan 17 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-1
9dba73
- Update to 3.3.4 release
9dba73
9dba73
* Thu Jan 05 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-3
9dba73
- Escape %%{buildroot} in changelog
9dba73
- Remove empty %%pre section
9dba73
9dba73
* Wed Jan 04 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-2
9dba73
- Use %%{buildroot} instead of $RPM_BUILD_ROOT
9dba73
- Remove unneeded patch
9dba73
- Add missing dependency on fuseiso
9dba73
9dba73
* Fri Dec 23 2011 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-1
9dba73
- Initial import
9dba73