已开启
注意spec中changelog撰写规范 #7
AtomGit-Bot创建于  2022年8月31日
AtomGit-Bot
2022年8月31日 创建

https://gitee.com/src-openeuler/pcp/blob/openEuler-20.03-LTS-SP1/pcp.spec

错误信息:

error: %changelog not in descending chronological order
Wrote: /data/git/workdir/pcp.git-rpmbuild/SRPMS/pcp-4.1.3-13.oe1.src.rpm

输入图片说明

规范写法是:

a. 基本格式:

* 星期简写 月简写 当月第几天(数字) 年(数字) 名称 邮箱 - 版本
- 修改内容(突出重点)

b. 日期应该是从上到下由近及远
c. 日期简写参考:

一月:January 简写:Jan
二月:February 简写:Feb
三月:March 简写:Mar
四月:April 简写:Apr
五月:May 简写:May
六月:June 简写:Jun
七月:July 简写:Jul
八月:August 简写:Aug
九月:September 简写:Sep
十月:October 简写:Oct
十一月:November 简写:Nov
十二月:December 简写:Dec

星期一:Monday 简写:Mon
星期二:Tuesday 简写:Tue
星期三:Wednesday 简写:Wed
星期四:Thursday 简写:Thu
星期五:Friday 简写:Fri
星期六:Saturday 简写:Sat
星期日:Sunday 简写:Sun

d. 空行分隔每条changelog记录

参考: https://rpm-packaging-guide.github.io/

%changelog, is a list of datestamped entries for each 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 format for the first line:
* Day-of-Week Month Day Year Name Surname <email> - Version-Release

Follow this format for the actual change entry:

Each change entry can contain multiple items - one for each change
Each item starts on a new line.
Each item begins with a - character.
An example datestamped entry:

%changelog
* Tue May 31 2016 Adam Miller <maxamillion@fedoraproject.org> - 0.1-1
- First bello package
- Example second item in the changelog for version-release 0.1-1

总结:
建议社区加强这类规范性检测,开发人员加强规范意识。

likedislike
AAtomGit-Bot
2022年8月31日 创建了任务
openeuler-ci-bot
openeuler-ci-bot成员
2022年8月31日 评论:

Hi ctyunsystem, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Application, and any of the maintainers: @small_leek , @jimmy_hero , @zhuchunyi , @AlexZ11 , @caodongxia

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2022年8月31日 添加了 &nbsp; sig/Application 标签
AAtomGit-Bot
2022年9月14日 修改了描述
AAtomGit-Bot
2022年9月14日 关联了src-openEuler/pcp Pull Request !75