d2d2b6b
#based on openSUSE spec file from dimstar, and on the Mageia .spec from bkor
d2d2b6b
%global url_ver	%%(echo %{version}|cut -d. -f1,2)
d2d2b6b
d2d2b6b
Name:		gnome-boxes
Richard Hughes 5331494
Version:	3.7.5
Richard Hughes 5331494
Release:	1%{?dist}
d2d2b6b
Summary:	A simple GNOME 3 application to access remote or virtual systems
d2d2b6b
d2d2b6b
Group:		Applications/Emulators
d2d2b6b
License:	LGPLv2+
d2d2b6b
URL:		https://live.gnome.org/Boxes
d2d2b6b
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
d2d2b6b
d2d2b6b
BuildRequires:	intltool
1482ad7
BuildRequires:	vala-devel >= 0.17.3
1482ad7
BuildRequires:	vala-tools >= 0.17.3
7db64bb
BuildRequires:	pkgconfig(clutter-gtk-1.0) >= 1.3.2
441874c
BuildRequires:	pkgconfig(glib-2.0) => 2.32
d2d2b6b
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.9.6
7db64bb
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.5.5
d2d2b6b
BuildRequires:	pkgconfig(gtk-vnc-2.0) >= 0.4.4
c7527b5
BuildRequires:	pkgconfig(libvirt-gobject-1.0) >= 0.1.5
c7527b5
BuildRequires:	pkgconfig(libvirt-gconfig-1.0) >= 0.1.5
d2d2b6b
BuildRequires:	pkgconfig(libxml-2.0) >= 2.7.8
d2d2b6b
BuildRequires:	pkgconfig(gudev-1.0) >= 167
c7527b5
BuildRequires:	pkgconfig(libosinfo-1.0) >= 0.2.3
0eb82e4
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.38
5b364e1
BuildRequires:	spice-gtk3-vala >= 0.9
d2d2b6b
BuildRequires:	libosinfo-vala >= 0.0.4
d2d2b6b
BuildRequires:	desktop-file-utils
b26529f
BuildRequires:	tracker-devel
be2dee8
BuildRequires:	libuuid-devel
b26529f
#BuildRequires: autoconf automake libtool
d2d2b6b
1b63181
# Pulls in libvirtd + KVM, but no NAT / firewall configs
1b63181
Requires:	libvirt-daemon-kvm
d2d2b6b
d2d2b6b
# Needed for unattended installations
d2d2b6b
Requires:	fuseiso
d2d2b6b
Requires:	mtools
d2d2b6b
d2d2b6b
# gnome-boxes uses a dark theme
d2d2b6b
Requires:	gnome-icon-theme
d2d2b6b
d2d2b6b
%description
d2d2b6b
gnome-boxes lets you easily create, setup, access, and use:
d2d2b6b
  * remote machines
d2d2b6b
  * remote virtual machines
d2d2b6b
  * local virtual machines
d2d2b6b
  * When technology permits, set up access for applications on
d2d2b6b
    local virtual machines
d2d2b6b
d2d2b6b
d2d2b6b
%prep
d2d2b6b
%setup -q
5372a88
# https://bugzilla.gnome.org/show_bug.cgi?id=692662
5372a88
sed -i -e 's/tracker-sparql-0.14/tracker-sparql-0.16/' configure*
d2d2b6b
d2d2b6b
%build
653a0ba
#fedora-legal and the fedora board permit logos to be enabled
653a0ba
#http://lists.fedoraproject.org/pipermail/advisory-board/2012-February/011360.html
aa68bf5
%configure --enable-logos --enable-vala --enable-usbredir
b26529f
make %{?_smp_mflags} V=1
d2d2b6b
d2d2b6b
d2d2b6b
%install
d2d2b6b
make install DESTDIR=%{buildroot}
d2d2b6b
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
d2d2b6b
%find_lang %{name} --with-gnome
d2d2b6b
d2d2b6b
d2d2b6b
%post
d2d2b6b
update-desktop-database &> /dev/null || :
d2d2b6b
update-mime-database %{_datadir}/mime &> /dev/null || :
d2d2b6b
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
d2d2b6b
d2d2b6b
%postun
d2d2b6b
update-desktop-database &> /dev/null || :
d2d2b6b
update-mime-database %{_datadir}/mime &> /dev/null || :
d2d2b6b
if [ $1 -eq 0 ] ; then
d2d2b6b
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
d2d2b6b
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d2d2b6b
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
d2d2b6b
fi
d2d2b6b
d2d2b6b
%posttrans
d2d2b6b
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d2d2b6b
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
d2d2b6b
d2d2b6b
d2d2b6b
%files -f %{name}.lang
d2d2b6b
%doc AUTHORS COPYING README NEWS TODO
d2d2b6b
%{_bindir}/%{name}
d2d2b6b
%{_datadir}/%{name}/
d2d2b6b
%{_datadir}/applications/%{name}.desktop
d2d2b6b
%{_datadir}/glib-2.0/schemas/org.gnome.boxes.gschema.xml
d2d2b6b
%{_datadir}/icons/hicolor/*/apps/gnome-boxes.*
9dbf7fd
%{_libexecdir}/gnome-boxes-search-provider
9dbf7fd
%{_datadir}/dbus-1/services/org.gnome.Boxes.SearchProvider.service
9dbf7fd
%dir %{_datadir}/gnome-shell
9dbf7fd
%dir %{_datadir}/gnome-shell/search-providers
9dbf7fd
%{_datadir}/gnome-shell/search-providers/gnome-boxes-search-provider.ini
d2d2b6b
d2d2b6b
%changelog
Richard Hughes 5331494
* Wed Feb 06 2013 Richard Hughes <rhughes@redhat.com> - 3.7.5-1
Richard Hughes 5331494
- Update to 3.7.5
Richard Hughes 5331494
1633612
* Sun Jan 27 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.4-3
1633612
- Rebuilt for tracker 0.16 ABI
1633612
e2297b1
* Fri Jan 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 3.7.4-2
e2297b1
- Rebuild for new cogl
e2297b1
c7527b5
* Tue Jan 15 2013 Zeeshan Ali <zeenix@redhat.com> - 3.7.4-1
c7527b5
- Update to 3.7.4.
c7527b5
441874c
* Thu Dec 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.7.3-1
441874c
- Update to 3.7.3
441874c
aa68bf5
* Tue Nov 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.7.2-2
aa68bf5
- Reenable USB redirection (it's disabled by default, packagers must
aa68bf5
  enable it if appropriate)
aa68bf5
edb6227
* Tue Nov 20 2012 Zeeshan Ali <zeenix@redhat.com> - 3.7.2-1
43f072d
- Update to 3.7.2.
43f072d
bfeb8bb
* Tue Nov 13 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.6.2-2
bfeb8bb
- Update to 3.6.2
bfeb8bb
edb6227
* Tue Oct 16 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1.1-2
3655a3b
- Enable USB redirection in new domains.
3655a3b
edb6227
* Tue Oct 16 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1.1-1
818b670
- Update to 3.6.1.1
818b670
0eb82e4
* Mon Oct 15 2012 Zeeshan Ali <zeenix@redhat.com> - 3.6.1-1
0eb82e4
- Update to 3.6.1
0eb82e4
61d20b1
* Tue Sep 25 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.6.0-1
61d20b1
- Update to 3.6.0
61d20b1
Richard Hughes ed6b885
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 3.5.92-1
Richard Hughes ed6b885
- Update to 3.5.92
Richard Hughes ed6b885
469514f
* Thu Sep  6 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.91-2
469514f
- Rebuild against new spice
469514f
ea18769
* Tue Sep 04 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.91-1
ea18769
- Update do 3.5.91
ea18769
Richard Hughes 343b549
* Wed Aug 22 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
Richard Hughes 343b549
- Update to 3.5.90
Richard Hughes 343b549
Richard Hughes 2221d7a
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
Richard Hughes 2221d7a
- Update to 3.5.5
Richard Hughes 2221d7a
a33d938
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.4.1-2
a33d938
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a33d938
b88abe5
* Mon Jul 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.4.1-1
b88abe5
- Update to 3.5.4.1
b88abe5
7db64bb
* Mon Jul 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.4-1
7db64bb
- Update to 3.5.4
7db64bb
- Update some BuildRequires min version
7db64bb
Richard Hughes 1383a9e
* Tue Jun 26 2012 Richard Hughes <hughsient@gmail.com> - 3.5.3-1
Richard Hughes 1383a9e
- Update to 3.5.3
Richard Hughes 1383a9e
653a0ba
* Thu Jun 07 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.5.2-2
653a0ba
- enable logos after getting confirmation this has been approved by
653a0ba
  fedora-legal and the Fedora board
653a0ba
Richard Hughes 507cd6c
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.2-1
Richard Hughes 507cd6c
- Update to 3.5.2
Richard Hughes 507cd6c
68b536a
* Wed May 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.2-2
68b536a
- Remove ExclusiveArch now that spice-gtk is built on all arch
68b536a
edb6227
* Tue May 15 2012 Zeeshan Ali <zeenix@redhat.com> - 3.4.2-1
d88752d
- Update to 3.4.2
d88752d
0c0ae9b
* Thu Apr 26 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.1-2
0c0ae9b
- Backport a few upstream patches:
0c0ae9b
  - asynchronously fetch domain information from libvirt, this makes Boxes
0c0ae9b
    much more responsive
0c0ae9b
  - make the file chooser dialog modal
0c0ae9b
  - fix f17 unattended installation
0c0ae9b
Richard Hughes 12113a6
* Tue Apr 17 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1
Richard Hughes 12113a6
- Update to 3.4.1
Richard Hughes 12113a6
1b63181
* Sat Mar 31 2012 Daniel P. Berrange <berrange@redhat.com> - 3.4.0.1-2
1b63181
- Only pull in libvirtd + KVM drivers, without default configs (bug 802475)
1b63181
b3e1545
* Sat Mar 31 2012 Zeeshan Ali <zeenix@redhat.com> - 3.4.0.1-1
b3e1545
- Update to 3.4.0.1
b3e1545
227e7bf
* Mon Mar 26 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.4.0-1
227e7bf
- Update to 3.4.0
227e7bf
b57f6a3
* Mon Mar 26 2012 Dan HorĂ¡k <dan[at]danny.cz> - 3.3.92-2
b57f6a3
- set ExclusiveArch equal to spice-gtk
b57f6a3
8938c57
* Tue Mar 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.92-1
8938c57
- Update to 3.3.92
8938c57
b26529f
* Tue Mar  6 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.91-1
b26529f
- Update to 3.3.91
b26529f
b26529f
* Sun Feb 26 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.90-1
b26529f
- Update to 3.3.90
b26529f
5b364e1
* Wed Feb 08 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.5.1-1
5b364e1
- Update to 3.3.5.1
5b364e1
ce5d7ec
* Wed Jan 25 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4.1-1
ce5d7ec
- Update to minor 3.3.4.1 release
ce5d7ec
d2d2b6b
* Fri Jan 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-4
d2d2b6b
- call desktop-file-validate in %%install. gnome-boxes upstream installs
d2d2b6b
  a .desktop file on its own so desktop-file-validate is enough, no need
d2d2b6b
  to call desktop-file-install.
d2d2b6b
d2d2b6b
* Fri Jan 20 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-3
d2d2b6b
- Fix %%global use (%%url_ver got expanded to 3.3.4 instead of 3.3 in
d2d2b6b
  -2)
d2d2b6b
edb6227
* Tue Jan 17 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-2
d2d2b6b
- Remove use of BuildRoot
d2d2b6b
- Remove use of defattr
d2d2b6b
- Use %%global instead of %%define
d2d2b6b
edb6227
* Tue Jan 17 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.4-1
d2d2b6b
- Update to 3.3.4 release
d2d2b6b
d2d2b6b
* Thu Jan 05 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-3
d2d2b6b
- Escape %%{buildroot} in changelog
d2d2b6b
- Remove empty %%pre section
d2d2b6b
d2d2b6b
* Wed Jan 04 2012 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-2
d2d2b6b
- Use %%{buildroot} instead of $RPM_BUILD_ROOT
d2d2b6b
- Remove unneeded patch
d2d2b6b
- Add missing dependency on fuseiso
d2d2b6b
d2d2b6b
* Fri Dec 23 2011 Christophe Fergeau <cfergeau@redhat.com> - 3.3.3-1
d2d2b6b
- Initial import
d2d2b6b