Skip to content

Commit

Permalink
spec: Simplify man page files
Browse files Browse the repository at this point in the history
Use globs to cover both dnf5 man files and dnf symlinks.
  • Loading branch information
jan-kolarik authored and ppisar committed Apr 18, 2024
1 parent baf51da commit 424d215
Showing 1 changed file with 49 additions and 104 deletions.
153 changes: 49 additions & 104 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -274,104 +274,58 @@ It supports RPM packages, modulemd modules, and comps groups & environments.
%dir %{_libdir}/libdnf5/plugins
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/dnf5
%if %{with dnf5_obsoletes_dnf}
%{_datadir}/bash-completion/completions/dnf
%endif
%{_datadir}/bash-completion/completions/dnf*
%dir %{_prefix}/lib/sysimage/dnf
%verify(not md5 size mtime) %ghost %{_prefix}/lib/sysimage/dnf/*
%license COPYING.md
%license gpl-2.0.txt
%{_mandir}/man8/dnf5.8.*
%{_mandir}/man8/dnf5-advisory.8.*
%{_mandir}/man8/dnf5-autoremove.8.*
%{_mandir}/man8/dnf5-check.8.*
%{_mandir}/man8/dnf5-check-upgrade.8.*
%{_mandir}/man8/dnf5-clean.8.*
%{_mandir}/man8/dnf5-distro-sync.8.*
%{_mandir}/man8/dnf5-downgrade.8.*
%{_mandir}/man8/dnf5-download.8.*
%{_mandir}/man8/dnf5-environment.8.*
%{_mandir}/man8/dnf5-group.8.*
# TODO(jkolarik): history is not ready yet
# %%{_mandir}/man8/dnf5-history.8.*
%{_mandir}/man8/dnf5-info.8.*
%{_mandir}/man8/dnf5-install.8.*
%{_mandir}/man8/dnf5-leaves.8.*
%{_mandir}/man8/dnf5-list.8.*
%{_mandir}/man8/dnf5-makecache.8.*
%{_mandir}/man8/dnf5-mark.8.*
%{_mandir}/man8/dnf5-module.8.*
%{_mandir}/man8/dnf5-offline.8.*
%{_mandir}/man8/dnf5-provides.8.*
%{_mandir}/man8/dnf5-reinstall.8.*
%{_mandir}/man8/dnf5-remove.8.*
%{_mandir}/man8/dnf5-repo.8.*
%{_mandir}/man8/dnf5-repoquery.8.*
%{_mandir}/man8/dnf5-search.8.*
%{_mandir}/man8/dnf5-swap.8.*
%{_mandir}/man8/dnf5-system-upgrade.8.*
%{_mandir}/man8/dnf5-upgrade.8.*
%{_mandir}/man8/dnf5-versionlock.8.*
%{_mandir}/man7/dnf5-aliases.7.*
%{_mandir}/man7/dnf5-caching.7.*
%{_mandir}/man7/dnf5-comps.7.*
# TODO(jkolarik): filtering is not ready yet
# %%{_mandir}/man7/dnf5-filtering.7.*
%{_mandir}/man7/dnf5-forcearch.7.*
%{_mandir}/man7/dnf5-installroot.7.*
# TODO(jkolarik): modularity is not ready yet
# %%{_mandir}/man7/dnf5-modularity.7.*
%{_mandir}/man7/dnf5-specs.7.*
%{_mandir}/man5/dnf5.conf.5.*
%{_mandir}/man5/dnf5.conf-todo.5.*
%{_mandir}/man5/dnf5.conf-deprecated.5.*
%if %{with dnf5_obsoletes_dnf}
%{_mandir}/man8/dnf.8.*
%{_mandir}/man8/dnf-advisory.8.*
%{_mandir}/man8/dnf-autoremove.8.*
%{_mandir}/man8/dnf-check.8.*
%{_mandir}/man8/dnf-check-upgrade.8.*
%{_mandir}/man8/dnf-clean.8.*
%{_mandir}/man8/dnf-distro-sync.8.*
%{_mandir}/man8/dnf-downgrade.8.*
%{_mandir}/man8/dnf-download.8.*
%{_mandir}/man8/dnf-environment.8.*
%{_mandir}/man8/dnf-group.8.*
%endif
%{_mandir}/man8/dnf*-advisory.8.*
%{_mandir}/man8/dnf*-autoremove.8.*
%{_mandir}/man8/dnf*-check.8.*
%{_mandir}/man8/dnf*-check-upgrade.8.*
%{_mandir}/man8/dnf*-clean.8.*
%{_mandir}/man8/dnf*-distro-sync.8.*
%{_mandir}/man8/dnf*-downgrade.8.*
%{_mandir}/man8/dnf*-download.8.*
%{_mandir}/man8/dnf*-environment.8.*
%{_mandir}/man8/dnf*-group.8.*
# TODO(jkolarik): history is not ready yet
# %%{_mandir}/man8/dnf-history.8.*
%{_mandir}/man8/dnf-info.8.*
%{_mandir}/man8/dnf-install.8.*
%{_mandir}/man8/dnf-leaves.8.*
%{_mandir}/man8/dnf-list.8.*
%{_mandir}/man8/dnf-makecache.8.*
%{_mandir}/man8/dnf-mark.8.*
%{_mandir}/man8/dnf-module.8.*
%{_mandir}/man8/dnf-offline.8.*
%{_mandir}/man8/dnf-provides.8.*
%{_mandir}/man8/dnf-reinstall.8.*
%{_mandir}/man8/dnf-remove.8.*
%{_mandir}/man8/dnf-repo.8.*
%{_mandir}/man8/dnf-repoquery.8.*
%{_mandir}/man8/dnf-search.8.*
%{_mandir}/man8/dnf-swap.8.*
%{_mandir}/man8/dnf-system-upgrade.8.*
%{_mandir}/man8/dnf-upgrade.8.*
%{_mandir}/man8/dnf-versionlock.8.*
%{_mandir}/man7/dnf-aliases.7.*
%{_mandir}/man7/dnf-caching.7.*
%{_mandir}/man7/dnf-comps.7.*
# %%{_mandir}/man8/dnf*-history.8.*
%{_mandir}/man8/dnf*-info.8.*
%{_mandir}/man8/dnf*-install.8.*
%{_mandir}/man8/dnf*-leaves.8.*
%{_mandir}/man8/dnf*-list.8.*
%{_mandir}/man8/dnf*-makecache.8.*
%{_mandir}/man8/dnf*-mark.8.*
%{_mandir}/man8/dnf*-module.8.*
%{_mandir}/man8/dnf*-offline.8.*
%{_mandir}/man8/dnf*-provides.8.*
%{_mandir}/man8/dnf*-reinstall.8.*
%{_mandir}/man8/dnf*-remove.8.*
%{_mandir}/man8/dnf*-repo.8.*
%{_mandir}/man8/dnf*-repoquery.8.*
%{_mandir}/man8/dnf*-search.8.*
%{_mandir}/man8/dnf*-swap.8.*
%{_mandir}/man8/dnf*-system-upgrade.8.*
%{_mandir}/man8/dnf*-upgrade.8.*
%{_mandir}/man8/dnf*-versionlock.8.*
%{_mandir}/man7/dnf*-aliases.7.*
%{_mandir}/man7/dnf*-caching.7.*
%{_mandir}/man7/dnf*-comps.7.*
# TODO(jkolarik): filtering is not ready yet
# %%{_mandir}/man7/dnf-filtering.7.*
%{_mandir}/man7/dnf-forcearch.7.*
%{_mandir}/man7/dnf-installroot.7.*
# %%{_mandir}/man7/dnf*-filtering.7.*
%{_mandir}/man7/dnf*-forcearch.7.*
%{_mandir}/man7/dnf*-installroot.7.*
# TODO(jkolarik): modularity is not ready yet
# %%{_mandir}/man7/dnf-modularity.7.*
%{_mandir}/man7/dnf-specs.7.*
%{_mandir}/man5/dnf.conf.5.*
%{_mandir}/man5/dnf.conf-todo.5.*
%{_mandir}/man5/dnf.conf-deprecated.5.*
%endif
# %%{_mandir}/man7/dnf*-modularity.7.*
%{_mandir}/man7/dnf*-specs.7.*
%{_mandir}/man5/dnf*.conf.5.*
%{_mandir}/man5/dnf*.conf-todo.5.*
%{_mandir}/man5/dnf*.conf-deprecated.5.*

%if %{with systemd}
%{_unitdir}/dnf5-offline-transaction.service
Expand Down Expand Up @@ -753,20 +707,12 @@ config-manager, copr, and repoclosure commands.
%{_libdir}/dnf5/plugins/copr_cmd_plugin.so
%{_libdir}/dnf5/plugins/needs_restarting_cmd_plugin.so
%{_libdir}/dnf5/plugins/repoclosure_cmd_plugin.so
%{_mandir}/man8/dnf5-builddep.8.*
%{_mandir}/man8/dnf5-changelog.8.*
%{_mandir}/man8/dnf5-config-manager.8.*
%{_mandir}/man8/dnf5-copr.8.*
%{_mandir}/man8/dnf5-needs-restarting.8.*
%{_mandir}/man8/dnf5-repoclosure.8.*
%if %{with dnf5_obsoletes_dnf}
%{_mandir}/man8/dnf-builddep.8.*
%{_mandir}/man8/dnf-changelog.8.*
%{_mandir}/man8/dnf-config-manager.8.*
%{_mandir}/man8/dnf-copr.8.*
%{_mandir}/man8/dnf-needs-restarting.8.*
%{_mandir}/man8/dnf-repoclosure.8.*
%endif
%{_mandir}/man8/dnf*-builddep.8.*
%{_mandir}/man8/dnf*-changelog.8.*
%{_mandir}/man8/dnf*-config-manager.8.*
%{_mandir}/man8/dnf*-copr.8.*
%{_mandir}/man8/dnf*-needs-restarting.8.*
%{_mandir}/man8/dnf*-repoclosure.8.*


# ========== dnf5-automatic plugin ==========
Expand All @@ -791,14 +737,13 @@ automatically and regularly from systemd timers, cron jobs or similar.
%files plugin-automatic -f dnf5-plugin-automatic.lang
%ghost %{_sysconfdir}/motd.d/dnf5-automatic
%{_libdir}/dnf5/plugins/automatic_cmd_plugin.so
%{_mandir}/man8/dnf5-automatic.8.*
%{_mandir}/man8/dnf*-automatic.8.*
%{_unitdir}/dnf5-automatic.service
%{_unitdir}/dnf5-automatic.timer
%{_unitdir}/dnf-automatic.service
%{_unitdir}/dnf-automatic.timer
%if %{with dnf5_obsoletes_dnf}
%{_bindir}/dnf-automatic
%{_mandir}/man8/dnf-automatic.8.*
%else
%exclude %{_bindir}/dnf-automatic
%endif
Expand Down

0 comments on commit 424d215

Please sign in to comment.