kitty.spec 4.56 KB
Newer Older
gagbo's avatar
gagbo committed
1
%define version_string 0.12.3
gagbo's avatar
gagbo committed
2 3

%global __python %{__python3}
4
%global git_rev  v%{version_string}
gagbo's avatar
gagbo committed
5 6 7
%global checkout %{git_date}git%(c=%{git_rev}; echo ${c:0:7})

Name:           kitty
gagbo's avatar
gagbo committed
8
Version:        %{version_string}
gagbo's avatar
gagbo committed
9
Release:        1%{?dist}
gagbo's avatar
gagbo committed
10
Summary:        A modern, hack-able, feature full, OpenGL-based terminal emulator
gagbo's avatar
gagbo committed
11 12 13 14

License:        GPLv3
URL:            https://github.com/kovidgoyal/kitty
Source0:        https://github.com/kovidgoyal/%{name}/archive/%{git_rev}.tar.gz
gagbo's avatar
gagbo committed
15
ExclusiveArch:      x86_64
gagbo's avatar
gagbo committed
16

17
BuildRequires: gcc
18 19
BuildRequires: python3-devel >= 3.5.0 harfbuzz-devel >= 1.5.0 zlib pkg-config
BuildRequires: libpng-devel freetype-devel fontconfig-devel libXcursor-devel
gagbo's avatar
gagbo committed
20 21
BuildRequires: libXrandr-devel libXinerama-devel libxkbcommon-x11-devel
BuildRequires: mesa-libGL-devel libXi-devel
22 23 24 25 26 27
# Pip is only used to install python3-sphinx,
# this is probably not the best method
BuildRequires: python3-pip
# Wayland-protocols-devel is probably not used when running on X11
# It's probably better to create 2 packages for X11 and Wayland
BuildRequires: wayland-protocols-devel
gagbo's avatar
gagbo committed
28
# Add (gcc | clang) in the BuildRequires
gagbo's avatar
gagbo committed
29
BuildRequires: dbus-devel
gagbo's avatar
gagbo committed
30

gagbo's avatar
gagbo committed
31 32
Requires: harfbuzz libpng freetype fontconfig

gagbo's avatar
gagbo committed
33 34
%description
kitty - A terminal emulator
gagbo's avatar
gagbo committed
35
* Uses OpenGL for rendering, offloads rendering to the GPU for lower system
gagbo's avatar
gagbo committed
36 37 38
  load and buttery smooth scrolling. Uses threaded rendering
  to minimize input latency.
* Supports all modern terminal features: graphics (images), Unicode,
gagbo's avatar
gagbo committed
39 40 41 42
  true-color, OpenType ligatures, mouse protocol, focus tracking, bracketed
  paste and so on.
* Supports tiling multiple terminal windows side by side in different layouts
  without needing to use an extra program like tmux
gagbo's avatar
gagbo committed
43
* Can be controlled from scripts or the shell prompt, even over SSH.
gagbo's avatar
gagbo committed
44 45 46 47 48
* Has a framework for kittens, small terminal programs that can be used to
  extend kitty’s functionality. For example, they are used for Unicode
  input and URL hints.
* Supports startup sessions which allow you to specify the window/tab
  layout, working directories and programs to run on startup.
gagbo's avatar
gagbo committed
49
* Cross-platform support: kitty currently works on Linux and mac OS, but
gagbo's avatar
gagbo committed
50 51
  because it uses only OpenGL for rendering, it should be trivial to port
  to other platforms.
gagbo's avatar
gagbo committed
52
* Allows you to open the scroll-back buffer in a separate window using
gagbo's avatar
gagbo committed
53 54
  arbitrary programs of your choice. This is useful for browsing the
  history comfortably in a pager or editor.
gagbo's avatar
gagbo committed
55 56 57


%prep
58
%autosetup -v -n %{name}-%{version_string}
gagbo's avatar
gagbo committed
59 60 61


%build
62
pip3 install --user sphinx
63
python3 setup.py --verbose linux-package --debug --libdir-name %{_lib}
gagbo's avatar
gagbo committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/usr
cp -r linux-package/* %{buildroot}/usr


%check


%files
%{_bindir}/kitty
%{_libdir}/kitty/*
%{_datadir}/applications/kitty.desktop
%{_datadir}/terminfo/x/xterm-kitty
%{_datadir}/icons/hicolor/256x256/apps/kitty.png
81
%doc %{_mandir}/man1/kitty.1.gz
82
%doc CHANGELOG.rst README.asciidoc
83
%doc %{_docdir}/kitty
gagbo's avatar
gagbo committed
84 85 86
%license LICENSE

%changelog
gagbo's avatar
gagbo committed
87 88 89
* Tue Oct 02 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.12.3-1
- Upgrade to release 0.12.3

gagbo's avatar
gagbo committed
90 91 92
* Wed Sep 19 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.12.1-1
- Upgrade to release 0.12.1

gagbo's avatar
gagbo committed
93 94
* Tue Sep 04 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.12.0-1
- Upgrade to release 0.12.0
gagbo's avatar
gagbo committed
95
- Add dbus-devel to the BuildRequires
gagbo's avatar
gagbo committed
96

97 98 99
* Wed Jul 11 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.3-2
- Add gcc to BuildRequires

gagbo's avatar
gagbo committed
100 101 102
* Wed Jul 11 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.3-1
- Upgrade to release 0.11.3

gagbo's avatar
gagbo committed
103
* Mon Jul 9 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.2-2
gagbo's avatar
gagbo committed
104 105
- Rebuild to use Python 3.7

106 107 108
* Mon Jul 2 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.2-1
- Upgrade to release 0.11.2

gagbo's avatar
gagbo committed
109
* Sun Jun 17 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.1-1
gagbo's avatar
gagbo committed
110 111
- Upgrade to release 0.11.1

gagbo's avatar
gagbo committed
112 113 114 115
* Tue Jun 12 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.11.0-1
- Upgrade to release 0.11.0

* Wed Jun 6 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.10.1-2
gagbo's avatar
gagbo committed
116 117
- Lint the rpm and specify ExclusiveArch

gagbo's avatar
gagbo committed
118 119 120
* Fri May 25 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.10.1-1
- Upgrade to release 0.10.1

gagbo's avatar
gagbo committed
121 122 123
* Tue May 22 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.10.0-1
- Upgrade to release 0.10.0

gagbo's avatar
gagbo committed
124 125 126
* Fri May 11 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.9.1-1
- Upgrade to release 0.9.1

gagbo's avatar
gagbo committed
127 128 129
* Tue Apr 17 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.9.0-1
- Upgrade to release 0.9.0

gagbo's avatar
gagbo committed
130 131 132
* Tue Apr 3 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.8.4-1
- Upgrade to release 0.8.4

133 134 135
* Thu Mar 29 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.8.3-3
- Include commit 94d248d that fixes startup issue (see issue #421 upstream)

gagbo's avatar
gagbo committed
136 137
* Thu Mar 29 2018 Gerry Agbobada <gagbobada@gmail.com> - 0.8.3-2
- Upgrade to release 0.8.3
gagbo's avatar
gagbo committed
138