2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-13 03:08:00 +00:00
pyghmi/buildrpm

8 lines
238 B
Plaintext
Raw Normal View History

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/