Signed-off-by: Jason Dillaman <dillaman@redhat.com>
# 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