RPM package

Aperta
#1,091 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
linux
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

Lingua principale
C++
Stelle
5.9k
Fork
499
Merge medio
4h 4m
PR unite (30g)
3

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pbek/QOwnNotes

Tutte le issue di pbek/QOwnNotes

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.