%changelog, is a list of datestamped entries foreach Version-Release of the package.
They log packaging changes, not software changes. Examples of packaging changes: adding a patch, changing the build procedure in %build.
Follow this formatfor the firstline:
* Day-of-Week Month Day Year Name Surname <email> - Version-Release
Follow this formatfor the actual change entry:
Each change entry can contain multiple items - one foreach change
Each item starts onanewline.
Each item begins with a - character.
An example datestamped entry:
%changelog
* Tue May 312016 Adam Miller <maxamillion@fedoraproject.org> - 0.1-1
- First bello package
- Example seconditem in the changelog forversion-release 0.1-1
1 个回复
nccloud
错误信息:
error: %changelog not in descending chronological order
Wrote: /data/git/workdir/tuna.git-rpmbuild/SRPMS/tuna-0.14.1-1.oe1.src.rpm
规范写法是:
a. 基本格式:
b. 日期应该是从上到下由近及远
c. 日期简写参考:
d. 空行分隔每条changelog记录
参考: https://rpm-packaging-guide.github.io/