How to adapt Fedora changelog to opensuse changelog?

So Fedora put their changelog to the spec file like so,


* Sat Mar 11 2017 NAME <EMAIL> - commit
- comment

but opensuse put it in .changes file like so


Mon Nov 25 18:27:27 UTC 2019 - NAME <EMAIL>

- comment

Noticed the time does not exist in Fedora, and commit does not exist in opensuse. So if I copy Fedora spec file into opensuse, how do I adapt the change log?

Hi,

A very good place to ask this, no doubt, is the openSUSE Discord instance. It can also be accessed from Matriix/Riot.im at +opensuse:matrix.org . Reason I’m saying is that Neal Gompa ( a.k.a. Conan Kudo ) is one of the regulars there, and is using OBS heavily.

Oh, ok thank, I have seen conan a few times in kiwi matrix channel.

Hi
Use the spec2changelog command, it’s there if using osc and build :wink:


spec2changelog some.spec > some.changelog

Thanks, but I resort to /usr/lib/build/spec2changelog command, not sure why the one you mention get command not found.

Hi
Softlink to my user bin dir :wink:


cd ~/bin
ln -s /usr/lib/build/spec2changelog