%global debug_package %{nil} Name: ouch Version: 0.6.1 Release: 2%{?dist} Summary: Painless compression and decompression in the terminal. License: MIT URL: https://github.com/ouch-org/ouch Source0: %{url}/archive/refs/tags/%{version}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc-c++ BuildRequires: clang BuildRequires: clang-devel BuildRequires: bzip3-devel BuildRequires: bzip2-devel BuildRequires: xz-devel BuildRequires: zlib-ng-compat-devel Requires: bzip3-libs Requires: bzip2-libs Requires: xz-libs Requires: zlib-ng-compat %description ouch stands for Obvious Unified Compression Helper. It's a CLI tool for compressing and decompressing for various formats. %prep %autosetup -p1 %build cargo build --release %install install -Dm755 target/release/%{name} -t %{buildroot}%{_bindir} strip --strip-all %{buildroot}%{_bindir}/* %check %if %{with test} %{cargo_test} %endif %files %license LICENSE* %doc README* %{_bindir}/%{name} %changelog