Skip to content

Commit d7ee98b

Browse files
committed
update.
1 parent 406eb7b commit d7ee98b

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

package/fedora/hwatch.spec

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: hwatch
22
Version: 0.4.2
3-
Release: 6%{?dist}
3+
Release: 8%{?dist}
44
Summary: Modern watch replacement with history and diff views
55
URL: https://github.com/blacknon/hwatch/
66
# Output of %%{cargo_license_summary}
@@ -32,7 +32,7 @@ License: %{shrink:
3232
}
3333
Source0: https://github.com/blacknon/hwatch/releases/download/%{version}/%{name}-%{version}.tar.gz
3434

35-
%bcond_without check
35+
%bcond check 1
3636

3737
BuildRequires: bash-completion
3838
BuildRequires: cargo-rpm-macros
@@ -58,19 +58,21 @@ commands when output changes.
5858
%cargo_build -a
5959
%cargo_license_summary -a
6060
# Keep a concrete dependency license manifest in the package, similar to helix.
61-
/usr/bin/cargo2rpm --path Cargo.toml license-breakdown --all-features > LICENSE.dependencies
61+
cargo2rpm --path Cargo.toml license-breakdown --all-features > LICENSE.dependencies
6262
test -s LICENSE.dependencies
6363

6464
%install
65-
install -D -m 644 man/hwatch.1 %{buildroot}%{_mandir}/man1/%{name}.1
65+
install -D -m 644 man/hwatch.1 -t %{buildroot}%{_mandir}/man1/
6666
install -D -m 644 completion/bash/%{name}-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
67-
install -D -m 644 completion/fish/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
68-
install -D -m 644 completion/zsh/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
69-
install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
67+
install -D -m 644 completion/fish/%{name}.fish -t %{buildroot}%{_datadir}/fish/vendor_completions.d/
68+
install -D -m 644 completion/zsh/_%{name} -t %{buildroot}%{_datadir}/zsh/site-functions/
69+
install -D -m 0755 target/release/%{name} -t %{buildroot}%{_bindir}/
7070

7171
%check
7272
%if %{with check}
73-
/usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 /usr/bin/cargo test -j%{_smp_build_ncpus} -Z avoid-dev-deps --profile rpm --no-fail-fast --all-features -- --skip test_exec_command_with_force_color_stdout_is_tty --skip test_exec_command_with_force_color_stdin_is_tty
73+
# Skip TTY-sensitive tests because the Fedora build environment does not provide
74+
# a real interactive terminal for them.
75+
CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 cargo test -j%{_smp_build_ncpus} -Z avoid-dev-deps --profile rpm --no-fail-fast --all-features -- --skip test_exec_command_with_force_color_stdout_is_tty --skip test_exec_command_with_force_color_stdin_is_tty
7476
%endif
7577

7678
%files
@@ -83,6 +85,9 @@ install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
8385
%{_datadir}/zsh/site-functions/_%{name}
8486

8587
%changelog
88+
* Fri Jun 05 2026 blacknon <blacknon@orebibou.com> - 0.4.2-8
89+
- Install bash completion under the expected command name.
90+
8691
* Mon Jun 01 2026 blacknon <blacknon@orebibou.com> - 0.4.2-6
8792
- Update the package to follow current Fedora Rust packaging guidance more closely.
8893
- Rewrite the License expression to preserve OR operators for bundled Rust dependencies.

0 commit comments

Comments
 (0)