diff --git a/mock-core-configs/mock-core-configs.spec b/mock-core-configs/mock-core-configs.spec index 420c5e8c9..d668a1030 100644 --- a/mock-core-configs/mock-core-configs.spec +++ b/mock-core-configs/mock-core-configs.spec @@ -51,6 +51,9 @@ Rocky Linux and various other specific or combined chroots. %install mkdir -p %{buildroot}%{_sysusersdir} +%if 0%{?fedora} > 39 || 0%{?rhel} > 8 +cp -a mock.conf %{buildroot}%{_sysusersdir} +%endif mkdir -p %{buildroot}%{_sysconfdir}/mock/eol/templates mkdir -p %{buildroot}%{_sysconfdir}/mock/templates @@ -149,6 +152,9 @@ fi %license COPYING %doc README %ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg +%if 0%{?fedora} > 39 || 0%{?rhel} > 8 +%config(noreplace) %{_sysusersdir}/mock.conf +%endif %changelog * Fri Apr 05 2024 Jakub Kadlcik 40.3-1