I am trying to make an rpm of gcc 8.2 for centos 7.

Honestly I am trying my best to understand how to use rpmbuild and .spec file, but it's too hard for me to understand.

I tried packaging my hello world program using fedoraproject's tutorial and succeded.

But when I tried building wget rpm using ibm's Packaging software with RPM tutorial, I failed.

I am trying to build gcc 8.2(https://ftp.gnu.org/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz)

I use this process to build gcc, and I want the packaged rpm to do exactly like this, precompiled.

./configure --with-system-zlib --disable-multilib --enable-languages=c,c++ --prefix=/opt/gcc-8.2.0

make -j 12

make install

Can anyone write an example spec file for me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.