Skip to content

RFE: Add support for generating version range dependencies #94

Closed

Description

@igor-raits

Currently gem2rpm generates multiple lines if one dependency required which leads to problems.

RPM 4.14 (since F27) will get ability to specify things like BuildRequires: (rubygem(foo) >= 5.1 with rubygem(foo) < 5.3), or even more complicated cases would work as well: BuildRequires: ((rubygem(foo) >= 5.1 with rubygem(foo) < 5.3) or (rubygem(foo_ext) >= 5.1 with rubygem(foo_ext) < 5.3))

Activity

  1. voxik commented on Jul 31, 2017

    @voxik
    Member

    Several things:

    1. The generated BR are commented out by default and used more or less just as scaffold for packager.
    2. Versioned BR are generally discouraged [1].
    3. Is the "with" operator actually approved? Is it mentioned in guidelines? Support of RPM is one thing and guidelines are another thing (you remember tilde in versions, right?)
  2. igor-raits commented on Jul 31, 2017

    @igor-raits
    Author

    Versioned BR are generally discouraged [1].

    Thanks for pointer, I will make sure that it is updated when we will get with richop approved.

    Is the "with" operator actually approved? Is it mentioned in guidelines? Support of RPM is one thing and guidelines are another thing (you remember tilde in versions, right?)

    No, it's not yet implemented in RPM, but will be very soon. It's not mentioned in guidelines, but https://fedoraproject.org/wiki/Changes/Packaging_Rust_applications_and_libraries explicitly mention this and this change has been already approved by FESCo. And supporting with is only way how we will get rust packaging in Fedora.


    At this point I'm waiting for final version of with richop support. Once it is there, I will submit Rust packaging guidelines + some other wiki pages for FPC approval.

  3. igor-raits commented on Jul 31, 2017

    @igor-raits
    Author

    P.S. I created this bug just for feature to be implemented, doesn't have to be turned on by default. So once FPC approves it, we could just flip the switch on.

  4. igor-raits commented on Aug 30, 2017

    @igor-raits
    Author

    @voxik btw, this functionality already available in F27+ RPM/DNF/etc., so you can already try it locally. I'm still trying to get rel-eng support for it.

  5. voxik commented on Jan 7, 2026

    @voxik
    Member

    Support for this feature was added in #135.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions