Skip to content

Commit

Permalink
spec: Fix ownership of /etc/yum tree
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ppisar authored and m-blaha committed Aug 19, 2024
1 parent be70011 commit f29a017
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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*
Expand Down

0 comments on commit f29a017

Please sign in to comment.