Skip to content

Instantly share code, notes, and snippets.

@ywatai
Created May 15, 2012 16:00
Show Gist options
  • Save ywatai/2702880 to your computer and use it in GitHub Desktop.
Save ywatai/2702880 to your computer and use it in GitHub Desktop.
Running rpmbuild without global (or user-local) build directory
#!/bin/bash
PWD=`pwd`
mkdir -p build/{BUILD,SOURCES,SPECS,RPMS,SRPM}
cp $SRC build/SOURCES
rpmbuild -D "_topdir $PWD/build" $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment