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).
This commit is contained in:
Colin Walters 2016-04-26 17:32:37 -04:00
parent 98ac347767
commit 5b5bf8a9da

View File

@ -181,7 +181,9 @@ export GOPATH=$(pwd):$(pwd)/vendor:%{gopath}
export GO15VENDOREXPERIMENT=1 export GO15VENDOREXPERIMENT=1
%gobuild -o skopeo . %gobuild -o skopeo .
if test -f man/skopeo.1.md; then
go-md2man -in man/skopeo.1.md -out skopeo.1 go-md2man -in man/skopeo.1.md -out skopeo.1
fi
%install %install
mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_mandir}/man1