diff --git a/docker.changes b/docker.changes index 408e374..408b3fc 100644 --- a/docker.changes +++ b/docker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 24 09:02:03 UTC 2015 - fcastelli@suse.com + +- Build man pages only on platforms where gc compiler is available. + ------------------------------------------------------------------- Mon Jun 22 08:48:11 UTC 2015 - fcastelli@suse.com diff --git a/docker.spec b/docker.spec index e417064..d4a4840 100644 --- a/docker.spec +++ b/docker.spec @@ -55,8 +55,8 @@ BuildRequires: glibc-devel-static BuildRequires: gcc5-go >= 5.0 %else BuildRequires: go >= 1.4 -%endif BuildRequires: go-go-md2man +%endif BuildRequires: libapparmor-devel BuildRequires: libbtrfs-devel >= 3.8 BuildRequires: procps @@ -155,8 +155,10 @@ export DOCKER_GITCOMMIT=%{git_version} EOF ) > docker_build_env . ./docker_build_env +%ifnarch ppc ppc64 s390x ppc64p7 ppc64le ./hack/make.sh dynbinary man/md2man-all.sh +%endif # remove other than systemd # otherwise the resulting package will have extra requires rm -rf hack/make/.build-deb @@ -198,11 +200,13 @@ install -D -m 644 %SOURCE100 %{buildroot}/var/adm/fillup-templates/sysconfig.doc install -D -m 644 %SOURCE4 %{buildroot}/var/adm/fillup-templates/sysconfig.docker %endif +%ifnarch ppc ppc64 s390x ppc64p7 ppc64le # install manpages install -d %{buildroot}%{_mandir}/man1 install -p -m 644 man/man1/*.1 %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_mandir}/man5 install -p -m 644 man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5 +%endif %pre echo "creating group docker..." @@ -230,9 +234,11 @@ groupadd -r docker 2>/dev/null || : %{_unitdir}/%{name}.socket %{_prefix}/lib/udev/rules.d/80-%{name}.rules /var/adm/fillup-templates/sysconfig.docker +%ifnarch ppc ppc64 s390x ppc64p7 ppc64le %{_mandir}/man1/docker-*.1.gz %{_mandir}/man1/docker.1.gz %{_mandir}/man5/Dockerfile.5.gz +%endif %files bash-completion %defattr(-,root,root)