public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kryoptic] rawhide: Build manpages with go-md2man
Date: Tue, 10 Nov 2026 13:02:39 GMT [thread overview]
Message-ID: <179431575960.1.5401139309057243741.rpms-kryoptic-36b7f69e9ce4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kryoptic
Branch : rawhide
Commit : 36b7f69e9ce49bd560a11ff415bc20c5430aa14c
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-02T15:35:49-05:00
Stats : +18/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kryoptic/c/36b7f69e9ce49bd560a11ff415bc20c5430aa14c?branch=rawhide
Log:
Build manpages with go-md2man
pandoc is not included in RHEL, but go-md2man is disabled on ix86.
---
diff --git a/kryoptic.spec b/kryoptic.spec
index 3f6bc56..da65c8a 100644
--- a/kryoptic.spec
+++ b/kryoptic.spec
@@ -4,6 +4,10 @@
# Enable gpg signature verification by default
%bcond gpgcheck 1
+%ifnarch %{ix86}
+%bcond manpages 1
+%endif
+
%global soname libkryoptic_pkcs11
%global features kryoptic-lib/nssdb,kryoptic-lib/pqc,kryoptic-lib/standard,kryoptic-lib/dynamic,profiles
@@ -39,7 +43,9 @@ Patch: %{url}/pull/548.patch
BuildRequires: cargo-rpm-macros >= 26
BuildRequires: openssl-devel
-BuildRequires: pandoc
+%if %{with manpages}
+BuildRequires: go-md2man
+%endif
%if %{with gpgcheck}
BuildRequires: openpgpverify
%endif
@@ -73,9 +79,11 @@ export CONFDIR=%{_sysconfdir}
%{cargo_license_summary -f %{features}}
%{cargo_license -f %{features}} > LICENSE.dependencies
-pandoc -s -t man doc/kryoptic.conf.man.md -o kryoptic.conf.5
-pandoc -s -t man doc/kryoptic.man.md -o kryoptic.7
-pandoc -s -t man tools/softhsm/softhsm_migrate.man.md -o softhsm_migrate.1
+%if %{with manpages}
+go-md2man -in doc/kryoptic.conf.man.md -out kryoptic.conf.5
+go-md2man -in doc/kryoptic.man.md -out kryoptic.7
+go-md2man -in tools/softhsm/softhsm_migrate.man.md -out softhsm_migrate.1
+%endif
%install
install -Dp target/rpm/softhsm_migrate $RPM_BUILD_ROOT%{_bindir}/softhsm_migrate
@@ -84,9 +92,11 @@ install -Dp target/rpm/%{soname}.so $RPM_BUILD_ROOT%{_libdir}/pkcs11/%{soname}.s
mkdir -p $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/
echo "module: %{soname}.so" > $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/kryoptic.module
+%if %{with manpages}
install -Dp -m 0644 kryoptic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/kryoptic.conf.5
install -Dp -m 0644 kryoptic.7 $RPM_BUILD_ROOT%{_mandir}/man7/kryoptic.7
install -Dp -m 0644 softhsm_migrate.1 $RPM_BUILD_ROOT%{_mandir}/man1/softhsm_migrate.1
+%endif
%if %{with check}
%check
@@ -104,13 +114,17 @@ export TEST_PKCS11_MODULE=$RPM_BUILD_ROOT%{_libdir}/pkcs11/%{soname}.so
%dir %{_datadir}/p11-kit
%dir %{_datadir}/p11-kit/modules
%{_datadir}/p11-kit/modules/kryoptic.module
+%if %{with manpages}
%{_mandir}/man5/kryoptic.conf.5*
%{_mandir}/man7/kryoptic.7*
+%endif
%files tools
%{_bindir}/softhsm_migrate
+%if %{with manpages}
%{_mandir}/man1/softhsm_migrate.1*
+%endif
%changelog
%autochangelog
reply other threads:[~2026-11-10 13:02 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=179431575960.1.5401139309057243741.rpms-kryoptic-36b7f69e9ce4@fedoraproject.org \
--to=yselkowi@redhat.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