public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sequoia-sqv] epel9: Make installation of shell completions and man pages more robust
@ 2026-10-12 15:22 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-10-12 15:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-sequoia-sqv
Branch : epel9
Commit : 790309acb1ea3fba87c32013ea086f1c36b7d961
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2025-03-27T13:23:24+01:00
Stats : +12/-8 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rust-sequoia-sqv/c/790309acb1ea3fba87c32013ea086f1c36b7d961?branch=epel9
Log:
Make installation of shell completions and man pages more robust
---
diff --git a/rust-sequoia-sqv.spec b/rust-sequoia-sqv.spec
index 6489cda..2411ccf 100644
--- a/rust-sequoia-sqv.spec
+++ b/rust-sequoia-sqv.spec
@@ -71,6 +71,7 @@ License: %{shrink:
%cargo_generate_buildrequires
%build
+export ASSET_OUT_DIR=target/assets
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
@@ -79,13 +80,13 @@ License: %{shrink:
%cargo_install
# install manual pages
mkdir -p %{buildroot}/%{_mandir}/man1
-cp -pav target/release/build/%{crate}-*/out/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/
+cp -pav target/assets/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/
# install shell completions
-install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.bash \
+install -Dpm 0644 target/assets/shell-completions/sqv.bash \
%{buildroot}/%{bash_completions_dir}/sqv.bash
-install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.fish \
+install -Dpm 0644 target/assets/shell-completions/sqv.fish \
%{buildroot}/%{fish_completions_dir}/sqv.fish
-install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/_sqv \
+install -Dpm 0644 target/assets/shell-completions/_sqv \
%{buildroot}/%{zsh_completions_dir}/_sqv
%if %{with check}
diff --git a/rust2rpm.toml b/rust2rpm.toml
index cbc1db3..d8e8d03 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -11,16 +11,19 @@ extra-files = [
]
[scripts]
+build.pre = [
+ "export ASSET_OUT_DIR=target/assets",
+]
install.post = [
"# install manual pages",
"mkdir -p %{buildroot}/%{_mandir}/man1",
- "cp -pav target/release/build/%{crate}-*/out/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/",
+ "cp -pav target/assets/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/",
"# install shell completions",
- "install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.bash \\",
+ "install -Dpm 0644 target/assets/shell-completions/sqv.bash \\",
" %{buildroot}/%{bash_completions_dir}/sqv.bash",
- "install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.fish \\",
+ "install -Dpm 0644 target/assets/shell-completions/sqv.fish \\",
" %{buildroot}/%{fish_completions_dir}/sqv.fish",
- "install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/_sqv \\",
+ "install -Dpm 0644 target/assets/shell-completions/_sqv \\",
" %{buildroot}/%{zsh_completions_dir}/_sqv",
]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-12 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 15:22 [rpms/rust-sequoia-sqv] epel9: Make installation of shell completions and man pages more robust Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox