RPM package

Abierto
#1,091 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
linux
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

Lenguaje dominante
C++
Estrellas
5.9k
Forks
499
Merge medio
4 h 4 min
PR fusionados (30 d)
3

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pbek/QOwnNotes

Todos los issues de pbek/QOwnNotes

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.