From 516c851b08b1792bf7f5a89bb92126b067c0b6da Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 23 Mar 2018 09:39:09 +0000 Subject: [PATCH] Accepting request 589745 from home:jubalh I would like to have this in a more official repo than my home. But dont plan to push it into factory (yet). OBS-URL: https://build.opensuse.org/request/show/589745 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=1 --- .gitattributes | 23 ++++++++ kitty-0.8.2-desktopfile-category.patch | 12 ++++ kitty.changes | 4 ++ kitty.spec | 79 ++++++++++++++++++++++++++ v0.8.2.tar.gz | 3 + 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 kitty-0.8.2-desktopfile-category.patch create mode 100644 kitty.changes create mode 100644 kitty.spec create mode 100644 v0.8.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/kitty-0.8.2-desktopfile-category.patch b/kitty-0.8.2-desktopfile-category.patch new file mode 100644 index 0000000..8f7dbf6 --- /dev/null +++ b/kitty-0.8.2-desktopfile-category.patch @@ -0,0 +1,12 @@ +diff -urEbwB kitty-0.8.2/setup.py kitty-0.8.2.new/setup.py +--- kitty-0.8.2/setup.py 2018-03-17 13:15:57.000000000 +0100 ++++ kitty-0.8.2.new/setup.py 2018-03-21 11:23:51.409869542 +0100 +@@ -549,7 +549,7 @@ + TryExec=kitty + Exec=kitty + Icon=kitty +-Categories=System; ++Categories=System;TerminalEmulator; + ''' + ) + # }}} diff --git a/kitty.changes b/kitty.changes new file mode 100644 index 0000000..f165d33 --- /dev/null +++ b/kitty.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Mar 20 16:07:57 UTC 2018 - mvetter@suse.com + +- Initial package for openSUSE in version 0.8.2 diff --git a/kitty.spec b/kitty.spec new file mode 100644 index 0000000..5fc535b --- /dev/null +++ b/kitty.spec @@ -0,0 +1,79 @@ +# +# spec file for package kitty +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: kitty +Version: 0.8.2 +Release: 0 +Summary: A cross-platform, fast, feature full, GPU based terminal emulator +License: GPL-3.0-only +Group: System/X11/Terminals +URL: https://github.com/kovidgoyal/kitty +Source: https://github.com/kovidgoyal/kitty/archive/v%{version}.tar.gz +# https://github.com/kovidgoyal/kitty/pull/410 +Patch0: kitty-0.8.2-desktopfile-category.patch +BuildRequires: ImageMagick-devel +BuildRequires: Mesa-libGL-devel +BuildRequires: fontconfig-devel +BuildRequires: freetype2-devel +BuildRequires: harfbuzz-devel >= 1.5.0 +BuildRequires: libXcursor-devel +BuildRequires: libXi-devel +BuildRequires: libXinerama-devel +BuildRequires: libXrandr-devel +BuildRequires: libpng16-compat-devel +BuildRequires: libwayland-egl-devel +BuildRequires: libxkbcommon-devel +BuildRequires: libxkbcommon-x11-devel +# for 'tic' +BuildRequires: ncurses-devel +BuildRequires: pkgconfig +BuildRequires: python3-devel >= 3.5 +BuildRequires: wayland-devel +BuildRequires: wayland-protocols-devel +BuildRequires: zlib-devel + +%description +A terminal emulator that uses OpenGL for rendering. +Supports modern terminal features like: graphics, unicode, +true-color, OpenType ligatures, mouse protocol, focus tracking, +bracketed paste and so on. And which can be controlled by scripts. + +%prep +%setup -q +%patch0 -p1 +find . -type f -exec sed -i "s/#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/" {} + + +%build +python3 setup.py --verbose linux-package --prefix %{buildroot}%{_prefix} + +%install +# yes they have a makefile, no they dont use it properly +# no they dont have a make install + +%files +%license LICENSE +%doc CHANGELOG.rst README.asciidoc +%{_bindir}/kitty +%{_prefix}/lib/kitty +%{_datadir}/applications/kitty.desktop +%dir %{_datadir}/icons/hicolor/ +%dir %{_datadir}/icons/hicolor/256x256/ +%{_datadir}/icons/hicolor/256x256/apps/ +%{_datadir}/terminfo/x/xterm-kitty + +%changelog diff --git a/v0.8.2.tar.gz b/v0.8.2.tar.gz new file mode 100644 index 0000000..a4d058c --- /dev/null +++ b/v0.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:083d89d12b94ba27eccfe89d31988b633d2f2c93f442d29306b652f16c3c9470 +size 3281308