diff --git a/mock.spec b/mock.spec index 56b22f88c327ad22b830e66ebd6f24f58a434b76..b55e724e2cfd51b20ac1d780f4847fb3316a2314 100644 --- a/mock.spec +++ b/mock.spec @@ -8,7 +8,7 @@ Summary: Builds packages inside chroots Name: mock Version: 5.6 -Release: 3 +Release: 4 License: GPL-2.0-or-later Source: https://github.com/rpm-software-management/mock/releases/download/mock-2.2-1/%{name}-%{version}.tar.gz URL: https://github.com/rpm-software-management/mock/ @@ -176,6 +176,9 @@ install -p -m 0644 docs/site-defaults.cfg %{buildroot}%{_pkgdocdir} sed -i 's/^_MOCK_NVR = None$/_MOCK_NVR = "%name-%version-%release"/' \ %{buildroot}%{_libexecdir}/mock/mock +%pre filesystem +getent group 'mock' >/dev/null || groupadd -f -g '135' -r 'mock' || : + %check %if %{with lint} # ignore the errors for now, just print them and hopefully somebody will fix it one day @@ -242,6 +245,9 @@ pylint-3 py/mockbuild/ py/*.py py/mockbuild/plugins/* || : %dir %{_datadir}/cheat %changelog +* Wed Nov 12 2025 wangqing - 5.6-4 +- fix: ERROR: "getgrnam(): name not found: 'mock'" + * Mon May 26 2025 samshichao - 5.6-3 - Add installation dependencies