Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Simple script to automate the build of RPMs
- DIR='rpmbuild'
- SPECFILE='zookeeper.spec'
- echo "==> Cleaning $DIR"
- rm -Rf ./$DIR
- echo "==> Generating $DIR"
- mkdir -p ./$DIR/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- echo "==> Placing files on the right path"
- cp $SPECFILE ./$DIR/SPECS
- cp -f * ./$DIR/SOURCES
- echo "==> Downloading sources"
- spectool -g $SPECFILE -C $DIR/SOURCES
- echo "==> Building"
- rpmbuild --clean -ba --define "_topdir $(pwd)/$DIR" ./$DIR/SPECS/$SPECFILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement