deb-python-pyghmi/buildrpm
Jarrod Johnson 3f4185fa60 Add script to help build rpms
setup.py bdist_rpm is not very good.
Instead, provide a script to create an rpm.

Change-Id: If6773ee4938e981a14c38e4e4eabad6b5cb2b6ae
2016-10-11 11:08:06 -04:00

8 lines
238 B
Plaintext

cd `dirname $0`
VERSION=`python setup.py --version`
python setup.py sdist
cp dist/pyghmi-$VERSION.tar.gz ~/rpmbuild/SOURCES
rpmbuild -bs python-pyghmi.spec
rm $1/python-pyghmi-*rpm
cp ~/rpmbuild/SRPMS/python-pyghmi-$VERSION-1.src.rpm $1/