The error says what you need to do: change /usr/lib64/xfce4/exo-1/exo-compose-mail-1 (the check actually runs at the very end of the build so this is path where the RPM you are building will install the file with the wrong shebang) to use either #!/usr/bin/python3 or #!/usr/bin/python2 explicitly, since Fedora 30 rpmbuild checks files in the RPM and using #!/usr/bin/python shebang without version is considered error -- you are rebuilding SRPM from Fedora 22 where this wasn't enforced, so the build will fails because of this.
You can use the special pathfix.py script (from python3-devel) to fix the shebangs during the build (this will require changing the SPEC file in the dox SRPM), see the F30 change decription for more details, but in this case it would be way easier to simply change it manually because the offending file is one of the "extra" sources, the mailtoparse.py script, so you can simply change the first line to #!/usr/bin/python2 -tt to make it work.
If you want to use the script, just add
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" %{buildroot}%{_libdir}/xfce4/exo-1/exo-compose-mail-1
to the %install section after the exo-compose-mail-1 file is installed.