Skip to content

Commit 76a0c33

Browse files
evan-goodeppisar
authored andcommitted
spec: Add dnf-bootc subpackage
dnf-bootc's only job is to Require python3-gobject-base, ostree, ostree-libs, and util-linux-core, which are needed to interact with bootc systems. We don't want to add these dependencies on `python3-dnf` because we don't want them on non-bootc systems, so we use a subpackage.
1 parent fa47a25 commit 76a0c33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dnf.spec

+14
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ Requires: python3-%{name} = %{version}-%{release}
190190
%description automatic
191191
Systemd units that can periodically download package upgrades and apply them.
192192

193+
%package bootc
194+
Summary: %{pkg_summary} - additional bootc dependencies
195+
Requires: python3-%{name} = %{version}-%{release}
196+
Requires: ostree
197+
Requires: ostree-libs
198+
Requires: python3-gobject-base
199+
Requires: util-linux-core
200+
201+
%description bootc
202+
Additional dependencies needed to perform transactions on booted bootc (bootable containers) systems.
203+
193204

194205
%prep
195206
%autosetup
@@ -420,6 +431,9 @@ popd
420431
%{python3_sitelib}/%{name}/automatic/
421432
%endif
422433

434+
%files bootc
435+
# bootc subpackage does not include any files
436+
423437
%changelog
424438
* Tue Nov 12 2024 Evan Goode <mail@evangoo.de> - 4.22.0-1
425439
- doc: Naming of source and debug repos

0 commit comments

Comments
 (0)