Example 1. In /home/[name]/rpms/
$ cd SPECS/
$ rpmbuild -bb gmfsk.spec
.
Wrote: /home/knudfl/rpms/RPMS/x86_64/gmfsk-0.7-0.5.pre1.x86_64.rpm
.
Example 2. In /home/[name]/tmp/
$ cd gmfsk-0.7pre1/
$ patch -p1 < gmfsk-0.7pre1-gcc.patch
patching file src/olivia/mfsk.h
.... I.e. patch the old gmfsk to use gcc-4.1.2
$ ./configure && make : No errors.
Example 3. # apt-get install gmfsk
https://packages.debian.org/jessie/hamradio/gmfsk →
The source and the 4 Debian patches: gmfsk_0.6+0.7pre1.orig.tar.gz , gmfsk_0.6+0.7pre1-2.3.debian.tar.gz → 12-gcc43-fixes.patch, etc.
-