RPM package

Đang mở
#1,091 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
linux
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

Ngôn ngữ chính
C++
Star
5.9k
Fork
499
Merge trung bình
4 giờ 4 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pbek/QOwnNotes

Tất cả issue của pbek/QOwnNotes

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.