From 5b5bf8a9daedfc47661becb1b12eccc322c90a56 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 26 Apr 2016 17:32:37 -0400 Subject: [PATCH] Conditionally run go-md2man For some reason not actually explained in upstream commit eab73f3d514bc515c1eeb19926cb781410fd5de9, the man page was committed in troff format to git directly, and is now illegible gook. A consequence of this is we no longer need to run go-md2man (the invocation of which should have been in the upstream Makefile directly anyways). --- skopeo.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skopeo.spec b/skopeo.spec index 405c6e8..ec2e8c8 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -181,7 +181,9 @@ export GOPATH=$(pwd):$(pwd)/vendor:%{gopath} export GO15VENDOREXPERIMENT=1 %gobuild -o skopeo . -go-md2man -in man/skopeo.1.md -out skopeo.1 +if test -f man/skopeo.1.md; then + go-md2man -in man/skopeo.1.md -out skopeo.1 +fi %install mkdir -p %{buildroot}/%{_mandir}/man1