diff --git a/docker.changes b/docker.changes index f103b09..fd80cef 100644 --- a/docker.changes +++ b/docker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 10:02:51 UTC 2015 - dmacvicar@suse.de + +- build and install man pages + ------------------------------------------------------------------- Mon May 18 15:08:59 UTC 2015 - fcastelli@suse.com diff --git a/docker.spec b/docker.spec index 2d83945..75fb827 100644 --- a/docker.spec +++ b/docker.spec @@ -44,6 +44,7 @@ BuildRequires: bash-completion BuildRequires: device-mapper-devel >= 1.2.68 BuildRequires: glibc-devel-static BuildRequires: go >= 1.3 +BuildRequires: go-go-md2man BuildRequires: libapparmor-devel BuildRequires: libbtrfs-devel >= 3.8 BuildRequires: procps @@ -108,6 +109,7 @@ export AUTO_GOPATH=1 export DOCKER_BUILDTAGS="exclude_graphdriver_aufs apparmor selinux" export DOCKER_GITCOMMIT=%{git_version} ./hack/make.sh dynbinary +docs/man/md2man-all.sh %install install -d %{buildroot}%{go_contribdir} @@ -139,6 +141,12 @@ install -D -m 0644 %SOURCE3 %{buildroot}%{_prefix}/lib/udev/rules.d/80-%{name}.r # sysconfig file install -D -m 644 %SOURCE4 %{buildroot}/var/adm/fillup-templates/sysconfig.docker +# install manpages +install -d %{buildroot}%{_mandir}/man1 +install -p -m 644 docs/man/man1/*.1 %{buildroot}%{_mandir}/man1 +install -d %{buildroot}%{_mandir}/man5 +install -p -m 644 docs/man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5 + %pre echo "creating group docker..." groupadd -r docker 2>/dev/null || : @@ -165,6 +173,9 @@ groupadd -r docker 2>/dev/null || : %{_unitdir}/%{name}.socket %{_prefix}/lib/udev/rules.d/80-%{name}.rules /var/adm/fillup-templates/sysconfig.docker +%{_mandir}/man1/docker-*.1.gz +%{_mandir}/man1/docker.1.gz +%{_mandir}/man5/Dockerfile.5.gz %files bash-completion %defattr(-,root,root)