40c546400e
There are some build environments we are being asked to support that pbr does not. A quick fallback to handle such environments. Change-Id: Ie5dac2555c73e80e4cf589932a18f31a530bdf65
11 lines
370 B
Plaintext
Executable File
11 lines
370 B
Plaintext
Executable File
cd `dirname $0`
|
|
# If not PBR, use the setup.py.tmpl
|
|
python -c 'import pbr' || ./makesetup
|
|
VERSION=`python setup.py --version`
|
|
python setup.py sdist
|
|
cp dist/pyghmi-$VERSION.tar.gz ~/rpmbuild/SOURCES
|
|
grep -v python.-pbr python-pyghmi.spec > currentbuild.spec
|
|
rpmbuild -bs currentbuild.spec
|
|
rm $1/python-pyghmi-*rpm
|
|
cp ~/rpmbuild/SRPMS/python-pyghmi-$VERSION-1.src.rpm $1/
|