]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
rtslib-fb: reduce pyudev version requirements 1029/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 14 May 2018 12:58:32 +0000 (08:58 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 14 May 2018 12:58:32 +0000 (08:58 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
rtslib-fb/build/build_rpm

index eac9627e3dba877aa99d41a2fdc8fd74bd4957fd..24e49b74b656764306af2317fd8189de36ec3083 100644 (file)
@@ -30,8 +30,11 @@ fi
 # Make sure there are no other packages, first
 rm -f *.rpm
 
+# Adjust the version dependency on pyudev since EL7 doesn't have 0.16
+sed -i "s/'pyudev >=[^']*'/'pyudev >= 0.15'/" setup.py
+
 # Create the package
-fpm -s python -t rpm -n python-rtslib -v ${VERSION} --iteration ${REVISION} -d python-kmod -d python-six -d python2-pyudev setup.py
+fpm -s python -t rpm -n python-rtslib -v ${VERSION} --iteration ${REVISION} -d python-kmod -d python-six -d python-pyudev setup.py
 
 
 ## Upload the created RPMs to chacra