[gnome-boxes/flatpak-gnome-3-28: 5/5] Add flatpak manifest



commit 4f4b096735bf11c96c35bf620f2c95ffcd133801
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri May 11 15:36:09 2018 +0200

    Add flatpak manifest

 .../flatpak/gnome-boxes-disable-spice-usb.patch    |  93 ++++++
 build-aux/flatpak/libvirt-bootstrap-gettext.patch  |  11 +
 build-aux/flatpak/org.gnome.Boxes.json             | 323 +++++++++++++++++++++
 3 files changed, 427 insertions(+)
---
diff --git a/build-aux/flatpak/gnome-boxes-disable-spice-usb.patch 
b/build-aux/flatpak/gnome-boxes-disable-spice-usb.patch
new file mode 100644
index 00000000..08c93458
--- /dev/null
+++ b/build-aux/flatpak/gnome-boxes-disable-spice-usb.patch
@@ -0,0 +1,93 @@
+--- gnome-boxes-5/src/spice-display.vala~      2017-07-20 19:01:57.817177298 +0100
++++ gnome-boxes-5/src/spice-display.vala       2017-07-20 19:24:55.686539194 +0100
+@@ -1,7 +1,7 @@
+ // This file is part of GNOME Boxes. License: LGPLv2+
+ using Gtk;
+ using Spice;
+-using LibUSB;
++//using LibUSB;
+ 
+ private class Boxes.SpiceDisplay: Boxes.Display {
+     public override string protocol { get { return "SPICE"; } }
+@@ -54,6 +54,7 @@
+         gtk_session = GtkSession.get (session);
+ 
+         Spice.set_session_option (session);
++#if 0        
+         try {
+             var manager = UsbDeviceManager.get (session);
+ 
+@@ -65,6 +66,7 @@
+             });
+         } catch (GLib.Error error) {
+         }
++#endif
+     }
+ 
+     private Spice.MainChannel? _main_channel;
+@@ -173,14 +175,16 @@
+     }
+ 
+     public override bool should_keep_alive () {
++#if 0
+         try {
+             var manager = UsbDeviceManager.get (session);
+             var devs = get_usb_devices (manager);
+ 
+             return (!closed && (devs.length > 0));
+         } catch (GLib.Error error) {
++#endif        
+             return false;
+-        }
++//        }
+     }
+ 
+     public override void set_enable_audio (bool enable) {
+@@ -207,6 +211,7 @@
+             builder.append_printf ("Agent: %s\n", main_channel.agent_connected ? "connected" : 
"disconnected");
+         }
+ 
++#if 0
+         try {
+             var manager = UsbDeviceManager.get (session);
+             var devs = manager.get_devices ();
+@@ -217,6 +222,7 @@
+             }
+         } catch (GLib.Error error) {
+         }
++#endif
+     }
+ 
+     public override void connect_it (owned Display.OpenFDFunc? open_fd = null) {
+@@ -338,6 +344,7 @@
+             if (!connected)
+                 break;
+ 
++#if 0
+             try {
+                 var manager = UsbDeviceManager.get (session);
+                 var devs = get_usb_devices (manager);
+@@ -407,6 +414,7 @@
+                 });
+             } catch (GLib.Error error) {
+             }
++#endif
+             break;
+         }
+ 
+@@ -420,6 +428,7 @@
+         display.send_keys (keyvals, DisplayKeyEvent.CLICK);
+     }
+ 
++#if 0
+     private GLib.GenericArray<UsbDevice> get_usb_devices (UsbDeviceManager manager) {
+         GLib.GenericArray<UsbDevice> ret = new GLib.GenericArray<UsbDevice> ();
+         var devs = manager.get_devices ();
+@@ -492,6 +501,7 @@
+ 
+         return ret;
+     }
++#endif
+ }
+ 
+ private class Boxes.SpiceChannelHandler : GLib.Object {
diff --git a/build-aux/flatpak/libvirt-bootstrap-gettext.patch 
b/build-aux/flatpak/libvirt-bootstrap-gettext.patch
new file mode 100644
index 00000000..930d38f6
--- /dev/null
+++ b/build-aux/flatpak/libvirt-bootstrap-gettext.patch
@@ -0,0 +1,11 @@
+--- libvirt/bootstrap.conf~    2017-06-06 14:08:56.365460561 +0100
++++ libvirt/bootstrap.conf     2017-06-06 14:09:30.721724034 +0100
+@@ -203,7 +203,7 @@
+ autoconf   2.59
+ automake   1.9.6
+ autopoint  -
+-gettext    0.17
++xgettext   0.17
+ git        1.5.5
+ gzip       -
+ libtool    -
diff --git a/build-aux/flatpak/org.gnome.Boxes.json b/build-aux/flatpak/org.gnome.Boxes.json
new file mode 100644
index 00000000..c419e273
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.Boxes.json
@@ -0,0 +1,323 @@
+{
+    "app-id" : "org.gnome.Boxes",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "3.28",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "gnome-boxes",
+    "finish-args" : [
+        "--share=ipc",
+        "--socket=x11",
+        "--socket=wayland",
+        "--socket=pulseaudio",
+        "--share=network",
+        "--device=all",
+        "--talk-name=org.freedesktop.Tracker1",
+        "--filesystem=xdg-run/dconf",
+        "--filesystem=~/.config/dconf:ro",
+        "--filesystem=home",
+        "--talk-name=ca.desrt.dconf",
+        "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+    ],
+    "build-options" : {
+        "cflags" : "-O2 -g",
+        "cxxflags" : "-O2 -g",
+        "env" : {
+        }
+    },
+    "modules" : [
+        {
+            "name" : "check",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://github.com/libcheck/check/releases/download/0.11.0/check-0.11.0.tar.gz";,
+                    "sha256" : "24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616"
+                }
+            ]
+        },
+        {
+            "name" : "gtk-vnc",
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://git.gnome.org//browse/gtk-vnc";,
+                    "tag" : "v0.7.2",
+                    "commit" : "0e8b3c545ad109051501b4ff4ed548689df6e7d4"
+                }
+            ]
+        },
+        {
+            "name" : "libnl",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://www.infradead.org/~tgr/libnl/files/libnl-1.1.4.tar.gz";,
+                    "sha256" : "4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063"
+                }
+            ]
+        },
+        {
+            "name" : "libusb",
+            "config-opts" : [
+                "--disable-udev"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : 
"https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2";,
+                    "sha256" : "75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157"
+                }
+            ]
+        },
+        {
+            "name" : "yajl",
+            "buildsystem" : "cmake",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://github.com/lloyd/yajl/archive/2.1.0.tar.gz";,
+                    "sha256": "3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a"
+                }
+            ]
+        },
+        {
+            "name" : "libvirt",
+            "config-opts" : [
+                "--without-html-subdir",
+                "--without-storage-mpath"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://libvirt.org/sources/libvirt-4.1.0.tar.xz";,
+                    "sha256" : "8a2fa4826f311a936be8b7d4c8d76516c29417a593b1d1bb8641a8caaa316439"
+                }
+            ]
+        },
+        {
+            "name" : "libvirt-glib",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "http://libvirt.org/sources/glib/libvirt-glib-1.0.0.tar.gz";,
+                    "sha256" : "ca9158d01cc4d9e0218f94f8c9ee04ae367d8c3b4396daaebca2c4b89a2e8a47"
+                }
+            ]
+        },
+        {
+            "name" : "spice-protocol",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://www.spice-space.org/download/releases/spice-protocol-0.12.13.tar.bz2";,
+                    "sha256" : "89ee11b202d2268e061788e6ace114e1ff18c7620ae64d1ca3aba252ee7c9933"
+                }
+            ]
+        },
+        {
+            "name" : "celt051",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "http://downloads.xiph.org/releases/celt/celt-0.5.1.3.tar.gz";,
+                    "sha256" : "fc2e5b68382eb436a38c3104684a6c494df9bde133c139fbba3ddb5d7eaa6a2e"
+                }
+            ]
+        },
+        {
+            "name" : "spice",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://spice-space.org/download/releases/spice-0.14.0.tar.bz2";,
+                    "sha256" : "3adb9495b51650e5eab53c74dd6a74919af4b339ff21721d9ab2a45b2e3bb848"
+                }
+            ]
+        },
+        {
+            "name" : "python-pyparsing",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "pip3 install --prefix=/app pyparsing-2.2.0-py2.py3-none-any.whl"
+            ],
+            "sources" : [
+                {
+                    "type" : "file",
+                    "url" : 
"https://pypi.python.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl#md5=7247e7896688eff4bc8c7fc5d0cdd2b0";,
+                    "sha256" : "fee43f17a9c4087e7ed1605bd6df994c6173c1e977d7ade7b651292fab2bd010"
+                }
+            ]
+        },
+        {
+            "name" : "python-six",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "pip3 install --prefix=/app six-1.10.0-py2.py3-none-any.whl"
+            ],
+            "sources" : [
+                {
+                    "type" : "file",
+                    "url" : 
"https://pypi.python.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl#md5=3ab558cf5d4f7a72611d59a81a315dc8";,
+                    "sha256" : "0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1"
+                }
+            ]
+        },
+        {
+            "name" : "spice-gtk",
+            "build-options" : {
+                "env" : {
+                    "PYTHONPATH" : "/app"
+                }
+            },
+            "config-opts" : [
+                "--disable-controller",
+                "--enable-vala",
+                "--disable-gtk-doc",
+                "--enable-python-checks"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://www.spice-space.org/download/gtk/spice-gtk-0.34.tar.bz2";,
+                    "sha256" : "e9720e01165f8451c9f3f58ad50e3afb990993b81cc2db86b3661b7ac5b976ee"
+                }
+            ]
+        },
+        {
+            "name" : "tracker",
+            "cleanup" : [
+                "/bin",
+                "/etc",
+                "/libexec"
+            ],
+            "config-opts" : [
+                "--disable-miner-apps",
+                "--disable-static",
+                "--disable-tracker-extract",
+                "--disable-tracker-needle",
+                "--disable-tracker-preferences",
+                "--disable-artwork",
+                "--disable-tracker-writeback",
+                "--disable-miner-user-guides",
+                "--with-bash-completion-dir=no"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://download.gnome.org/sources/tracker/2.0/tracker-2.0.3.tar.xz";,
+                    "sha256": "5a2fb274c128ec67a920944937b5147ceaf5db16fef6691ea22c4cb841e20580"
+                }
+            ]
+        },
+        {
+            "name" : "usbredir",
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "git://anongit.freedesktop.org/spice/usbredir",
+                    "tag" : "usbredir-0.7.1",
+                    "commit" : "e1a7e3dbbe091bfdc568372ff5ab18ed7eae972e"
+                }
+            ]
+        },
+        {
+            "name" : "libcacard",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://www.spice-space.org/download/libcacard/libcacard-2.5.3.tar.xz";,
+                    "sha256": "243ff03c563a95faed497db7f524fcb34ccd6f388d1175ecf31c371a3188963b"
+                }
+            ]
+        },
+        {
+            "name" : "qemu",
+            "config-opts" : [
+                "--enable-kvm",
+                "--enable-spice",
+                "--enable-usb-redir",
+                "--enable-smartcard"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://download.qemu.org/qemu-2.11.1.tar.xz";,
+                    "sha256" : "8a5145d1f8bd2eadc6776f3e13c68cd28d01349e30639bdbcb26ac588d668686"
+                }
+            ]
+        },
+        {
+            "name" : "freerdp",
+            "buildsystem" : "cmake",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "http://pub.freerdp.com/releases/freerdp-2.0.0-rc2.tar.gz";,
+                    "sha256" : "bf080f71655a4996942436d5aacd5ce4afe57e546d4282fc0dc42fb80bd9da0c"
+                }
+            ]
+        },
+        {
+            "name" : "osinfo-db-tools",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://releases.pagure.org/libosinfo/osinfo-db-tools-1.1.0.tar.gz";,
+                    "sha256": "a141cd2fc07c30d84801b5dbf6b11f2c2e708b0e81216277d052ac0b57fe546b"
+                }
+            ]
+        },
+        {
+            "name" : "libosinfo",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://releases.pagure.org/libosinfo/libosinfo-1.1.0.tar.gz";,
+                    "sha256": "600f43a4a8dae5086a01a3d44bcac2092b5fa1695121289806d544fb287d3136"
+                },
+                {
+                    "type" : "file",
+                    "url" : "http://pciids.sourceforge.net/v2.2/pci.ids";,
+                    "sha256" : "0d45bf3ededf5ea5e233dee368f13ed1bd3f4dce1958fd33ec0efea8ec99be28"
+                },
+                {
+                    "type" : "file",
+                    "url" : "http://www.linux-usb.org/usb.ids";,
+                    "sha256" : "970b720d56beec35b7ef8bda02e8b85ab853b436f3cae4fed13b808e1a79fdd8"
+                }
+            ]
+        },
+        {
+            "name" : "osinfo-db",
+            "buildsystem" : "simple",
+            "builddir": true,
+            "build-commands" : [
+                "make",
+                "osinfo-db-import --dir /app/share/osinfo/ osinfo-db-*.tar.xz"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.com/libosinfo/osinfo-db";
+                }
+            ]
+        },
+        {
+            "name" : "gnome-boxes",
+            "config-opts" : [
+                "-Dflatpak=true"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/gnome/gnome-boxes.git";,
+                    "branch" : "gnome-3-28"
+                },
+                {
+                    "type" : "patch",
+                    "path" : "gnome-boxes-disable-spice-usb.patch"
+                }
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]