Rpm Spec:: Requires Conditions Format :: Lower Not Working

Home » CentOS » Rpm Spec:: Requires Conditions Format :: Lower Not Working
CentOS No Comments

Hi! I’m trying to give a range of versions for a dependency in the form of :
Requires: xrootd-server >= 4.1.0
Requires: xrootd-server < 5.0.0 with the already installed package having the versions: [rpmbuild@el7build SPECS]$ rpm -qa –queryformat ‘%{name} %{version}\n’ | grep xrootd | sort xrootd 4.12.2 xrootd-client 4.12.2 xrootd-client-devel 4.12.2 xrootd-client-libs 4.12.2 xrootd-devel 4.12.2 xrootd-libs 4.12.2 xrootd-private-devel 4.12.2 xrootd-selinux 4.12.2 xrootd-server 4.12.2 xrootd-server-devel 4.12.2 xrootd-server-libs 4.12.2 when i’m trying to build i get: error: Failed build dependencies: xrootd-devel < 5.0.0 is needed by xrootd-alicetokenacc-1:1.3.1-2.el7.x86_64 xrootd-server-devel < 5.0.0 is needed by xrootd-alicetokenacc-1:1.3.1-2.el7.x86_64 Does anyone have any idea why the condition is not fulfilled? i am aware of both http://ftp.rpm.org/api/4.4.2.2/dependencies.html and http://ftp.rpm.org/api/4.4.2.2/rpmvercmp_8c-source.html (under assuption that these holds true for the current 4.11.3 from CentOS 7)

Thanks a lot!
Adrian