From bedb75c7e4bfb917c4b84c50648aecec0f92d2d6baabac703ccfbf67046b6463 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 14 Sep 2022 13:20:49 +0000 Subject: [PATCH] Accepting request 1002521 from home:1Antoine1 It's a program which handles app:// (and maybe later appsocket://) hyperlinks inside terminal emulators. It's only used by GNU poke for now, see https://jemarch.net/pokology-20200202.html. OBS-URL: https://build.opensuse.org/request/show/1002521 OBS-URL: https://build.opensuse.org/package/show/utilities/hyperlink-app-client?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + app-client.desktop | 8 ++++ hyperlink-app-client-0.0~20200123.tar.bz2 | 3 ++ hyperlink-app-client.changes | 5 ++ hyperlink-app-client.spec | 57 +++++++++++++++++++++++ 6 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 app-client.desktop create mode 100644 hyperlink-app-client-0.0~20200123.tar.bz2 create mode 100644 hyperlink-app-client.changes create mode 100644 hyperlink-app-client.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/app-client.desktop b/app-client.desktop new file mode 100644 index 0000000..2e34a3e --- /dev/null +++ b/app-client.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Hyperlink App Client +Categories=System;ConsoleOnly +Comment=Client for the app:// protocol +NoDisplay=true +Exec=app-client %u +MimeType=x-scheme-handler/app diff --git a/hyperlink-app-client-0.0~20200123.tar.bz2 b/hyperlink-app-client-0.0~20200123.tar.bz2 new file mode 100644 index 0000000..492c613 --- /dev/null +++ b/hyperlink-app-client-0.0~20200123.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77818eac1b41ee9f1128f27bb0ff1ca26aece5004e50c25c77c842ba3503eadb +size 13047 diff --git a/hyperlink-app-client.changes b/hyperlink-app-client.changes new file mode 100644 index 0000000..1c15fec --- /dev/null +++ b/hyperlink-app-client.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Sep 9 22:36:18 UTC 2022 - Antoine Belvire + +- Initial package: hyperlink-app-client-0.0~20200123. + diff --git a/hyperlink-app-client.spec b/hyperlink-app-client.spec new file mode 100644 index 0000000..8c35372 --- /dev/null +++ b/hyperlink-app-client.spec @@ -0,0 +1,57 @@ +# +# spec file for package hyperlink-app-client +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define commit 211516ea81e9459c0056ade52e991c09ade2909e +Name: hyperlink-app-client +Version: 0.0~20200123 +Release: 0 +Summary: Handler program for the app protocol +License: GPL-3.0-or-later +URL: https://gitlab.com/darnir/%{name} +Source0: https://gitlab.com/darnir/%{name}/-/archive/%{commit}/%{name}-%{version}.tar.bz2 +Source1: app-client.desktop + +%description +The app protocol defines the behaviour of a terminal emulator when opening a +'app://' hyperlink. + +The behaviour is basically to send via TCP/IP the given command to the given +hostname and port. + +This behaviour can be extracted in a separate program. A terminal emulator +can simply invoke this program, passing it the URI on standard input. This way, +the protocol logic does not need to be hardwired into any terminal emulator. + +This package contains the reference implementation of such a handler program. + +%prep +%setup -q -n %{name}-%{commit} + +%build +%set_build_flags +%make_build + +%install +install -D --target-directory %{buildroot}%{_bindir} --mode 0755 app-client +install -D --target-directory %{buildroot}%{_datadir}/applications --mode 0644 %{SOURCE1} + +%files +%license LICENSE +%doc README +%{_bindir}/app-client +%{_datadir}/applications/app-client.desktop