RPM package

未关闭
#1,091 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
linux
领域
build-system

调研方向

Start by reading obs/qownnotes.spec and comparing it with the RPM SPEC and packaging suggestions linked in the issue. Check how the existing package is built for OBS before changing it, since the issue notes differences between Fedora and SUSE macros. Done means the SPEC incorporates the applicable suggestions and builds successfully for its intended targets.

由索引模型根据 Issue 内容生成。

描述

Information

I created a RPM package for QOwnNotes.
I know that you already have a RPM SPEC for OBS, but my solution is dedicated to COPR/Koji and supports EL (RHEL, CentOS, Scientific Linux, Oracle Linux) as well as Fedora.
I was thinking about improving the current SPEC for OBS, but unfortunately I'm not very familiar with macros for SUSE/openSUSE.

Here are some tips from me (mainly for Fedora builds):

  • Use pkgconfig(Qt5Svg) instead of qt5-qtsvg-devel in dependencies. The same applies to other packages.
  • Don't forget about %post, %postun and %posttrans sections. Provide dependencies for them (Requires(post), Requires(postun), Requires(posttrans)).
  • The %check section is also welcome.
  • Use desktop-file-edit to edit desktop files.
  • Make use of the AppData file.
  • Remember about runtime dependencies (git!).
  • Use modern macros: %{autosetup}, %{qmake_qt5}, %{make_build}, %{make_install}, etc.
  • Remove obsoleted macros and fields: %defattr, BuildRoot.
  • Use %license macro for license.
  • Try to use file globbing, especially in %files section.
  • GenericName in Desktop file is a generic name of the application, for example "Web Browser", "Text Editor", "Markdown Editor", etc. You shouldn't use the application name here.
  • It would be nice if you started using unique three-part identifier everywhere you can. This is important mainly for Fedora and Flatpak builds.

See also:

主要语言
C++
星标
5.9k
派生
499
平均合并
4 小时 4 分钟
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pbek/QOwnNotes 的其他 Issue

查看 pbek/QOwnNotes 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。