Skip to content

Instantly share code, notes, and snippets.

@taizo
Created April 23, 2012 01:04
Show Gist options
  • Save taizo/2467937 to your computer and use it in GitHub Desktop.
Save taizo/2467937 to your computer and use it in GitHub Desktop.
Creating an RPM build environment
#!/bin/sh
rpmbuild_user=rpmbuild
yum install -y rpm-build
/sbin/useradd -c "RPM Package Maintainer" ${rpmbuild_user}
su - ${rpmbuild_user} -c "mkdir -p pkgs/{RPMS/{noarch,i{3,4,5,6}86,x86_64},SRPMS,SOURCES,SPECS,BUILD,BUILDROOT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment