SHA256
1
0
forked from pool/alacritty
alacritty/alacritty.spec
Matthias Eliasson bdc2a64da8 Accepting request 697220 from home:dag_jnsson:branches:X11:terminals
- update to 0.3.1
  Added:
  * Added ScrollLineUp and ScrollLineDown actions for scrolling line by line
  Changed:
  * Alacritty now has a fixed minimum supported Rust version of 1.31.0
  Fixed:
  * Reset scrolling region when the RIS escape sequence is received
  * Subprocess spawning on macros
  * Unnecessary resize at startup
  * Text getting blurry after live-reloading shaders with padding active
  * Resize events are not send to the shell anymore if dimensions haven't 
    changed
  * Minor performance issues with underline and strikeout checks
  * Rare bug which would extend underline and strikeout beyond the end of line
  * Cursors not spanning two lines when over double-width characters
  * Incorrect cursor dimensions if the font offset isn't 0
- refresh vendor.tar.xz
- changed buildrequires to reflect project changes

OBS-URL: https://build.opensuse.org/request/show/697220
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/alacritty?expand=0&rev=15
2019-04-23 18:51:25 +00:00

120 lines
3.7 KiB
RPMSpec

#
# spec file for package alacritty
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: alacritty
Version: 0.3.1
Release: 0
Summary: A GPU-accelerated terminal emulator
License: Apache-2.0
Group: System/X11/Terminals
URL: https://github.com/jwilm/alacritty/
Source: https://github.com/jwilm/alacritty/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: cargo
BuildRequires: cmake
BuildRequires: freetype-devel
BuildRequires: pkgconfig
BuildRequires: rust >= 1.31.0
BuildRequires: rust-std
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}
Group: System/X11/Terminals
Requires: bash-completion
Supplements: packageand(%{name}: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}
Group: System/X11/Terminals
Supplements: packageand(%{name}:fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for alacritty.
%package zsh-completion
Summary: ZSH Completion for %{name}
Group: System/X11/Terminals
Supplements: packageand(%{name}:zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for alacritty.
%prep
%setup -q -a1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "./vendor"
EOF
%ifarch aarch64 ppc64le
# 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
%build
export CARGO_HOME=$PWD/cargo-home
cargo build --release %{?_smp_mflags}
%install
export CARGO_HOME=$PWD/cargo-home
cargo install --root=%{buildroot}%{_prefix} --path=.
# rm duplicate license and useless toml file
rm -fr %{buildroot}%{_datadir}
rm %{buildroot}%{_prefix}/.crates.toml
# install man page and completions
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}
%files
%license LICENSE-APACHE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh
%changelog