# Repackages upstream's official release .rpm (static binaries), so there is no Rust build in Copr. %global debug_package %{nil} %global __strip /bin/true %global __os_install_post %{nil} %global __arch_install_post %{nil} %global _build_id_links none Name: pay-respects Version: 0.9.0 Release: 2%{?dist} Summary: Command suggestions, command-not-found and thefuck replacement # The binaries include their Rust crates (mostly MIT and Apache-2.0) License: AGPL-3.0-or-later URL: https://github.com/iffse/pay-respects # Corresponding source: https://github.com/iffse/pay-respects/tree/v%%{version} Source0: pay-respects-%{version}-1.x86_64.rpm ExclusiveArch: x86_64 BuildRequires: cpio BuildRequires: rpm # Upstream's package carries the AI module too; earlier builds here split it out Obsoletes: pay-respects-request-ai < 0.9.0-2 Provides: pay-respects-request-ai = %{version}-%{release} %description Pay Respects suggests corrections for the command that just failed, and for commands that were not found, from a set of rules and installed packages. It works with bash, zsh, fish and other shells; run "pay-respects bash" (or zsh, fish, ...) to get the shell integration snippet. This package installs the official release. It includes the optional module that asks an OpenAI-compatible service for command suggestions, which only does so when an API key is configured. %prep %setup -q -c -T rpm2cpio %{SOURCE0} | cpio -idm --quiet %build # nothing to build %install cp -a usr %{buildroot}/usr %files %license %{_docdir}/pay-respects/LICENSE %{_bindir}/pay-respects %{_bindir}/_pay-respects-module-100-runtime-rules %{_bindir}/_pay-respects-fallback-100-request-ai %{_mandir}/man1/pay-respects.1* %{_mandir}/man5/pay-respects*.5* %changelog %autochangelog