SHA256
1
0
forked from pool/alacritty
alacritty/alacritty.spec
Matthias Eliasson f754cc39ee Accepting request 910821 from home:cyphar
- Update to version 0.9.0.
  * pkg: Minimum Rust version has been bumped to 1.46.0
  * feat: Support for ipfs/ipns URLs
  * feat: Mode field for regex hint bindings
  * fix: Regression in rendering performance with dense grids since 0.6.0
  * fix: Crash/Freezes with partially visible fullwidth characters due to alt screen resize
  * fix: Incorrect vi cursor position after invoking ScrollPage* action
  * fix: Slow PTY read performance with extremely dense grids
  * fix: Crash when resizing during vi mode
  * fix: Unintentional text selection range change after leaving vi mode
  * fix: Deadlock on Windows during high frequency output
  * fix: Search without vi mode not starting at the correct location when scrolled into history
  * fix: Crash when starting a vi mode search from the bottommost line
  * fix: Original scroll position not restored after canceling search
  * fix: Clipboard copy skipping non-empty cells when encountering an interrupted tab character
  * fix: Vi mode cursor moving downward when scrolled in history with active output
  * fix: Crash when moving fullwidth characters off the side of the terminal in insert mode
  * fix: Broken bitmap font rendering with FreeType 2.11+
  * fix: Crash with non-utf8 font paths on Linux
  * fix: Newly installed fonts not rendering until Alacritty restart

OBS-URL: https://build.opensuse.org/request/show/910821
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/alacritty?expand=0&rev=48
2021-08-09 12:41:42 +00:00

130 lines
4.4 KiB
RPMSpec

#
# spec file for package alacritty
#
# Copyright (c) 2021 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/
#
Name: alacritty
Version: 0.9.0
Release: 0
Summary: A GPU-accelerated terminal emulator
License: Apache-2.0
URL: https://github.com/alacritty/alacritty
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source3: README.suse-maint
# cargo vendor supplement
Source99: revendor_source.sh
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: freetype-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: pkgconfig
BuildRequires: rust-packaging
BuildRequires: update-desktop-files
BuildRequires: xclip
BuildRequires: pkgconfig(fontconfig)
%description
Alacritty is a terminal emulator written in Rust that leverages the GPU for
rendering.
%package bash-completion
Summary: Bash Completion for %{name}
Requires: bash-completion
Supplements: (%{name} and bash)
BuildArch: noarch
%description bash-completion
The official bash completion script for alacritty. It includes support
for every argument that can currently be passed to alacritty.
%package fish-completion
Summary: Fish Completion for %{name}
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for alacritty.
%package zsh-completion
Summary: ZSH Completion for %{name}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for alacritty.
%prep
%autosetup -a1
%define cargo_registry $(pwd)/vendor
%{cargo_prep}
%ifarch aarch64 ppc64le riscv64
# Remove checksum of config.guess and config.sub since aarch64 and ppc64le modify them
sed -i 's#"expat/conftools/config.guess":"ebaffe1c6683ae2c3dcabb87825a83b892f00391514756f7640c4a3dcafbad4f",##g' ./vendor/expat-sys/.cargo-checksum.json
sed -i 's#"expat/conftools/config.sub":"523cb028db907d1fbbcecdcac6737f9e2eeba48fb639231dbc5ae69238f276c9",##g' ./vendor/expat-sys/.cargo-checksum.json
%endif
%ifarch riscv64
sed -i -e 's#"config.guess":"e0c1d7ef8ce964fb57c35e7704ae8661d7e4ca87d6a3c18950e503ae26b62319",##' -e 's#"config.sub":"f7e62c3cb15cd5bbc4e7f3617793b227481fc554d39697a9c322a266d20fb626",##' vendor/servo-fontconfig-sys/.cargo-checksum.json
%endif
%build
export CARGO_NET_OFFLINE=true
%{cargo_build}
%install
mkdir -p "%{buildroot}%{_bindir}"
install -D -m 0755 target/release/alacritty %{buildroot}%{_bindir}/alacritty
# rm duplicate license and useless toml file
rm -fr %{buildroot}%{_datadir}
# install man page and completions
install -Dm 0644 extra/linux/Alacritty.desktop %{buildroot}/%{_datadir}/applications/Alacritty.desktop
install -Dm 0644 extra/logo/alacritty-simple.svg %{buildroot}/%{_datadir}/pixmaps/Alacritty.svg
install -Dm 0644 extra/linux/io.alacritty.Alacritty.appdata.xml \
%{buildroot}/%{_datadir}/appdata/io.alacritty.Alacritty.appdata.xml
install -Dm 0644 extra/%{name}.man %{buildroot}/%{_mandir}/man1/%{name}.1
install -Dm 0644 extra/completions/%{name}.bash %{buildroot}/%{_datadir}/bash-completion/completions/%{name}
install -Dm 0644 extra/completions/%{name}.fish %{buildroot}/%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -Dm 0644 extra/completions/_%{name} %{buildroot}/%{_datadir}/zsh/site-functions/_%{name}
# install desktop file
%suse_update_desktop_file Alacritty
%fdupes %{buildroot}
%files
%license LICENSE-APACHE
%doc alacritty.yml CHANGELOG.md CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/applications/Alacritty.desktop
%{_datadir}/pixmaps/Alacritty.svg
%{_datadir}/appdata/io.alacritty.Alacritty.appdata.xml
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh
%changelog