No description
Find a file
Jan Staněk 035e458f0a
Parse features with + in their name
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
```
2021-02-01 13:56:37 +01:00
data Parse features with + in their name 2021-02-01 13:56:37 +01:00
rust2rpm buildsys: release++ 2020-12-26 12:50:28 +01:00
tools fedora-helper: Rawhide is now f34 2020-08-18 15:05:21 +02:00
.gitignore
LICENSE
MANIFEST.in
README.md rust2rpm: allow removing unwanted features 2020-11-13 11:04:27 +01:00
requirements.txt metadata: replace semantic-version with a custom parser 2019-10-28 11:19:46 +01:00
setup.py metadata: replace semantic-version with a custom parser 2019-10-28 11:19:46 +01:00
test.py metadata: support versions like X.*.* 2020-02-18 17:50:26 +01:00
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