From d025e7c7324e0634733d083524bcca76422cd64f556609c72fa1485c79015201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Tue, 6 Jun 2023 13:13:04 +0000 Subject: [PATCH] Make libcontainers-common require libcontainers-policy and leave it for the distro to pick OBS-URL: https://build.opensuse.org/package/show/devel:microos/libcontainers-common?expand=0&rev=22 --- libcontainers-common.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libcontainers-common.spec b/libcontainers-common.spec index f816665..76d3e2d 100644 --- a/libcontainers-common.spec +++ b/libcontainers-common.spec @@ -57,8 +57,7 @@ Requires(post): %{_bindir}/grep Requires(post): %{_bindir}/sed # add SLE-specific mounts for only SLES systems Requires: (libcontainers-sles-mounts if sles-release) -Requires: (libcontainers-openSUSE-policy if openSUSE-release) -Requires: (libcontainers-default-policy if sles-release) +Requires: libcontainers-policy >= %{version} Provides: libcontainers-image = %{version} Provides: libcontainers-storage = %{version} Obsoletes: libcontainers-image < %{version} @@ -76,22 +75,24 @@ Summary: Default mounts for SLE distributions Updates /etc/containers/mounts.conf with default mounts for SLE distributions %package -n libcontainers-openSUSE-policy -Summary: Enforce image verification for BCI +Summary: Policy to enforce image verification for SLE BCI +Provides: libcontainers-policy = %{version}-%{release} RemovePathPostfixes: .openSUSE Conflicts: libcontainers-default-policy %description -n libcontainers-openSUSE-policy -Updates /etc/containers/policy.json with configuration that enforces image verification for SLE BCI +This package ships a /etc/containers/policy.json which enforces image verification for SLE BCI. %package -n libcontainers-default-policy -Summary: Disable image verification for BCI +Summary: Default containers policy.json +Provides: libcontainers-policy = %{version}-%{release} RemovePathPostfixes: .default Conflicts: libcontainers-openSUSE-policy %description -n libcontainers-default-policy -Disables image verification for BCI +This package ships the default /etc/containers/policy.json %prep %setup -q -Tcq -b0 -b1 -b8