-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fetching sources from spec + sources file to build SRPM #3044
Comments
@qsuscs If I understand correctly, there may be a simple workaround. Submitting a build via URL allows not only linking SRPM also a specfile. When all Can you maybe use the RAW URL for your spec file in your github/gitlab/pagure repository? |
I got an email notification from GitHub about @azrdev replying to this conversation but no comment here. I don't understand why.
I think you are correct. To be sure, let me give an example. Something like:
or
For example, here is one of my packages:
AFAIK it is a standard practise to include the full URL |
I think I removed my comment when I noticed the original issue already answered the question with the line
I agree with you concerning upstream sources, but I was thinking about patches or other files included with the spec file, not upstream. |
Currently, COPR supports three methods to build an SRPM from SCM sources: rpkg1, tito (and tito test), and
make srpm
. For a repository built like the Fedora standard (spec file with URLs in theSourceN
fields, sources file with checksums), there is no direct way to let COPR handle the SRPM.While rpkg supports getting the source files and building SRPMs, it can only fetch from DistGit, not upstream. COPR uses DistGit internally, and this works for subsequent builds, but users do not seem to have write access there and thus cannot use e. g.
fedpkg new-sources
.I still have not understood if tito is suitable for packaging an “external project”, i. e., the maintainer of the RPM and upstream are different entities and the packaging repository is distinct. But again, not COPR’s fault.
This leaves
make srpm
. I have done this in the past, with the Makefile below as.copr/Makefile
, invokingspectool
manually to download the sources,sha512sum
to verify them, andrpmbuild
to build the SRPM. For something I would consider a standard and trivial case, this is needlessly complicated.I do not (yet) maintain any package in Fedora itself, so I do not know the process there exactly, but from the documentation, it seems like COPR works differently in this aspect. This is annoying and confusing, especially when one is planning to submit a package to Fedora eventually and uses COPR as a sort of test environment.
TL;DR: Please add support to automatically fetch source tarballs and build SRPMs from spec files with
SourceN: https://…
lines andsources
files with checksums (like in Fedora package Git repositories) and/or allow backend DistGit access to the user.Footnotes
Wrong place to complain about this, but it was and is really confusing for me that rpkg ≠ rpkg-util, that COPR uses the latter (I guess?) but calls it rpkg, and that it is “no longer developed” as per https://pagure.io/rpkg-util. ↩
The text was updated successfully, but these errors were encountered: