Name: ttfx Version: 0.4.0 Release: 1%{?dist} Summary: Terminal text effects, a Rust port of terminaltexteffects License: MIT URL: https://github.com/omacom/ttfx Source0: %{name}-%{version}.tar.gz # The x86-64 assembly engine in asm/ is assembled by build.rs with NASM, but # those hand-written objects use absolute addressing and are not position # independent, so they cannot be linked into the PIE executable that Fedora # builds by default. Upstream build.rs falls back to the parity-exact pure # Rust engine with a warning when NASM is absent, and that is what we build # here. Enable the asm engine only once upstream assembles it as PIC. ExclusiveArch: x86_64 %bcond_without asm %if %{with asm} BuildRequires: nasm %endif BuildRequires: cargo BuildRequires: rust %description A fast, parity-exact Rust port of terminaltexteffects (TTE). Applies animated text effects such as fireworks, beams, burn, crumble, matrix and decrypt to text piped on stdin, rendered in the terminal with ANSI escapes. Effects are available as subcommands, for example: echo RakuOS | ttfx fireworks ttfx --random-effect %prep %autosetup -n %{name}-%{version} %build export CARGO_NET_OFFLINE=false cargo build --release --locked %install install -Dpm0755 target/release/ttfx %{buildroot}%{_bindir}/ttfx # clap_complete generates these; only bash and zsh are wired upstream. mkdir -p %{buildroot}%{_datadir}/bash-completion/completions mkdir -p %{buildroot}%{_datadir}/zsh/site-functions target/release/ttfx --print-completion bash > %{buildroot}%{_datadir}/bash-completion/completions/ttfx target/release/ttfx --print-completion zsh > %{buildroot}%{_datadir}/zsh/site-functions/_ttfx install -Dpm0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE install -Dpm0644 NOTICE %{buildroot}%{_datadir}/licenses/%{name}/NOTICE %files %license %{_datadir}/licenses/%{name}/LICENSE %license %{_datadir}/licenses/%{name}/NOTICE %{_bindir}/ttfx %{_datadir}/bash-completion/completions/ttfx %{_datadir}/zsh/site-functions/_ttfx %changelog * Sun Sep 27 2026 mindset - 0.4.0-1 - Initial COPR build from upstream release tag