Skip to content

Instantly share code, notes, and snippets.

@Sammers21
Last active September 2, 2018 15:35
Show Gist options
  • Save Sammers21/9d74246e7038b0c4cc308010518b6e08 to your computer and use it in GitHub Desktop.
Save Sammers21/9d74246e7038b0c4cc308010518b6e08 to your computer and use it in GitHub Desktop.
set -e
git clone $1
DIR_NAME=$(echo $1 | awk -F'/' '{print $5}')
cd $DIR_NAME
python setup.py bdist_rpm5 || true
abf create $(find build/ -wholename "*SRPMS/*.src.rpm") sammers21
abf get "python-$DIR_NAME"
cd "python-$DIR_NAME"
abf fetch
urpmi *.spec
rpmbuild -bb *.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment