On Mon, Feb 27, 2023 at 1:11 AM the Mulhern <amulhern(a)redhat.com> wrote:
Hi!
I always regenerate using rust2rpm; I think it saves trouble.
Among other things, upstream may have added a new feature (or removed one).
If so then rust2rpm will properly generate the appropriate
sub-packages corresponding to the possible feature combinations.
Also, rust2rpm itself undergoes updates which incorporate changes
which reflect the current Fedora packaging guidelines.
- mulhern
Seconded.
It's important to regenerate the spec file for every new version (or
even if you patch Cargo.toml, because those patches can affect spec
file contents).
Errors like "there is a feature subpackage for a feature that is no
longer present in the project" were silently ignored by earlier
versions of Rust RPM macros, but with rust-packaging >= 24, this is
now a hard error and will fail the build, since failure to generate
dependencies for a subpackage is exclusively caused by packager error.
Fabio