RPM package

オープン
#1,091 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
3

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pbek/QOwnNotes のほかの issue

pbek/QOwnNotes の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。