Rpm spec file: can I use versions with Recommends?

Hello,
I try to package (local, not in OBS) opera with nwjs-ffmpeg-prebuilt as recommend package.

Recommends: nwjs-ffmpeg-prebuilt >= 0.91.0
Recommends: nwjs-ffmpeg-prebuilt <= 0.91.0

In the local repository I do have
nwjs-ffmpeg-prebuilt-0.91.0
nwjs-ffmpeg-prebuilt-0.92.0
nwjs-ffmpeg-prebuilt-0.93.0

Despite the definition in the opera spec file (nwjs-ffmpeg-prebuilt 0.91.0), nwjs-ffmpeg-prebuilt -0.93.0 is automatically installed.

What is my mistake?
Thank you.

@Kieltux Use Requires not Recommends.

1 Like

Thanks @malcolmlewis. This works.

And does something entirely different to what you asked originally.

Recommends: nwjs-ffmpeg-prebuilt == 0.91.0
1 Like

I searched a lot about my “problem”, before asking here and I did not find this solution (with == instead >= 0.91.0 and <= 0.91.0 ).
Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.