Hide Forgot
`fedpkg-copr srpm` for some reason contacts koji (when --dist master is used). But koji hangs on http://, so one needs to reconfigure to use https://. This however leads to error: $ fedpkg-copr --dist master srpm error: line 5: Illegal char '-' (0x2d) in: Release: 0.fc26-pending error: query of specfile /tmp/build_package_repo/rhcopr-ping/rhcopr-ping.spec failed, can't parse Could not execute srpm: Could not get n-v-r-e from '\n\n' That's because fedpkg (koji?) set's dist tag to something like '.fc26-staging', and rpm claims dash should be in dist tag. This can be worked-around by: $ fedpkg-copr sources Downloading README.xz ######################################################################## 100.0% $ rpmbuild -bs *.spec --define '_sourcedir /tmp/build_package_repo/rhcopr-ping' \ --define 'dist .whatever_without_dash' Possibly we could avoid using 'fedpkg-copr' at all, at least in Internal Copr. I guess upstream is not using 'master' branch/dist now, but rather 'f26' -- but rather CCing upstream maintainers to let them know.
(In reply to Pavel Raiskup from comment #0) > `fedpkg-copr srpm` for some reason contacts koji (when --dist master is > used). Right, because we need to translate 'master' to 'f26' (that info is not hardwired in fedpkg.
Fedpkg upstream PR: https://pagure.io/fedpkg/pull-request/88
Quick test against fedora rawhide succeeded: https://copr.devel.redhat.com/coprs/praiskup/ping/build/6619/