[Rpm-maint] [rpm-software-management/rpm] [rpmbuild] - Can we specify multiple version requirements in .spec file (#598)

SP Kesan notifications at github.com
Fri Nov 16 15:00:31 UTC 2018


Can i do something like `Requires: (python >= 2.6 or python <= 2.7)` ?
I need this: check for `python 2.6` or `python 2.7`, use whichever one is available`
I already tried `Requires: python >= 2.6`, it doesn't seem to work.

If i check `which python`, it shows `/usr/bin/python` and `python --version` shows `Python 2.7.13`.
But it doesn't seem to work. 
```
error: Failed dependencies:
	python is needed by MYPACKAGENAME
```
My current spec file has :
`Requires: python`
But as soon as I install python-2.6.9, the package installs properly.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/598#issuecomment-439419647
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181116/011228b6/attachment.html>


More information about the Rpm-maint mailing list