libXpm-devel 3.5.4-1 appears to be missing a dependency on libX11-devel, see the pkgconfig file and #includes in xpm.h.
Thanks for the report. I've fixed it in libXpm-3.5.4.1-1 which should hit rawhide tomorrow or thereabouts.