Skip to content

Commit

Permalink
spec: Stricten a dependency on DNF libraries in plugin subpackages
Browse files Browse the repository at this point in the history
ELF plugins of dnf5-plugins and dnf5-plugin-automatic subpackages link
to libdnf and libdnf-cli libraries. Because the libraries come from
the same source package, it is desired to pin the plugin subpackages
to same release of the libraries subpackages.

This was hinted by rpminspect and already partially implemented in
commit 97cdbe5 ("Add explicit package
version for libdnf5-cli").
  • Loading branch information
ppisar authored and Conan-Kudo committed Aug 2, 2024
1 parent 97ed37c commit 04d9908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ Summary: Plugins for dnf5
License: LGPL-2.1-or-later
Requires: dnf5%{?_isa} = %{version}-%{release}
Requires: libcurl%{?_isa} >= 7.62.0
Requires: libdnf5%{?_isa} = %{version}-%{release}
Requires: libdnf5-cli%{?_isa} = %{version}-%{release}
Provides: dnf5-command(builddep)
Provides: dnf5-command(changelog)
Expand Down Expand Up @@ -727,6 +728,8 @@ Summary: Package manager - automated upgrades
License: LGPL-2.1-or-later
Requires: dnf5%{?_isa} = %{version}-%{release}
Requires: libcurl-full%{?_isa}
Requires: libdnf5%{?_isa} = %{version}-%{release}
Requires: libdnf5-cli%{?_isa} = %{version}-%{release}
Provides: dnf5-command(automatic)
%if %{with dnf5_obsoletes_dnf}
Provides: dnf-automatic = %{version}-%{release}
Expand Down

0 comments on commit 04d9908

Please sign in to comment.