Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more than one Requires comparison #127

Open
LukeShortCloud opened this issue Dec 15, 2024 · 0 comments
Open

Allow more than one Requires comparison #127

LukeShortCloud opened this issue Dec 15, 2024 · 0 comments

Comments

@LukeShortCloud
Copy link

LukeShortCloud commented Dec 15, 2024

I have a program that only works with a very specific version of WirePlumber. At first, I thought something like this would work but it does not. RPM does not know how to check for the patch version and it ends up saying that there is no package version that meets this requirement

Requires: wireplumber = 0.5

Instead, I found that using this statement works. However, cargo-generate-rpm sees it as invalid.

Requires: wireplumber >= 0.5.0, wireplumber < 0.6.0

For example:

[package.metadata.generate-rpm.requires]
wireplumber = ">= 0.5.0, wireplumber < 0.6.0"

Results in:

$ cargo generate-rpm
Invalid dependency version specified for wireplumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant