On Wed, Dec 21, 2022 at 6:48 AM Fabio Valentini <decathorpe@xxxxxxxxx> wrote: > > On Wed, Dec 21, 2022 at 11:02 AM Florian Weimer <fweimer@xxxxxxxxxx> wrote: > > > > Is there a lightweight tool to take the repository generated by > > %autosetup -S, with some new commits on to top, and turn that into a > > spec file update? That is, generated the new patches, and make a > > conservative change to the spec file? > > It's far from "automagic", but I think you could use "fedpkg prep" to > unpack sources, initialize the git repository, and apply patches. > Then apply your changes on top, generate a new patch for the new > commit with "git format-patch HEAD~1 -o .." or something like that, > and add the new patch to the spec file at the bottom of the list. > I strongly recommend using "%autosetup -S git_am" instead, since that will apply the patches as proper git commits. But otherwise, yeah, I use "fedpkg prep" to create a tree. -- 真実はいつも一つ!/ Always, there's only one truth! _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue