Hi I am trying to dynamically create my RPM files. So I am passing defines to rpmbuild:
``` rpmbuild --ba --define "_VERSION `<command_to_generate_version>`" --define "_CHANGELOG `cat <path_to_changelog>`" <path_to_spec_file> ```
I am able to dynamically use ${_VERSION} in the .spec file, but for changelog: ``` %changelog
%{_CHANGELOG} ``` Is not working. When running the above `rpmbuild` command I am getting this error: "error: no description in %changelog"
Is it not possible to use macro defines inside the %changelog section? If so is there any other way I could dynamically set the changelog and not have to generate a new spec file for each release?
Thank you, Puya
packaging@lists.fedoraproject.org