public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kryoptic] rawhide: Build manpages with go-md2man
@ 2026-11-10 13:02 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-10 13:02 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-10 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 13:02 [rpms/kryoptic] rawhide: Build manpages with go-md2man Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox