%global debug_package %{nil} Name: vivid Version: 0.11.1 Release: 1%{?dist} Summary: A themeable LS_COLORS generator with a rich filetype database License: MIT AND Apache-2.0 URL: https://github.com/sharkdp/vivid Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.bz2 BuildRequires: rust >= 1.88.0 BuildRequires: cargo BuildRequires: gcc %description vivid is a generator for the LS_COLORS environment variable that controls the colorized output of ls, tree, fd, bat, exa and many other tools. It uses a YAML configuration format and comes with many built-in themes. %prep %autosetup tar -xf %{S:1} mkdir -p .cargo cat > .cargo/config.toml << 'EOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build cargo build --release --frozen 2>&1 %install install -Dpm 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # Install themes and filetypes database install -d %{buildroot}%{_datadir}/%{name} cp -r themes %{buildroot}%{_datadir}/%{name}/ cp -r config %{buildroot}%{_datadir}/%{name}/ %check target/release/%{name} --version | grep %{version} %files %license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGELOG.md %{_bindir}/%{name} %{_datadir}/%{name}/ %changelog * Tue Jul 07 2026 Yonghang Wang - 0.11.1-1 - Initial package for AL2023 (COPR al-stream-2023)