I am building a project in COPR for EPEL and Fedora 35+/-.
Due to some differences in package names between EPEL and Fedora, I have two different spec files (cantera.spec for Fedora and cantera-epel.spec at https://github.com/mefuller/cantera/tree/copr/rpm).
Can anyone advise as to how (if it’s possible) to merge these files together?
You can use if statements with special helper variables defined only on RHEL/Fedora. So for example with your package and gcc-fortran (Fedora) and gcc-gfortran (RHEL) build dependencies you can use something like: