Release 26.0.0

This commit is contained in:
Fabio Valentini 2024-03-08 22:51:16 +01:00
parent f0e65999a7
commit 8561830f02
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -1,3 +1,61 @@
Version 26.0.0
==============
This major release includes a lot of new features (mostly for persisting more
aspects of spec files in `rust2rpm.toml` config files) and also builds on top
of improvements in the latest version of rust-packaging (v26).
Added:
- Official support for overriding what gets installed by `%cargo_install` was
implemented. Spec templates now use the new `%cargo_install_bin` and
`%cargo_install_lib` macros for controlling behaviour of `%cargo_install`
instead of relying on the previous hack (overriding the private
`%__cargo_is_lib()` and `%__cargo_is_bin()` macros). Whether these macros are
inserted into generated spec files can also be controlled by new
`package.cargo-install-bin` and `package.cargo-install-lib` settings. This
feature requires `cargo-rpm-macros >= 26`, which is automatically added to
generated spec files.
- Support for automatically renaming installed executables was added. This is
useful when the default executable name would conflict with other packages.
This behaviour can be controlled with the new `package.bin-renames` setting.
- Functionality for configuring additional `Source` and `Patch` files via
`rust2rpm.toml` settings was added. This is useful for packages that need
additional source and / or patch files that need to be kept for new versions.
- Comments that are associated with a manual `Cargo.toml` patch can now be
stored and persisted in `rust2rpm.toml`.
Changed:
- New warnings were added if conflicting settings were specified in
`rust2rpm.toml` - notably, specifying both `features.enable-all = true` with
a non-empty list of features for the `features.hide` setting is likely to
have unintended effects.
Fixed:
- The warning that was logged when the generated package `Summary` was too long
was relaxed (>80 characters instead of >72 characters to match rpmlint) and
fixed in the case where a shorter summary override was already specified in
`rust2rpm.toml`.
Removed:
- The `--all-features` CLI flag was removed. It was deprecated in v25.0.0 and
was replaced by a setting in `rust2rpm.toml`.
- The `--stdout` CLI flag was removed. It was deprecated in v25.0.0 because it
has never worked correctly when rust2rpm needed to write multiple files.
- The `--suffix` CLI argument was removed. It was deprecated in v24.2.0 and
replaced by the `--compat` flag, which does not require manually specifying
the suffix.
Deprecated:
- The `--show-license-map` and `--translate-license` modes of rust2rpm, the
underlying Python APIs, and included mapping data between Fedora and SPDX
license expressions are still present in this version, but will be removed in
the next major version (v27.0.0).
Version 25.1.0
==============