temporarily remove dockerfile manpages

https://github.com/fedora-silverblue/issue-tracker/issues/239

Handle this better in a subsequent build.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-02-14 14:06:12 -05:00
parent 7e9a7f0daf
commit 418b00e604

View File

@ -110,6 +110,8 @@ install -Dp -m0644 RPM-GPG-KEY-redhat-release -t %{buildroot}%{_sysconfdir}/pki/
install -Dp -m0644 registry.access.redhat.com.yaml -t %{buildroot}%{_sysconfdir}/containers/registries.d install -Dp -m0644 registry.access.redhat.com.yaml -t %{buildroot}%{_sysconfdir}/containers/registries.d
install -Dp -m0644 registry.redhat.io.yaml -t %{buildroot}%{_sysconfdir}/containers/registries.d install -Dp -m0644 registry.redhat.io.yaml -t %{buildroot}%{_sysconfdir}/containers/registries.d
rm man5/{.dockerignore,dockerignore}.5
# install manpages # install manpages
for FILE in $(ls -a man5 | grep 5); do for FILE in $(ls -a man5 | grep 5); do
install -Dp -m0644 man5/$FILE -t %{buildroot}%{_mandir}/man5 install -Dp -m0644 man5/$FILE -t %{buildroot}%{_mandir}/man5
@ -127,20 +129,6 @@ ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pk
ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm
ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/redhat.repo ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/redhat.repo
%post
if [[ ! -f %{_mandir}/man5/Dockerfile.5.gz ]]; then
echo .so %{_mandir}/man5/Containerfile.5 > %{_mandir}/man5/Dockerfile.5
gzip %{_mandir}/man5/Dockerfile.5
fi
if [[ ! -f %{_mandir}/man5/dockerignore.5.gz ]]; then
echo .so %{_mandir}/man5/containerignore.5 > %{_mandir}/man5/dockerignore.5
gzip %{_mandir}/man5/dockerignore.5
fi
if [[ ! -f %{_mandir}/man5/.dockerignore.5.gz ]]; then
echo .so %{_mandir}/man5/containerignore.5 > %{_mandir}/man5/.dockerignore.5
gzip %{_mandir}/man5/.dockerignore.5
fi
%files %files
%dir %{_sysconfdir}/containers %dir %{_sysconfdir}/containers
%dir %{_sysconfdir}/containers/certs.d %dir %{_sysconfdir}/containers/certs.d
@ -158,9 +146,6 @@ fi
%ghost %{_sysconfdir}/containers/storage.conf %ghost %{_sysconfdir}/containers/storage.conf
%ghost %{_sysconfdir}/containers/containers.conf %ghost %{_sysconfdir}/containers/containers.conf
%dir %{_sharedstatedir}/containers/sigstore %dir %{_sharedstatedir}/containers/sigstore
%ghost %{_mandir}/man5/Dockerfile.5.gz
%ghost %{_mandir}/man5/dockerignore.5.gz
%ghost %{_mandir}/man5/.dockerignore.5.gz
%{_mandir}/man5/Containerfile.5.gz %{_mandir}/man5/Containerfile.5.gz
%{_mandir}/man5/containerignore.5.gz %{_mandir}/man5/containerignore.5.gz
%{_mandir}/man5/.containerignore.5.gz %{_mandir}/man5/.containerignore.5.gz