skip RPM-GPG-KEY-redhat-release installation on non-centos RHEL
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
e41d5ea0cb
commit
3f652c6781
@ -54,7 +54,9 @@ Source16: %{github_containers}/skopeo/%{skopeo_branch}/default.yaml
|
|||||||
Source17: %{github_containers}/skopeo/%{skopeo_branch}/default-policy.json
|
Source17: %{github_containers}/skopeo/%{skopeo_branch}/default-policy.json
|
||||||
Source18: %{github_containers}/storage/%{storage_branch}/docs/containers-storage.conf.5.md
|
Source18: %{github_containers}/storage/%{storage_branch}/docs/containers-storage.conf.5.md
|
||||||
Source19: %{github_containers}/storage/%{storage_branch}/storage.conf
|
Source19: %{github_containers}/storage/%{storage_branch}/storage.conf
|
||||||
|
%if 0%{?centos}
|
||||||
Source20: RPM-GPG-KEY-redhat-release
|
Source20: RPM-GPG-KEY-redhat-release
|
||||||
|
%endif
|
||||||
Source21: registry.access.redhat.com.yaml
|
Source21: registry.access.redhat.com.yaml
|
||||||
Source22: registry.redhat.io.yaml
|
Source22: registry.redhat.io.yaml
|
||||||
Source23: %{github_containers}/common/%{common_branch}/docs/Containerfile.5.md
|
Source23: %{github_containers}/common/%{common_branch}/docs/Containerfile.5.md
|
||||||
@ -92,7 +94,9 @@ cp %{SOURCE16} .
|
|||||||
cp %{SOURCE17} policy.json
|
cp %{SOURCE17} policy.json
|
||||||
cp %{SOURCE18} .
|
cp %{SOURCE18} .
|
||||||
cp %{SOURCE19} .
|
cp %{SOURCE19} .
|
||||||
|
%if 0%{?centos}
|
||||||
cp %{SOURCE20} .
|
cp %{SOURCE20} .
|
||||||
|
%endif
|
||||||
cp %{SOURCE21} .
|
cp %{SOURCE21} .
|
||||||
cp %{SOURCE22} .
|
cp %{SOURCE22} .
|
||||||
cp %{SOURCE23} .
|
cp %{SOURCE23} .
|
||||||
@ -122,11 +126,12 @@ install -Dp -m0644 storage.conf -t %{buildroot}%{_datadir}/containers
|
|||||||
install -Dp -m0644 registries.conf -t %{buildroot}%{_sysconfdir}/containers
|
install -Dp -m0644 registries.conf -t %{buildroot}%{_sysconfdir}/containers
|
||||||
install -Dp -m0644 000-shortnames.conf -t %{buildroot}%{_sysconfdir}/containers/registries.conf.d
|
install -Dp -m0644 000-shortnames.conf -t %{buildroot}%{_sysconfdir}/containers/registries.conf.d
|
||||||
install -Dp -m0644 policy.json -t %{buildroot}%{_sysconfdir}/containers
|
install -Dp -m0644 policy.json -t %{buildroot}%{_sysconfdir}/containers
|
||||||
|
%if 0%{?centos}
|
||||||
install -Dp -m0644 RPM-GPG-KEY-redhat-release -t %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
install -Dp -m0644 RPM-GPG-KEY-redhat-release -t %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
||||||
|
%endif
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
@ -154,7 +159,9 @@ ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secret
|
|||||||
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
|
||||||
|
%if 0%{?centos}
|
||||||
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
%endif
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
||||||
%{_sysconfdir}/containers/registries.d/registry.redhat.io.yaml
|
%{_sysconfdir}/containers/registries.d/registry.redhat.io.yaml
|
||||||
%{_sysconfdir}/containers/registries.d/registry.access.redhat.com.yaml
|
%{_sysconfdir}/containers/registries.d/registry.access.redhat.com.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user