when folks use rpmautospec, they can no longer use fedpkg import because the SRPM has the expanded form of the rpmautospec macros. Using fedpkg import also throws away the git history. So, we need to document how to import a package without using fedpkg import.
fedpkg import
See this thread for more info:
https://lists.fedoraproject.org/archives/list/devel%40lists.fedoraproject.org/message/YEU4U72X6PWZWWNTPF755W5JIQ3IVHXH/
Steps (need to be verified):
git remote add origin ...
git fetch origin
git branch main -t origin/main
git rebase origin/main
I think this has other caveats though:
fedpkg new-sources
CC: @vondruch @churchyard
This would probably deserve its own page, because:
git init
However, part of this are pure git tricks, while the others are fedora specific tricks, not sure how combine these ...
Wouldn't be better to teach fedpkg to rebase the local repository and make from it the dist-git repo? That would save us from the need to describe this ;)
And BTW, part of the issue might be already resolved actually:
https://pagure.io/rpkg/pull-request/560
I have just never found the cycles to try the final implementation :see_no_evil:
Wouldn't be better to teach fedpkg to rebase the local repository and make from it the dist-git repo? That would save us from the need to describe this ;) And BTW, part of the issue might be already resolved actually: https://pagure.io/rpkg/pull-request/560 I have just never found the cycles to try the final implementation :see_no_evil:
So this works:
$ fedpkg remote add --remote-name origin --repo-name my-new-package
However, it adds just anonymous URL :/
Request of non-anonymous URL is here:
https://pagure.io/rpkg/issue/599
Yeh, it'll be good if we can teach fedpkg all of this, otherwise it can be quite a complex process, especially for newcomers who are meant to benefit from fedpkg usage. I had to write this all up for our Outreachy intern:
fedpkg
https://pagure.io/neuro-sig/NeuroFedora/issue/496#comment-773460
Now, they had committed other files to the SCM etc, so there were extra steps to get things done. It's really not a simple process at all. I'm now wondering if I should've asked them to use fedpkg import and then correct the spec instead---we'd lose git history, but it'd be wayy easier!
However, it adds just anonymous URL :/ Request of non-anonymous URL is here: https://pagure.io/rpkg/issue/599
This has been resolved upstream. Not sure when it lands in Fedora though.