2018-03-23 10:39:09 +01:00
|
|
|
#
|
|
|
|
# spec file for package kitty
|
|
|
|
#
|
2021-04-19 13:54:04 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-03-23 10:39:09 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-04-16 13:50:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-23 10:39:09 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: kitty
|
2021-05-06 09:50:48 +02:00
|
|
|
Version: 0.20.3
|
2018-03-23 10:39:09 +01:00
|
|
|
Release: 0
|
2019-04-23 08:13:31 +02:00
|
|
|
Summary: A GPU-based terminal emulator
|
2018-03-23 10:39:09 +01:00
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: System/X11/Terminals
|
|
|
|
URL: https://github.com/kovidgoyal/kitty
|
2018-04-16 11:53:19 +02:00
|
|
|
Source: https://github.com/kovidgoyal/kitty/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-11-27 10:01:22 +01:00
|
|
|
Patch0: kitty-no-docs.patch
|
2018-03-23 10:39:09 +01:00
|
|
|
BuildRequires: ImageMagick-devel
|
|
|
|
BuildRequires: Mesa-libGL-devel
|
2021-04-16 13:50:24 +02:00
|
|
|
BuildRequires: fdupes
|
2018-03-23 10:39:09 +01:00
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: harfbuzz-devel >= 1.5.0
|
|
|
|
BuildRequires: libXcursor-devel
|
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
2021-04-16 13:50:24 +02:00
|
|
|
BuildRequires: libcanberra-devel
|
|
|
|
BuildRequires: liblcms2-devel
|
2018-03-23 10:39:09 +01:00
|
|
|
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
|
2021-04-16 13:50:24 +02:00
|
|
|
BuildRequires: terminfo
|
2018-03-23 10:39:09 +01:00
|
|
|
BuildRequires: wayland-devel
|
|
|
|
BuildRequires: wayland-protocols-devel
|
|
|
|
BuildRequires: zlib-devel
|
2021-04-16 13:50:24 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
%if 0%{?sle_version} > 150100 || 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: python3-Sphinx >= 1.7
|
|
|
|
%endif
|
2018-03-23 10:39:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A terminal emulator that uses OpenGL for rendering.
|
2019-04-23 08:13:31 +02:00
|
|
|
Supports terminal features like: graphics, Unicode,
|
2018-03-23 10:39:09 +01:00
|
|
|
true-color, OpenType ligatures, mouse protocol, focus tracking,
|
2019-04-23 08:13:31 +02:00
|
|
|
bracketed paste and so on, and which can be controlled by scripts.
|
2018-03-23 10:39:09 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2021-04-16 13:50:24 +02:00
|
|
|
%if 0%{?sle_version} <= 150100 && ! (0%{?suse_version} >= 1550)
|
2018-11-27 10:01:22 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
|
|
|
|
2021-04-16 13:50:24 +02:00
|
|
|
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
|
|
|
|
find . -type f -exec sed -i 's@#!%{_bindir}/env python$@#!%{_bindir}/python@' {} +
|
2018-03-23 10:39:09 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# yes they have a makefile, no they dont use it properly
|
|
|
|
# no they dont have a make install
|
2021-04-16 14:05:52 +02:00
|
|
|
# we used to have this in the build section but since rpm 4.16 buildroot is cleaned
|
|
|
|
python3 setup.py --verbose linux-package --prefix %{buildroot}%{_prefix}
|
2018-03-23 10:39:09 +01:00
|
|
|
|
2021-04-16 13:50:24 +02:00
|
|
|
%fdupes %{buildroot}%{_prefix}/lib
|
2019-05-24 14:41:58 +02:00
|
|
|
|
2018-03-23 10:39:09 +01:00
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.rst README.asciidoc
|
2021-04-16 13:50:24 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_prefix}/lib/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2018-03-23 10:39:09 +01:00
|
|
|
%dir %{_datadir}/icons/hicolor/
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256/
|
|
|
|
%{_datadir}/icons/hicolor/256x256/apps/
|
2021-04-16 13:50:24 +02:00
|
|
|
%{_datadir}/terminfo/x/xterm-%{name}
|
|
|
|
%if 0%{?sle_version} > 150100 || 0%{?suse_version} >= 1550
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%{_datadir}/doc/%{name}
|
2021-05-06 09:50:48 +02:00
|
|
|
%{_mandir}/man5/kitty.conf.5%{?ext_man}
|
2018-11-27 10:01:22 +01:00
|
|
|
%endif
|
2018-03-23 10:39:09 +01:00
|
|
|
|
|
|
|
%changelog
|