Skip to content

Commit cec66bf

Browse files
committed
spec: rename the bootc-reinstall subpackage
The subpackage name was left to be bootc-reinstall even though we decided on a name change. This commit changes the package name to match the binary name which is `system-reinstall-bootc` # Implementation By default .spec files will prepend the main package name to the subpackage name, the `-n` flag of the `%package` directive prevents that (this is also needed in the %files and %description directives) Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
1 parent 69264e0 commit cec66bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contrib/packaging/bootc.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ Provides: ostree-cli(ostree-container)
6262
%description
6363
%{summary}
6464

65-
%package reinstall
65+
# (-n because we don't want the subpackage name to start with bootc-)
66+
%package -n system-reinstall-bootc
6667
Summary: Utility to reinstall the current system using bootc
6768
Requires: podman
6869
# The reinstall subpackage intentionally does not require bootc, as it pulls in many unnecessary dependencies
6970

70-
%description reinstall
71+
%description -n system-reinstall-bootc
7172
This package provides a utility to simplify reinstalling the current system to a given bootc image.
7273

7374
%prep
@@ -123,7 +124,7 @@ make install-ostree-hooks DESTDIR=%{?buildroot}
123124
%{_docdir}/bootc/*
124125
%{_mandir}/man*/bootc*
125126

126-
%files reinstall
127+
%files -n system-reinstall-bootc
127128
%{_bindir}/system-reinstall-bootc
128129

129130
%changelog

0 commit comments

Comments
 (0)