No description
Find a file
Zbigniew Jędrzejewski-Szmek d9b2cef72e Add --translate-license to translate a specific license
Before, all known licenses would be listed by --show-license-map, so
grepping the list was enough to find a license. But now we support
alternative syntaxes, so this is not enough. Add a call to translate a
specific license:

$ python3 -m rust2rpm --translate-license GPL-3.0+
Upstream license tag GPL-3.0+ (GPL-3.0-or-later) translated to GPLv3+
GPLv3+

$ python3 -m rust2rpm --show-license-map | grep -F GPL-3.0+
(nada)
2019-06-02 15:51:08 +02:00
data Remove temporary Cargo.toml.deps 2019-04-28 07:47:06 +02:00
rust2rpm Add --translate-license to translate a specific license 2019-06-02 15:51:08 +02:00
.gitignore gitignore: add /build/ 2018-01-08 20:08:43 +01:00
LICENSE add MIT license text 2017-01-30 18:46:00 +01:00
MANIFEST.in Translate SPDX licenses to Fedora license tags, warn about "/" 2018-08-16 16:16:02 +02:00
README.md add support for feeding user configuration 2018-11-03 21:45:04 +01:00
requirements.txt Drop rustcfg req 2019-04-23 15:58:16 +02:00
setup.py Bump classifiers 2019-05-07 08:41:20 +02:00
test.py Add support for prerelease versions 2019-01-28 09:15:18 +00:00
tox.ini tox: update envlist 2018-08-14 08:56:48 +02:00

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]
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