Sha256: b4ca0541686437683c0248218968440b413cd27eb805f6900b4a8ed154626848

Contents?: true

Size: 700 Bytes

Versions: 20

Compression:

Stored size: 700 Bytes

Contents

#!/bin/sh

rpm -q rpm-build || yum -y install rpm-build

base="/opt/mu/lib/extras/python_rpm"

for d in BUILD BUILDROOT RPMS SOURCES SPECS SRPMS;do
  mkdir -p ~/rpmbuild/$d
done
cd ~/rpmbuild

echo "Temporarily deleting /usr/local/python-current so rpmbuild can create it"
link="`readlink /usr/local/python-current`"
rm -f /usr/local/python-current
chmod 000 /usr/bin/python # otherwise this brain-dead build system tries to compile parts of itself with the wrong executable
env -i PATH="/bin:/usr/bin" /usr/bin/rpmbuild -ba $base/muthon.spec
chmod 755 /usr/bin/python
find ~/rpmbuild/ -type f -name 'muthon*' -exec ls -la {} \;
if [ "$link" != "" ];then
  ln -s "$link" /usr/local/python-current
fi

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cloud-mu-3.5.1 extras/python_rpm/build.sh
cloud-mu-3.5.0 extras/python_rpm/build.sh
cloud-mu-3.4.0 extras/python_rpm/build.sh
cloud-mu-3.3.2 extras/python_rpm/build.sh
cloud-mu-3.3.1 extras/python_rpm/build.sh
cloud-mu-3.3.0 extras/python_rpm/build.sh
cloud-mu-3.2.0 extras/python_rpm/build.sh
cloud-mu-3.1.6 extras/python_rpm/build.sh
cloud-mu-3.1.5 extras/python_rpm/build.sh
cloud-mu-3.1.4 extras/python_rpm/build.sh
cloud-mu-3.1.3 extras/python_rpm/build.sh
cloud-mu-3.1.2 extras/python_rpm/build.sh
cloud-mu-3.1.2beta2 extras/python_rpm/build.sh
cloud-mu-3.1.1 extras/python_rpm/build.sh
cloud-mu-3.1.0 extras/python_rpm/build.sh
cloud-mu-3.0.2 extras/python_rpm/build.sh
cloud-mu-3.0.1 extras/python_rpm/build.sh
cloud-mu-3.0.0 extras/python_rpm/build.sh
cloud-mu-3.0.0beta extras/python_rpm/build.sh
cloud-mu-2.1.0beta extras/python_rpm/build.sh