DevHeads.net

Update a package with new upstream release

Upstream releases a new version.
I changed the .spec file, generate a srpm file, then perform again

$ fedpgk import <newfile.src.rpm>

This creates a tar.gz file in my git dir, and I did commit this file.
<a href="https://src.fedoraproject.org/rpms/pcb-rnd/blob/master/f/pcb-rnd-2.1.0.tar.gz" title="https://src.fedoraproject.org/rpms/pcb-rnd/blob/master/f/pcb-rnd-2.1.0.tar.gz">https://src.fedoraproject.org/rpms/pcb-rnd/blob/master/f/pcb-rnd-2.1.0.t...</a>

I think this is wrong, so:
1. Can I git delete / push this tar.gz file ? Other action ?
2. It is not a fedpkg import command to use ? fedpkg new-sources ? How ?
3. Is there a documentation related to these maintenance actions ?

Thanks for your help.

Comments

Re: Update a package with new upstream release

By Alexander Ploumistos at 11/25/2018 - 14:47

Hi Alain,

I believe these two documents should come in handy:
<a href="https://fedoraproject.org/wiki/Package_maintenance_guide" title="https://fedoraproject.org/wiki/Package_maintenance_guide">https://fedoraproject.org/wiki/Package_maintenance_guide</a>
<a href="https://fedoraproject.org/wiki/Package_update_HOWTO" title="https://fedoraproject.org/wiki/Package_update_HOWTO">https://fedoraproject.org/wiki/Package_update_HOWTO</a>
(the second one is mostly about the update process)

Source packages are not part of the "usual" git transactions, they are
modified with "fedpkg sources" and "fedpkg new-sources" commands and
uploaded to the lookaside cache. The "sources" file in your git folder
points to the current source package for the branch you are working
on. If you've messed up the source packages, a "fedpkg new-sources
<upstream tarball>" should set things straight.

Best regards,
Alex

Re: Update a package with new upstream release

By Alain Vigne at 11/25/2018 - 15:08

Thanks a lot Alex

So, "old wiki" is still relevant...
I was searching in
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/">https://docs.fedoraproject.org/en-US/packaging-guidelines/</a>

On Sun, Nov 25, 2018 at 7:47 PM Alexander Ploumistos <