#105 Local rpmautospec-rpm-macros don't put git things to %changelog
Closed: Fixed by churchyard. Opened by churchyard.

My auotomatic changelog is locally evaluated to:

%changelog
* Fri Apr 10 2020 John Doe <packager@example.com> - 0.2.2-1.fc32
- local build

I suppose the name and message should be taken from git commit. What am I doing wrong? Or is the local macro just producing "some valid changelog"?


The local macro has by default a dummy value (iirc), if you want to have the full changelog, you'll need to call rpmautospec on the git repo manually before doing the build.

This could use the %packager macro if defined.

Hmm, either this has been fixed or I'm misunderstanding the issue:
if I do local modifications, I get something like this:

$ echo >>*.spec
$ rpmautospec generate-changelog|head -n3  
* Sat Aug 06 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 0.5-2
- Uncommitted changes

Please post a reproducer.

Indeed.

Metadata Update from @churchyard:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata