Commit graph

10 commits

Author SHA1 Message Date
d906ea6d21
conf: allow setting "no-default-features" in rust2rpm.toml
This should only ever be used for application-only packages, since it
has possibly surprising effects for library crates.
2024-03-14 16:19:53 +01:00
8b378c5b0e
docs: add package.{extra-patches,cargo-toml-patch-comments} settings 2024-03-08 15:56:24 +01:00
8e2bd0a029
cli: remove deprecated --all-features flag 2024-02-25 22:02:35 +01:00
c59cbefbaa
cli: remove deprecated --suffix argument 2024-02-25 21:52:17 +01:00
bc1f8490c0
cli: remove deprecated --stdout flag 2024-02-25 21:22:49 +01:00
0db4651516
conf/generator/templates: add settings for adjusting scriptlets and files
This commit introduces many settings - additional source files,
additional packaged files, specifying additional commands that are
injected into %prep, %build, %install, or %check - both before and
after the respective %cargo_* macros.
2024-02-23 00:18:58 +01:00
b536e5e40e
conf/generator: add setting to automatically rename installed binaries
This can be useful when the default name of an installed binary
conflicts with a binary from another package.
2024-02-22 20:02:00 +01:00
139bac2eca
conf/generator/templates: support cargo-install-{lib,bin} settings
rust-packaging >= 26 now has "official" support for overriding the
installation of library sources / binary targets by setting RPM macros.

This commit adds settings to correspond to the %cargo_install_lib and
%cargo_install_bin macros and plugs them through to the spec generator.

References to the the private %__cargo_is_bin and %__cargo_is_lib macros,
which could previously be used to hack this behaviour, were removed.
2024-02-22 18:53:42 +01:00
4c36ef4380
conf: add a setting for overriding the name of the "bin" subpackage 2024-02-20 18:14:31 +01:00
f579129792
docs: add docs for rust2rpm + config formats in man-friendly format
Remove documentation for rust2rpm.conf file format from the README. The
custom INI-based format is deprecated in favor of rust2rpm.toml. Both
formats are documented, including a migration guide from the old to the
new format.

The included build script shows how to build man pages from the asciidoc
source files.
2023-10-09 22:18:40 +02:00