2018-03-23 10:32:36 +01:00
|
|
|
#
|
|
|
|
# spec file for package alacritty
|
|
|
|
#
|
2021-01-03 10:11:15 +01:00
|
|
|
# Copyright (c) 2021 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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: alacritty
|
2021-08-09 14:41:42 +02:00
|
|
|
Version: 0.9.0
|
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
|
2021-01-03 10:11:15 +01:00
|
|
|
URL: https://github.com/alacritty/alacritty
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2018-03-23 10:32:36 +01:00
|
|
|
Source1: vendor.tar.xz
|
2021-10-02 14:36:03 +02:00
|
|
|
Source2: cargo_config
|
2020-01-06 06:19:53 +01:00
|
|
|
Source3: README.suse-maint
|
2021-10-02 14:36:03 +02:00
|
|
|
BuildRequires: cargo-packaging
|
2018-03-23 10:32:36 +01:00
|
|
|
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
|
2021-08-09 14:41:42 +02:00
|
|
|
BuildRequires: libxkbcommon-devel
|
2019-04-10 03:32:09 +02:00
|
|
|
BuildRequires: pkgconfig
|
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
|
2021-01-03 19:15:56 +01:00
|
|
|
%autosetup -a1
|
2021-10-02 14:36:03 +02:00
|
|
|
mkdir .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
2018-03-23 10:32:36 +01:00
|
|
|
|
|
|
|
%build
|
2021-02-20 23:46:53 +01:00
|
|
|
%{cargo_build}
|
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
|