Accepting request 308881 from home:dmacvicar:docker-man

- build and install man pages

OBS-URL: https://build.opensuse.org/request/show/308881
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=7
This commit is contained in:
Flavio Castelli 2015-05-27 10:27:27 +00:00 committed by Git OBS Bridge
parent e72f50b069
commit bc3232817c
2 changed files with 16 additions and 0 deletions

View File

@ -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 Mon May 18 15:08:59 UTC 2015 - fcastelli@suse.com

View File

@ -44,6 +44,7 @@ BuildRequires: bash-completion
BuildRequires: device-mapper-devel >= 1.2.68 BuildRequires: device-mapper-devel >= 1.2.68
BuildRequires: glibc-devel-static BuildRequires: glibc-devel-static
BuildRequires: go >= 1.3 BuildRequires: go >= 1.3
BuildRequires: go-go-md2man
BuildRequires: libapparmor-devel BuildRequires: libapparmor-devel
BuildRequires: libbtrfs-devel >= 3.8 BuildRequires: libbtrfs-devel >= 3.8
BuildRequires: procps BuildRequires: procps
@ -108,6 +109,7 @@ export AUTO_GOPATH=1
export DOCKER_BUILDTAGS="exclude_graphdriver_aufs apparmor selinux" export DOCKER_BUILDTAGS="exclude_graphdriver_aufs apparmor selinux"
export DOCKER_GITCOMMIT=%{git_version} export DOCKER_GITCOMMIT=%{git_version}
./hack/make.sh dynbinary ./hack/make.sh dynbinary
docs/man/md2man-all.sh
%install %install
install -d %{buildroot}%{go_contribdir} 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 # sysconfig file
install -D -m 644 %SOURCE4 %{buildroot}/var/adm/fillup-templates/sysconfig.docker 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 %pre
echo "creating group docker..." echo "creating group docker..."
groupadd -r docker 2>/dev/null || : groupadd -r docker 2>/dev/null || :
@ -165,6 +173,9 @@ groupadd -r docker 2>/dev/null || :
%{_unitdir}/%{name}.socket %{_unitdir}/%{name}.socket
%{_prefix}/lib/udev/rules.d/80-%{name}.rules %{_prefix}/lib/udev/rules.d/80-%{name}.rules
/var/adm/fillup-templates/sysconfig.docker /var/adm/fillup-templates/sysconfig.docker
%{_mandir}/man1/docker-*.1.gz
%{_mandir}/man1/docker.1.gz
%{_mandir}/man5/Dockerfile.5.gz
%files bash-completion %files bash-completion
%defattr(-,root,root) %defattr(-,root,root)