2018-03-23 10:32:36 +01:00
|
|
|
#
|
|
|
|
# spec file for package alacritty
|
|
|
|
#
|
2020-01-24 11:02:18 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-03-23 10:32:36 +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.
|
|
|
|
|
2018-10-27 17:41:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-23 10:32:36 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-01-06 06:19:53 +01:00
|
|
|
# Use hardening ldflags.
|
|
|
|
%global rustflags "-Clink-arg=-Wl,-z,relro,-z,now"
|
|
|
|
|
2018-03-23 10:32:36 +01:00
|
|
|
Name: alacritty
|
2020-06-08 21:37:51 +02:00
|
|
|
Version: 0.4.3
|
2018-03-23 10:32:36 +01:00
|
|
|
Release: 0
|
2018-03-28 14:01:25 +02:00
|
|
|
Summary: A GPU-accelerated terminal emulator
|
2018-03-23 10:32:36 +01:00
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/jwilm/alacritty/
|
2018-10-27 17:41:51 +02:00
|
|
|
Source: https://github.com/jwilm/alacritty/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-03-23 10:32:36 +01:00
|
|
|
Source1: vendor.tar.xz
|
2020-01-06 06:19:53 +01:00
|
|
|
Source2: cargo_config
|
|
|
|
Source3: README.suse-maint
|
2018-03-23 10:32:36 +01:00
|
|
|
BuildRequires: cargo
|
|
|
|
BuildRequires: cmake
|
2019-07-24 21:19:41 +02:00
|
|
|
BuildRequires: fdupes
|
2018-03-23 10:32:36 +01:00
|
|
|
BuildRequires: freetype-devel
|
2019-07-24 21:19:41 +02:00
|
|
|
BuildRequires: libxcb-devel
|
2019-04-10 03:32:09 +02:00
|
|
|
BuildRequires: pkgconfig
|
2020-04-01 09:49:01 +02:00
|
|
|
BuildRequires: rust >= 1.37
|
2019-07-24 21:19:41 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2018-03-23 10:32:36 +01:00
|
|
|
BuildRequires: xclip
|
2019-04-10 03:32:09 +02:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%description
|
2018-03-25 21:00:29 +02:00
|
|
|
Alacritty is a terminal emulator written in Rust that leverages the GPU for
|
|
|
|
rendering.
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Requires: bash-completion
|
2020-06-08 21:37:51 +02:00
|
|
|
Supplements: (%{name} and bash)
|
2018-03-23 10:32:36 +01:00
|
|
|
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}
|
2020-06-08 21:37:51 +02:00
|
|
|
Supplements: (%{name} and fish)
|
2018-03-23 10:32:36 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
The official fish completion script for alacritty.
|
|
|
|
|
|
|
|
%package zsh-completion
|
|
|
|
Summary: ZSH Completion for %{name}
|
2020-06-08 21:37:51 +02:00
|
|
|
Supplements: (%{name} and zsh)
|
2018-03-23 10:32:36 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
The official zsh completion script for alacritty.
|
|
|
|
|
|
|
|
%prep
|
2020-01-06 06:19:53 +01:00
|
|
|
%setup -qa1
|
|
|
|
mkdir .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
2018-10-27 17:41:51 +02:00
|
|
|
|
2018-04-30 14:13:24 +02:00
|
|
|
%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
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%build
|
2020-01-06 06:19:53 +01:00
|
|
|
RUSTFLAGS=%{rustflags} cargo build --release --bin alacritty
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%install
|
2020-01-06 06:19:53 +01:00
|
|
|
mkdir -p "%{buildroot}%{_bindir}"
|
|
|
|
install -D -m 0755 target/release/alacritty %{buildroot}%{_bindir}/alacritty
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
# rm duplicate license and useless toml file
|
|
|
|
rm -fr %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
# install man page and completions
|
2020-04-01 09:49:01 +02:00
|
|
|
install -Dm 0644 extra/linux/Alacritty.desktop %{buildroot}/%{_datadir}/applications/Alacritty.desktop
|
2020-01-06 06:19:53 +01:00
|
|
|
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
|
2019-04-10 14:19:46 +02:00
|
|
|
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}
|
2018-03-23 10:32:36 +01:00
|
|
|
|
2019-07-24 21:19:41 +02:00
|
|
|
# install desktop file
|
|
|
|
%suse_update_desktop_file Alacritty
|
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
2018-03-23 10:32:36 +01:00
|
|
|
%files
|
|
|
|
%license LICENSE-APACHE
|
2020-01-06 06:19:53 +01:00
|
|
|
%doc alacritty.yml CHANGELOG.md CONTRIBUTING.md README.md
|
2018-03-23 10:32:36 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2019-07-24 21:19:41 +02:00
|
|
|
%{_datadir}/applications/Alacritty.desktop
|
2020-01-06 06:19:53 +01:00
|
|
|
%{_datadir}/pixmaps/Alacritty.svg
|
|
|
|
%{_datadir}/appdata/io.alacritty.Alacritty.appdata.xml
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion
|
|
|
|
|
|
|
|
%files fish-completion
|
|
|
|
%{_datadir}/fish
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%{_datadir}/zsh
|
|
|
|
|
|
|
|
%changelog
|