Last active
December 29, 2015 12:38
-
-
Save tkuchiki/7671398 to your computer and use it in GitHub Desktop.
setup rpmbuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%_topdir %(echo $HOME)/rpmbuild | |
%_smp_mflags -j3 | |
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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