Move dependency on dnf to -devel subpackage (RHBZ#2086302)

This commit is contained in:
Richard W.M. Jones 2022-05-15 18:17:52 +01:00
parent 2058048768
commit aab96d51f3

View File

@ -31,7 +31,7 @@
Summary: Tool for creating supermin appliances Summary: Tool for creating supermin appliances
Name: supermin Name: supermin
Version: 5.3.2 Version: 5.3.2
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
ExclusiveArch: %{kernel_arches} ExclusiveArch: %{kernel_arches}
@ -86,16 +86,16 @@ BuildRequires: grubby
# https://bugzilla.redhat.com/show_bug.cgi?id=1331012 # https://bugzilla.redhat.com/show_bug.cgi?id=1331012
BuildRequires: systemd-udev BuildRequires: systemd-udev
# This only includes the dependencies needed at runtime, ie. supermin
# --build. For supermin --prepare, dependencies like dnf are placed
# in the -devel subpackage.
Requires: rpm Requires: rpm
Requires: dnf
Requires: dnf-plugins-core
Requires: util-linux-ng Requires: util-linux-ng
Requires: cpio Requires: cpio
Requires: tar Requires: tar
Requires: /usr/sbin/mke2fs Requires: /usr/sbin/mke2fs
# RHBZ#771310 # RHBZ#771310
Requires: e2fsprogs-libs >= 1.42 Requires: e2fsprogs-libs >= 1.42
Requires: findutils
# For automatic RPM dependency generation. # For automatic RPM dependency generation.
# See: https://rpm-software-management.github.io/rpm/manual/dependency_generators.html # See: https://rpm-software-management.github.io/rpm/manual/dependency_generators.html
@ -109,18 +109,27 @@ appliances (similar to virtual machines), usually around 100KB in
size, which get fully instantiated on-the-fly in a fraction of a size, which get fully instantiated on-the-fly in a fraction of a
second when you need to boot one of them. second when you need to boot one of them.
Note that if you want to run 'supermin --prepare' you will need the
extra dependencies provided by %{name}-devel.
%package devel %package devel
Summary: Development tools for %{name} Summary: Development tools for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: rpm-build Requires: rpm-build
# Dependencies needed for supermin --prepare
Requires: dnf
Requires: dnf-plugins-core
Requires: findutils
%description devel %description devel
%{name}-devel contains development tools for %{name}. %{name}-devel contains development tools for %{name}.
It just contains tools for automatic RPM dependency generation It contains extra dependencies needed for 'supermin --prepare' to
from supermin appliances. work, as well as tools for automatic RPM dependency generation from
supermin appliances.
%prep %prep
@ -175,6 +184,9 @@ make check || {
%changelog %changelog
* Sun May 15 2022 Richard W.M. Jones <rjones@redhat.com> - 5.3.2-2
- Move dependency on dnf to -devel subpackage (RHBZ#2086302)
* Fri Mar 04 2022 Richard W.M. Jones <rjones@redhat.com> - 5.3.2-1 * Fri Mar 04 2022 Richard W.M. Jones <rjones@redhat.com> - 5.3.2-1
- New upstream development version 5.3.2 - New upstream development version 5.3.2