From 55d26f3533a36669d25c9ce71d49b5bd03ae6d16 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Tue, 12 Apr 2016 12:31:39 +0200 Subject: Ship man pages too - resolves: #1326115 --- runc.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/runc.spec b/runc.spec index 4b53c08..5875779 100644 --- a/runc.spec +++ b/runc.spec @@ -35,7 +35,7 @@ Epoch: 1 Epoch: 0 %endif Version: 0.0.9 -Release: 0.2.git%{shortcommit}%{?dist} +Release: 0.3.git%{shortcommit}%{?dist} Summary: CLI for running Open Containers License: ASL 2.0 URL: https://%{provider_prefix} @@ -46,6 +46,8 @@ ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}} # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} +BuildRequires: go-md2man + %if ! 0%{?with_bundled} BuildRequires: golang(github.com/Sirupsen/logrus) BuildRequires: golang(github.com/codegangsta/cli) @@ -179,6 +181,13 @@ export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath} install -d -p %{buildroot}%{_bindir} install -p -m 755 bin/%{name} %{buildroot}%{_bindir} +# generate man pages +man/md2man-all.sh + +# install man pages +install -d -p %{buildroot}%{_mandir}/man8 +install -p -m 0644 man/man8/*.8 %{buildroot}%{_mandir}/man8/. + # source codes for building projects %if 0%{?with_devel} install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ @@ -256,6 +265,7 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %license LICENSE %doc MAINTAINERS_GUIDE.md PRINCIPLES.md README.md CONTRIBUTING.md %{_bindir}/%{name} +%{_mandir}/man8/. %if 0%{?with_devel} %files devel -f devel.file-list @@ -272,6 +282,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %changelog +* Tue Apr 12 2016 jchaloup - 1:0.0.9-0.3.git94dc520 +- Ship man pages too + resolves: #1326115 + * Wed Apr 06 2016 jchaloup - 1:0.0.9-0.2.git94dc520 - Extend supported architectures to golang_arches Disable failing test -- cgit