public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/rust-git-absorb] f44: Fix manpage build
Date: Mon, 06 Jul 2026 14:48:22 GMT [thread overview]
Message-ID: <178334930231.1.13135389159668736946.rpms-rust-git-absorb-d252051c0e37@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-git-absorb
Branch : f44
Commit : d252051c0e37ba70b988b005d27cec9d8e8f583b
Author : Timothée Ravier <tim@siosm.fr>
Date : 2026-07-02T17:12:28+02:00
Stats : +28/-13 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-git-absorb/c/d252051c0e37ba70b988b005d27cec9d8e8f583b?branch=f44
Log:
Fix manpage build
---
diff --git a/.gitignore b/.gitignore
index a94249e..65f47e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
/git-absorb-0.6.9.crate
-/git-absorb.1
/git-absorb-0.6.10.crate
/git-absorb-0.6.11.crate
/git-absorb-0.6.12.crate
@@ -7,3 +6,5 @@
/git-absorb-0.6.15.crate
/git-absorb-0.6.16.crate
/git-absorb-0.9.0.crate
+/git-absorb.adoc
+/Makefile
diff --git a/rust-git-absorb.spec b/rust-git-absorb.spec
index 6dc18f5..95b5639 100644
--- a/rust-git-absorb.spec
+++ b/rust-git-absorb.spec
@@ -11,9 +11,11 @@ Summary: Git commit --fixup, but automatic
License: BSD-3-Clause
URL: https://crates.io/crates/git-absorb
Source: %{crates_source}
-Source2: https://github.com/tummychow/git-absorb/raw/%{version}/Documentation/git-absorb.1
+Source2: https://raw.githubusercontent.com/tummychow/git-absorb/refs/tags/%{version}/Documentation/git-absorb.adoc
+Source3: https://raw.githubusercontent.com/tummychow/git-absorb/refs/tags/%{version}/Documentation/Makefile
BuildRequires: cargo-rpm-macros >= 24
+BuildRequires: asciidoc
%global _description %{expand:
Git commit --fixup, but automatic.}
@@ -82,16 +84,19 @@ use the "default" feature of the "%{crate}" crate.
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
-# generate shell completions
+# Generate shell completions
./target/rpm/git-absorb --gen-completions bash > git-absorb.bash
./target/rpm/git-absorb --gen-completions fish > git-absorb.fish
./target/rpm/git-absorb --gen-completions zsh > git-absorb.zsh
+# Generate man page
+cp %{SOURCE2} %{SOURCE3} .
+make git-absorb.1
%install
%cargo_install
-# install manpage
-install -Dpm 644 %{SOURCE2} -t %{buildroot}/%{_mandir}/man1/
-# install shell completions
+# Install manpage
+install -Dpm 644 git-absorb.1 -t %{buildroot}/%{_mandir}/man1/
+# Install shell completions
install -Dpm 0644 git-absorb.bash %{buildroot}/%{bash_completions_dir}/git-absorb
install -Dpm 0644 git-absorb.fish %{buildroot}/%{fish_completions_dir}/git-absorb.fish
install -Dpm 0644 git-absorb.zsh %{buildroot}/%{zsh_completions_dir}/_git-absorb
diff --git a/rust2rpm.toml b/rust2rpm.toml
index fa125ec..b166f6e 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,7 @@
[package]
extra-sources = [
- { number = 2, file = "https://github.com/tummychow/git-absorb/raw/%{version}/Documentation/git-absorb.1" },
+ { number = 2, file = "https://raw.githubusercontent.com/tummychow/git-absorb/refs/tags/%{version}/Documentation/git-absorb.adoc" },
+ { number = 3, file = "https://raw.githubusercontent.com/tummychow/git-absorb/refs/tags/%{version}/Documentation/Makefile" },
]
extra-files = [
"%{_mandir}/man1/git-absorb.1*",
@@ -9,19 +10,26 @@ extra-files = [
"%{zsh_completions_dir}/_git-absorb",
]
+[requires]
+build = [
+ "asciidoc"
+]
+
[scripts]
build.post = [
- "# generate shell completions",
+ "# Generate shell completions",
"./target/rpm/git-absorb --gen-completions bash > git-absorb.bash",
"./target/rpm/git-absorb --gen-completions fish > git-absorb.fish",
"./target/rpm/git-absorb --gen-completions zsh > git-absorb.zsh",
+ "# Generate man page",
+ "cp %{SOURCE2} %{SOURCE3} .",
+ "make git-absorb.1",
]
install.post = [
- "# install manpage",
- "install -Dpm 644 %{SOURCE2} -t %{buildroot}/%{_mandir}/man1/",
- "# install shell completions",
+ "# Install manpage",
+ "install -Dpm 644 git-absorb.1 -t %{buildroot}/%{_mandir}/man1/",
+ "# Install shell completions",
"install -Dpm 0644 git-absorb.bash %{buildroot}/%{bash_completions_dir}/git-absorb",
"install -Dpm 0644 git-absorb.fish %{buildroot}/%{fish_completions_dir}/git-absorb.fish",
"install -Dpm 0644 git-absorb.zsh %{buildroot}/%{zsh_completions_dir}/_git-absorb",
]
-
diff --git a/sources b/sources
index a4de6ff..4c4f426 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
SHA512 (git-absorb-0.9.0.crate) = 7f64d9cba301a8ba3fd68f1223fb852df3d7be22f563c85362e79bd4e5108648337321c27b477039ba23e594df7be4d39adbf37d8db039993f1f51ec0b5c8294
-SHA512 (git-absorb.1) = bc813f538beb4b67f2a0bc42f3da5ffde7233eb355b74d87eccd3d6b2d52d9104614cfdd08081ab9b111c8d0d603eaf70c17c5aa477123f40dcb96add24dcbb2
+SHA512 (git-absorb.adoc) = 0033d6312e961e8f5948d8980f20ebe45fb58b331071d787e2dc83dc657f6ec0fcb0fdade90be9d9fb22d6c0849b270b85e916c700cae6610da52797b5bfb05a
+SHA512 (Makefile) = 663e8c31f273a01fdbec88bc01af1cbe05bd9ede96dc8eb3a36c325b25b398429301af117d36dca653c02373fe3c9642f455b85e08720bd7a3967a90cd02efc4
reply other threads:[~2026-07-06 14:48 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=178334930231.1.13135389159668736946.rpms-rust-git-absorb-d252051c0e37@fedoraproject.org \
--to=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