%define _debugsource_template %{nil} %define debug_package %{nil} Name: hwatch Version: 0.4.2 Release: 1%{?dist} Summary: A modern alternative to the watch command License: MIT URL: https://github.com/blacknon/hwatch Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.70 BuildRequires: gcc BuildRequires: bash-completion %description A modern alternative to the watch command, written in Rust. %prep %autosetup -n %{name}-%{version} %build export CARGO_HOME=$PWD/.cargo-home cargo build --release %install install -Dpm 0755 target/release/hwatch %{buildroot}%{_bindir}/hwatch # Install man page install -Dpm 0644 man/hwatch.1 %{buildroot}%{_mandir}/man1/hwatch.1 # Install shell completions install -d %{buildroot}%{bash_completions_dir} install -d %{buildroot}%{_datadir}/zsh/site-functions install -d %{buildroot}%{_datadir}/fish/vendor_completions.d cp completion/bash/hwatch-completion.bash %{buildroot}%{bash_completions_dir}/hwatch cp completion/zsh/_hwatch %{buildroot}%{_datadir}/zsh/site-functions/_hwatch cp completion/fish/hwatch.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/hwatch.fish %check test -x %{buildroot}%{_bindir}/hwatch %{buildroot}%{_bindir}/hwatch --version %files %license LICENSE %doc README.md %{_bindir}/hwatch %{_mandir}/man1/hwatch.1* %{bash_completions_dir}/hwatch %{_datadir}/zsh/site-functions/_hwatch %{_datadir}/fish/vendor_completions.d/hwatch.fish %changelog * Sat Jun 13 2026 sachesi - 0.4.2-1 - Initial package for Copr.