mirror of
https://opendev.org/x/pyghmi
synced 2025-01-13 19:27:48 +00:00
3f4185fa60
setup.py bdist_rpm is not very good. Instead, provide a script to create an rpm. Change-Id: If6773ee4938e981a14c38e4e4eabad6b5cb2b6ae
8 lines
238 B
Plaintext
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/
|