11 Star 0 Fork 16

src-openEuler / createrepo_c

 / 详情

注意spec中changelog撰写规范

已完成
任务
创建于  
2022-08-31 10:24

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

错误信息:

warning: line 81: It's not recommended to have unversioned Obsoletes: Obsoletes: createrepo_c-libs
error: %changelog not in descending chronological order
Wrote: /data/git/workdir/createrepo_c.git-rpmbuild/SRPMS/createrepo_c-0.16.0-3.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

参考: 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

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

评论 (1)

ctyunsystem 创建了任务

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: Base-service, and any of the maintainers: @hexiaowen , @谢志鹏 , @Monday , @zhujianwei001 , @Lv Ying , @znzjugod , @陈子扬 , @HuBin95 , @gaoruoshu

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936 9334959 ctyunsystem 1662709511
1
https://gitee.com/src-openeuler/createrepo_c.git
git@gitee.com:src-openeuler/createrepo_c.git
src-openeuler
createrepo_c
createrepo_c

搜索帮助