[Spice-devel] [PATCH spice-gtk] Add flatpak builder manifest file for spicy
Christophe Fergeau
cfergeau at redhat.com
Fri Jul 21 09:33:57 UTC 2017
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Fri, Jul 21, 2017 at 11:02:57AM +0200, Pavel Grunt wrote:
> To give an example for creating flatpaks depending on spice-gtk
>
> How to build and run the flatpak:
> spicy uses GNOME SDK runtime, version 3.24. The runtime provides tools
> and libraries necessary to build the flatpak
> $ flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
> $ flatpak install gnome org.gnome.Sdk//3.24
>
> To build and run the flatpak of spicy:
> $ flatpak-builder spicy data/org.spicespace.spicy.json
> $ flatpak build-export repo spicy
> $ flatpak --user remote-add --no-gpg-verify --if-not-exists spice-repo repo
> $ flatpak --user install spice-repo org.spicespace.spicy
> $ flatpak run org.spicespace.spicy
> ---
> v1:
> - addressed Christophe's comments
> - removed PERLPATH
> - fixed audio by adding the pulseaudio socket
> ---
> data/org.spicespace.spicy.json | 71 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
> create mode 100644 data/org.spicespace.spicy.json
>
> diff --git a/data/org.spicespace.spicy.json b/data/org.spicespace.spicy.json
> new file mode 100644
> index 0000000..1e03bf9
> --- /dev/null
> +++ b/data/org.spicespace.spicy.json
> @@ -0,0 +1,71 @@
> +{
> + "app-id": "org.spicespace.spicy",
> + "runtime": "org.gnome.Platform",
> + "runtime-version": "3.24",
> + "sdk": "org.gnome.Sdk",
> + "command": "spicy",
> + "tags": ["devel", "development", "nightly"],
> + "finish-args": [
> + "--share=ipc", "--socket=x11",
> + "--socket=wayland",
> + "--socket=pulseaudio",
> + "--share=network"
> + ],
> + "modules": [
> + {
> + "name": "python-six",
> + "buildsystem": "simple",
> + "build-commands": [
> + "pip3 install --target=/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": "pyparsing",
> + "buildsystem": "simple",
> + "build-commands": [
> + "pip3 install --target=/app pyparsing-2.0.3-py2.py3-none-any.whl"
> + ],
> + "sources": [
> + {
> + "type": "file",
> + "url": "https://pypi.python.org/packages/8f/f4/3a70b5e5b865b1ec45fe48dc5a57cd4facb5c7bd80e5cb1255c362732e81/pyparsing-2.0.3-py2.py3-none-any.whl#md5=4c16ef222caea2e5de741ae503aae652",
> + "sha256": "a9c896bab06dbf3759ad5fb63cfdb3777191e2c4ae640e6dd69ed37530f6ba56"
> + }
> + ]
> + },
> + {
> + "builddir": true,
> + "name": "spice-protocol",
> + "sources": [
> + {
> + "type": "git",
> + "url": "git://anongit.freedesktop.org/spice/spice-protocol"
> + }
> + ]
> + },
> + {
> + "builddir": true,
> + "name": "spice-gtk",
> + "build-options": {
> + "env": {
> + "PYTHONPATH": "/app"
> + }
> + },
> + "config-opts": [ "--disable-controller", "--disable-vala",
> + "--disable-gtk-doc", "--enable-python-checks" ],
> + "sources": [
> + {
> + "type": "git",
> + "url": "git://anongit.freedesktop.org/spice/spice-gtk"
> + }
> + ]
> + }
> + ]
> +}
> --
> 2.13.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170721/34eef441/attachment.sig>
More information about the Spice-devel
mailing list