forked from pool/libcontainers-common
Accepting request 1087430 from devel:microos
OBS-URL: https://build.opensuse.org/request/show/1087430 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcontainers-common?expand=0&rev=60
This commit is contained in:
commit
2efb6e4f04
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 16 12:51:34 UTC 2023 - Danish Prakash <danish.prakash@suse.com>
|
||||||
|
|
||||||
|
- Introduce new subpackage that adds SLE-specific mounts only
|
||||||
|
on SLE systems (if sles-release) hence avoiding superfluous
|
||||||
|
warnings on non-SLE systems while running podman commands.
|
||||||
|
(bsc#1211124)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 26 12:43:41 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
Wed Apr 26 12:43:41 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ Source11: https://raw.githubusercontent.com/containers/shortnames/v%{short
|
|||||||
BuildRequires: go-go-md2man
|
BuildRequires: go-go-md2man
|
||||||
Requires(post): %{_bindir}/grep
|
Requires(post): %{_bindir}/grep
|
||||||
Requires(post): %{_bindir}/sed
|
Requires(post): %{_bindir}/sed
|
||||||
|
# add SLE-specific mounts for only SLES systems
|
||||||
|
Requires: (libcontainers-sles-mounts if sles-release)
|
||||||
Provides: libcontainers-image = %{version}
|
Provides: libcontainers-image = %{version}
|
||||||
Provides: libcontainers-storage = %{version}
|
Provides: libcontainers-storage = %{version}
|
||||||
Obsoletes: libcontainers-image < %{version}
|
Obsoletes: libcontainers-image < %{version}
|
||||||
@ -64,6 +66,12 @@ BuildArch: noarch
|
|||||||
Configuration files and manpages shared by tools that are based on the
|
Configuration files and manpages shared by tools that are based on the
|
||||||
github.com/containers libraries, such as Buildah, CRI-O, Podman and Skopeo.
|
github.com/containers libraries, such as Buildah, CRI-O, Podman and Skopeo.
|
||||||
|
|
||||||
|
%package -n libcontainers-sles-mounts
|
||||||
|
Summary: Default mounts for SLE distributions
|
||||||
|
|
||||||
|
%description -n libcontainers-sles-mounts
|
||||||
|
Updates /etc/containers/mounts.conf with default mounts for SLE distributions
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -Tcq -b0 -b1 -b8
|
%setup -q -Tcq -b0 -b1 -b8
|
||||||
# copy the LICENSE file in the build root
|
# copy the LICENSE file in the build root
|
||||||
@ -95,14 +103,12 @@ cd common-%{commonver}
|
|||||||
go-md2man -in pkg/hooks/docs/oci-hooks.5.md -out pkg/hooks/docs/oci-hooks.5
|
go-md2man -in pkg/hooks/docs/oci-hooks.5.md -out pkg/hooks/docs/oci-hooks.5
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if 0%{?is_opensuse}
|
# These would only be used on SLE-systems
|
||||||
# no default mounts
|
# via libcontainers-sles-mounts subpackage
|
||||||
%else
|
|
||||||
cat >>%{SOURCE5} <<EOL
|
cat >>%{SOURCE5} <<EOL
|
||||||
%{_sysconfdir}/SUSEConnect:%{_sysconfdir}/SUSEConnect
|
%{_sysconfdir}/SUSEConnect:%{_sysconfdir}/SUSEConnect
|
||||||
%{_sysconfdir}/zypp/credentials.d/SCCcredentials:%{_sysconfdir}/zypp/credentials.d/SCCcredentials
|
%{_sysconfdir}/zypp/credentials.d/SCCcredentials:%{_sysconfdir}/zypp/credentials.d/SCCcredentials
|
||||||
EOL
|
EOL
|
||||||
%endif
|
|
||||||
|
|
||||||
cd common-%{commonver}
|
cd common-%{commonver}
|
||||||
%make_build docs
|
%make_build docs
|
||||||
@ -158,8 +164,6 @@ sed -i 's/ostree_repo = ""/\#ostree_repo = ""/g' %{_sysconfdir}/containers/stora
|
|||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
||||||
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/mounts.conf
|
|
||||||
%{_datadir}/containers/mounts.conf
|
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/seccomp.json
|
%config(noreplace) %{_sysconfdir}/containers/seccomp.json
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
||||||
@ -171,4 +175,8 @@ sed -i 's/ostree_repo = ""/\#ostree_repo = ""/g' %{_sysconfdir}/containers/stora
|
|||||||
%{_mandir}/man5/*.5%{?ext_man}
|
%{_mandir}/man5/*.5%{?ext_man}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
%files -n libcontainers-sles-mounts
|
||||||
|
%config(noreplace) %{_sysconfdir}/containers/mounts.conf
|
||||||
|
%{_datadir}/containers/mounts.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user