Skip to content

Instantly share code, notes, and snippets.

@danigiri
Created May 27, 2012 18:53
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save danigiri/2815502 to your computer and use it in GitHub Desktop.
Save danigiri/2815502 to your computer and use it in GitHub Desktop.
Hack to have maven-rpm-plugin work on Mac OS X
#!/bin/bash
# with this hack in your path, maven rpm plugin will work on mac os x
# -bb $1
# --buildroot $2
buildroot_="$3"
# --define $4
topdir_="$5"
# --target $6
# target $7
spec_="$8"
/usr/local/bin/rpmbuild -bb --buildroot "$buildroot_" --define "$topdir_" --target 'noarch' "$spec_"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment