Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active December 29, 2015 12:38
Show Gist options
  • Save tkuchiki/7671398 to your computer and use it in GitHub Desktop.
Save tkuchiki/7671398 to your computer and use it in GitHub Desktop.
setup rpmbuild
%_topdir %(echo $HOME)/rpmbuild
%_smp_mflags -j3
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
# CentOS 6
yum install -y rpm-build rpmdevtools
# CentOS 5
yum install -y rpm-build gcc-c++ redhat-rpm-config
rpm -ivh https://packages.endpoint.com/rhel/5/os/x86_64/fakeroot-1.9.6-17.x86_64.rpm
rpm ivh ftp://fr2.rpmfind.net/linux/epel/5/ppc/rpmdevtools-6.8-1.el5.noarch.rpm
# create .rpmmacros, $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
## see .rpmmacros and rpmbuild_tree
rpmdev-setuptree
rpmbuild/
├── BUILD
├── RPMS
├── SOURCES
├── SPECS
└── SRPMS
5 directories, 0 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment