Skip to content

Commit

Permalink
spec: Simplify %files dnf section for both yum_compat_levels
Browse files Browse the repository at this point in the history
Miminal level is a subset of full level.
  • Loading branch information
ppisar authored and m-blaha committed Aug 19, 2024
1 parent 917a8ba commit be70011
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,13 @@ popd
%{_tmpfilesdir}/%{name}.conf

%files -n %{yum_subpackage_name}
%if "%{yum_compat_level}" == "full"
%{_bindir}/yum
%{_mandir}/man8/yum.8*
%if "%{yum_compat_level}" == "full"
%{_sysconfdir}/yum.conf
%{_sysconfdir}/yum/pluginconf.d
%{_sysconfdir}/yum/protected.d
%{_sysconfdir}/yum/vars
%{_mandir}/man8/yum.8*
%{_mandir}/man5/yum.conf.5.*
%{_mandir}/man8/yum-shell.8*
%{_mandir}/man1/yum-aliases.1*
Expand All @@ -365,11 +365,6 @@ popd
%exclude %{_mandir}/man1/yum-aliases.1*
%endif

%if "%{yum_compat_level}" == "minimal"
%{_bindir}/yum
%{_mandir}/man8/yum.8*
%endif

%files -n python3-%{name}
%{_bindir}/%{name}-3
%{_bindir}/%{name}4
Expand Down

0 comments on commit be70011

Please sign in to comment.