There are two parts to the RPM spec, one is the format provided by RPM.
See rpm.org - Spec file format
The other is the macros that a distribution, like fedora, uses on top of the RPM base.
I’m not sure where you how the fedora macros are documented and examples are a good guide.
You can get the .spec files from the Fedora source RPM by installing the source RPM via dnf.
You can also find the git repo behind the package as well.
The same for copr builds. There is a dist-git repo that contains the spec file and patches.
For example this is for one of my copr packages: https://copr-dist-git.fedorainfracloud.org/cgit/barryascott/tools/rust-sfind.git/commit/?h=f40
Hello, all spec files are available here, if you want it complete (edit: I fixed the link)
For copr, there’s copr download-build --help (the --spec option might help).
If you want to simply rebuild package from Fedora, no need to have spec file in hand - you may do copr build-distgit <your-project --name <pkgname> --distgit fedora.
Is this part of the dnf copr command? I am on Kinoite where that is missing, I found a replacement for the copr enable part and could include the download of spec files in there.