2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-13 03:08:00 +00:00
pyghmi/buildrpm
Jarrod Johnson d1f48b02c0 Implement support for ThinkSystem servers
Change-Id: Ic45943c4b882bb13390722cca58b8b1785386e86
2017-06-20 13:30:32 -04:00

8 lines
238 B
Plaintext
Executable File

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/