Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (27 sloc) 1.05 KB
# Get SRPM for gmp
sudo get_reference_source -p gmp
# Build dependencies so we have them to compile (if needed)
sudo yum -y install rpm-build
sudo yum-builddep /usr/src/srpm/debug/gmp-*.amzn1.src.rpm
# Obtain source to build and build it:
tar -xjvf gmp-6.0.0a.tar.bz2
cd gmp-6.0.0
./configure --prefix=/opt/gmp6
mkdir /tmp/gmp
# Install into temporary directory for packaging
sudo make DESTDIR=/tmp/gmp install
# You do test your binaries, right?
make test
# Add file for ldconfig to utilize to the 'package'
mkdir -p /tmp/gmp/etc/
echo /opt/gmp6/lib > /tmp/gmp/etc/
# Build the FPM package and say that it provides (Required for python-crypto)
echo <<EOF >
/usr/local/bin/fpm -s dir -t rpm -C /tmp/gmp --name gmp6 --version 6.0.0a --iteration 2 --description "libgpm 6" --provides '' --after-install .
# Make sure to sign packages
sudo rpm --resign gmp6*.rpm
You can’t perform that action at this time.