No description
035e458f0a
If a crate has a feature with `+` in it's name, the `%__cargo_feature_from_name` macro fails to correctly parse it. For example, the `cxxbridge-flags` crate declares (among others) the `c++20` feature; that is currently parsed as follows: ```lua > string.match("cxxbridge-flags+c++20-devel", "^.+%+(.+)-devel$") 20 ``` The adjusted regex matches the *first* `+` as feature name separator: ```lua > string.match("cxxbridge-flags+c++20-devel", "^[^+]+%+(.+)-devel$") c++20 ``` |
||
---|---|---|
data | ||
rust2rpm | ||
tools | ||
.gitignore | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
requirements.txt | ||
setup.py | ||
test.py | ||
tox.ini |
rust2rpm
Convert Rust crates to RPM.
.rust2rpm.conf
You can place configuration file which is used as source for additional information for spec generation.
Some simple example would be better than many words ;)
[DEFAULT]
unwanted-features =
compiler_builtins
rustc-dep-of-std
buildrequires =
pkgconfig(foo) >= 1.2.3
lib.requires =
pkgconfig(foo) >= 1.2.3
[fedora]
bin.requires =
findutils
buildrequires =
lib.requires =
lib+default.requires =
pkgconfig(bar) >= 2.0.0