SHA256
1
0
forked from pool/alacritty
alacritty/alacritty.spec
Marcus Meissner 32c39ea1dc Accepting request 1041273 from home:uncomfyhalomacro:branches:X11:terminals
- Update to version 0.11.0:
  * Packaging
    - Minimum Rust version has been bumped to 1.57.0
    - Renamed io.alacritty.Alacritty.appdata.xml to org.alacritty.Alacritty.appdata.xml
    - Renamed io.alacritty to org.alacritty for Alacritty.app
  * Fixed
    - Creating the IPC socket failing if WAYLAND_DISPLAY contains an absolute path
    - Crash when resetting the terminal while in vi mode
    - font.glyph_offset not live reloading
    - Failure when running on 10-bit color system
    - The colors being slightly different when using srgb displays on macOS
    - Vi cursor blinking not reset when navigating in search
    - Scrolling and middle-clicking modifying the primary selection
    - Bottom gap for certain builtin box drawing characters
    - Incorrect built-in glyphs for U+2567 and U+2568
    - Character mappings in the DEC special graphics character set (line drawing)
    - Window flickering on resize on Wayland
    - Unnecessary config reload when using /dev/null as a config file
    - Windows Open Alacritty Here on root of drive displaying error
    - On macOS, font.use_thin_strokes did not work since Big Sur
    - On macOS, trying to load a disabled font would crash
    - On macOS, Alacritty sessions did not appear in the list of tty sessions for w and who
    - Cursor not hiding on GNOME Wayland
    - Font having different scale factor after monitor powering off/on on X11
    - Viewport not updating after opening a new tabbed window on macOS
    - Terminal not exiting sometimes after closing all windows on macOS
    - CPU usage spikes due to mouse movements for unfocused windows on X11/Windows
    - First window on macOS not tabbed with system prefer tabs setting
    - Window being treaten as focused by default on Wayland
  * Removed
    - font.use_thin_strokes config field; to use thin strokes on macOS, set
    - AppleFontSmoothing to 0 with $ defaults write -g AppleFontSmoothing -int 0
- Add _constraints file. 8GB of RAM to build alacritty

OBS-URL: https://build.opensuse.org/request/show/1041273
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/alacritty?expand=0&rev=60
2022-12-14 10:03:29 +00:00

121 lines
3.7 KiB
RPMSpec

#
# spec file for package alacritty
#
# Copyright (c) 2022 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/
#
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
Name: alacritty
Version: 0.11.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
Source2: cargo_config
Source3: README.suse-maint
BuildRequires: cargo-packaging
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: freetype-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: pkgconfig
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
mkdir .cargo
cp %{SOURCE2} .cargo/config
%build
RUSTFLAGS=%{rustflags} %{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/org.alacritty.Alacritty.appdata.xml \
%{buildroot}/%{_datadir}/appdata/org.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/org.alacritty.Alacritty.appdata.xml
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh
%changelog