Skip to content

Commit

Permalink
spec: rename the bootc-reinstall subpackage
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
omertuc committed Feb 7, 2025
1 parent 69264e0 commit cec66bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrib/packaging/bootc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ Provides: ostree-cli(ostree-container)
%description
%{summary}

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

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

%prep
Expand Down Expand Up @@ -123,7 +124,7 @@ make install-ostree-hooks DESTDIR=%{?buildroot}
%{_docdir}/bootc/*
%{_mandir}/man*/bootc*

%files reinstall
%files -n system-reinstall-bootc
%{_bindir}/system-reinstall-bootc

%changelog
Expand Down

0 comments on commit cec66bf

Please sign in to comment.