/usr/bin/calibrate_ppa, /usr/bin/pbm2ppa, /usr/bin/pbmtpg, and /usr/bin/pnm2ppa in pnm2ppa-1:1.04-37.fc28.x86_64 have not been linked with the standard Fedora linker flags (LDFLAGS) from redhat-rpm-config. pnm2ppa-redhat.patch needs to be updated to inject LDFLAGS as well. See https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md for information on RPM macros and environment variables provided by the build environment.
Built for rawhide and f28.