Using macro definitions inside %changelog results in "error: no description in %changelog"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux