Release 24.1.0

This commit is contained in:
Fabio Valentini 2023-03-03 19:30:37 +01:00
parent 851f7468ea
commit d0d3742a07
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF
2 changed files with 37 additions and 1 deletions

36
NEWS
View file

@ -1,5 +1,41 @@
rust2rpm rust2rpm
Version 24.1.0
==============
Added:
- Added an `enabled-features` setting to `rust2rpm.conf` files. This
setting accepts a list of features which will be explicitly enabled, i.e.
passed as flags to `%cargo_*` macros. This is useful when building
binaries with additional non-default features, or when running tests
requires enabling additional features.
- Added warnings when the currently processed spec file uses version
restrictions that are more strict than SemVer. Strong restrictions like
these are almost always in place for reasons that don't apply to
distribution packages (for example, MSRV compatibility policy).
- Added "interactive" mode for generating spec files for projects that use a
cargo workspace. This mode is required when the heuristics for determining
the "main" crate (i.e. for determining the package name and version) fail.
Changed:
- Feature flags for required features of binary targets are automatically added
to `%cargo_*` macro calls in generated spec files. The detection of "binary"
targets does not take `required-features` into account, so these features
need to be explicitly enabled for the expected binaries to be built by
`cargo install` (which skips targets with missing `required-features`).
- Attempting to generate spec files for crates that have SemVer "build metadata"
in their version string now prints an error and fails. This was previously
accepted, but could result in broken packages.
- Parsing of `rust2rpm.conf` files now fails if the file content is considered
"invalid" (for example, because of unrecognized or inconsistent settings).
Fixed:
- Tests no longer start to fail every January 1st. The current year is now
correctly stripped from test fixtures.
Version 24.0.2 Version 24.0.2
============== ==============

View file

@ -10,7 +10,7 @@ from rust2rpm import licensing
# release of the last minor version. # release of the last minor version.
# #
# Only the major version is included in the header of generated spec files. # Only the major version is included in the header of generated spec files.
__version__ = "24.0.2" __version__ = "24.1.0"
TARGET_ARCHES = [ TARGET_ARCHES = [
"x86_64", "x86_64",