public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-sequoia-sqv] epel9: Make installation of shell completions and man pages more robust
Date: Mon, 12 Oct 2026 15:22:55 GMT [thread overview]
Message-ID: <179181857548.1.3677252298146546247.rpms-rust-sequoia-sqv-790309acb1ea@fedoraproject.org> (raw)
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",
]
reply other threads:[~2026-10-12 15:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179181857548.1.3677252298146546247.rpms-rust-sequoia-sqv-790309acb1ea@fedoraproject.org \
--to=decathorpe@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox