From f29a017b0044828801b119da78bb45a9eeaca6b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 13 Aug 2024 17:15:51 +0200 Subject: [PATCH] spec: Fix ownership of /etc/yum tree This patch fixes two mistakes: (1) In minimal yum_compat_levels (default one) rpmbuild complained: RPM build warnings: File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/pluginconf.d File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/protected.d File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/vars (2) In full yum_compat_levels /etc/yum directory was not owned by yum package --- dnf.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dnf.spec b/dnf.spec index f3e06e556c..bc6232e9bb 100644 --- a/dnf.spec +++ b/dnf.spec @@ -337,10 +337,8 @@ popd %{_bindir}/yum %{_mandir}/man8/yum.8* %if "%{yum_compat_level}" == "full" +%{_sysconfdir}/yum %{_sysconfdir}/yum.conf -%{_sysconfdir}/yum/pluginconf.d -%{_sysconfdir}/yum/protected.d -%{_sysconfdir}/yum/vars %{_mandir}/man5/yum.conf.5.* %{_mandir}/man8/yum-shell.8* %{_mandir}/man1/yum-aliases.1* @@ -356,9 +354,6 @@ popd %endif %else %exclude %{_sysconfdir}/yum.conf -%exclude %{_sysconfdir}/yum/pluginconf.d -%exclude %{_sysconfdir}/yum/protected.d -%exclude %{_sysconfdir}/yum/vars %exclude %{confdir}/protected.d/yum.conf %exclude %{_mandir}/man5/yum.conf.5.* %exclude %{_mandir}/man8/yum-shell.8*