[packages/conmon] use system go-md2man

atler atler at pld-linux.org
Thu Sep 30 23:12:32 CEST 2021


commit 4e3ace04ebfc321f658307ac8ac25ba8a64d6e70
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Sep 30 23:11:58 2021 +0200

    use system go-md2man

 conmon.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/conmon.spec b/conmon.spec
index e1631ff..4e85b7b 100644
--- a/conmon.spec
+++ b/conmon.spec
@@ -9,6 +9,7 @@ Source0:	https://github.com/containers/conmon/archive/v%{version}/%{name}-%{vers
 # Source0-md5:	e82a8ef3e184db4a5a872e4d0cd7061e
 URL:		https://github.com/containers/conmon
 BuildRequires:	glib2-devel
+BuildRequires:	go-md2man
 BuildRequires:	libseccomp-devel
 BuildRequires:	pkgconfig
 BuildRequires:	systemd-devel
@@ -22,11 +23,19 @@ or crun) for a single container.
 %prep
 %setup -q
 
+%{__rm} -r tools/vendor
+
 %build
+# prevent build of go-md2man
+install -d tools/build
+: > tools/build/go-md2man
 %{__make} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-	LDLAGS="%{rpmldflags}"
+	LDLAGS="%{rpmldflags}" \
+
+%{__make} docs \
+        GOMD2MAN=/usr/bin/go-md2man
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/conmon.git/commitdiff/4e3ace04ebfc321f658307ac8ac25ba8a64d6e70



More information about the pld-cvs-commit mailing list