diff --git a/moby.spec b/moby.spec index 17faa99e321245d129c7cc58ea5235d9e2e429d2..f50f96967c05419b29e429d2dd8a9855ae1cc152 100644 --- a/moby.spec +++ b/moby.spec @@ -7,7 +7,7 @@ Name: docker Version: 25.0.3 -Release: 12 +Release: 13 Summary: The open-source application container engine License: ASL 2.0 URL: https://www.docker.com @@ -44,7 +44,7 @@ lightweight container. %package engine Summary: Docker daemon binary and related utilities -Requires: /usr/sbin/groupadd +Requires(post): /usr/sbin/groupadd Requires: runc Requires: container-selinux >= 2:2.74 Requires: libseccomp >= 2.3 @@ -54,6 +54,7 @@ Requires: libcgroup Requires: containerd Requires: tar Requires: xz +%{?systemd_requires} BuildRequires: bash BuildRequires: ca-certificates @@ -185,19 +186,25 @@ install -p -m 644 %{_builddir}/%{_source_client}/{LICENSE,MAINTAINERS,NOTICE,REA %{_datadir}/fish/vendor_completions.d/docker.fish %doc %{_pkgdocdir} -%post +%post engine %systemd_post docker.service if ! getent group docker > /dev/null; then groupadd --system docker fi -%preun +%preun engine %systemd_preun docker.service docker.socket -%postun +%postun engine %systemd_postun_with_restart docker.service %changelog +* Tue Nov 05 2024 Funda Wang - 25.0.3-13 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: move post/preun/postun scriptlets into engine sub package + * Tue Oct 29 2024 xuguangmin - 25.0.3-12 - Type:bugfix - ID:NA