Files
deckcraft/packaging/linux/nfpm.yaml
T
tydude001 500a90c77a Merge main into rpm-soname-requires
main's co-installable Nightly packages (#2350) rename the .desktop, metainfo and doc directory and
drop the mime file. The one-by-one /usr/share list now takes those names from package.sh
(${NFPM_DESK_ID}, ${NFPM_NAME}), which also drops the mime entry when none is staged, as it does
the /usr/lib tree. Packaged from v0.18.1's binaries, stable and Nightly hold the same files as
main's, .rpm and .deb; both install with rpm -U and zypper on Tumbleweed, dnf on Fedora 44 and apt on
Debian 13, without owning /usr/share/mime.
2026-11-25 08:05:27 -06:00

101 lines
4.0 KiB
YAML

# .deb and .rpm packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
# the file tree, substitutes its path for ${STAGE} (nfpm doesn't expand env vars in `src`) and
# exports VERSION and NFPM_ARCH.
#
# nfpm package -f packaging/linux/nfpm.yaml -p deb -t dist/release/
name: ${NFPM_NAME}
arch: ${NFPM_ARCH}
platform: linux
version: ${VERSION}
# semver: 0.2.0-rc.1 becomes 0.2.0~rc.1 in deb/rpm, so pre-releases sort before the release.
version_schema: semver
release: 1
section: editors
priority: optional
maintainer: ${DECKCRAFT_MAINTAINER}
vendor: Learning Machines LLC
homepage: https://getartcraft.com/apps/deckcraft
license: MIT OR Apache-2.0
description: |-
Open-source, native presentation app that works the way PowerPoint users
expect. Themes, layouts, shapes, pictures, tables, charts, transitions and
animations; opens and saves PowerPoint (.pptx) files; full-screen slide show
with presenter view; GPU rendering (wgpu).
Includes deckcraft-cli, a headless renderer and command runner.
# The binaries link only glibc and libgcc_s directly. Windowing (X11/Wayland, xkbcommon) and the
# GPU (Vulkan, EGL/GL) are loaded at runtime, so they are dependencies/recommendations here
# rather than ELF NEEDED entries.
overrides:
deb:
depends:
- libc6 (>= 2.35)
- libgcc-s1
- libxkbcommon0
- libasound2 | libasound2t64
- libvulkan1 | libegl1
recommends:
- libwayland-client0
- libx11-6
- libx11-xcb1
- libxcursor1
- libxi6
- libxrandr2
- mesa-vulkan-drivers
- xdg-desktop-portal
rpm:
# Library sonames rather than package names, so the same requirements resolve on Fedora/RHEL
# and openSUSE (which has no libxkbcommon, vulkan-loader or libglvnd-egl package). The glibc
# floor names libm because the binaries' GLIBC_2.35 symbols (hypot, hypotf) are libm's: RHEL 9's
# glibc 2.34 provides libc.so.6(GLIBC_2.35) through backports, but not this, so it refuses.
depends:
- libc.so.6()(64bit)
- libm.so.6(GLIBC_2.35)(64bit)
- libgcc_s.so.1()(64bit)
- libxkbcommon.so.0()(64bit)
- (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit))
- libasound.so.2()(64bit)
# The windowing libraries the GUI loads at runtime, by soname too, so the recommendations resolve on
# openSUSE as well. Without libX11-xcb and libxkbcommon-x11 the GUI cannot start on X11.
recommends:
- libwayland-client.so.0()(64bit)
- libX11.so.6()(64bit)
- libXcursor.so.1()(64bit)
- libXi.so.6()(64bit)
- libX11-xcb.so.1()(64bit)
- libxkbcommon-x11.so.0()(64bit)
- libwayland-egl.so.1()(64bit)
- mesa-vulkan-drivers
- xdg-desktop-portal
contents:
- src: ${STAGE}/usr/bin/${NFPM_BIN}
dst: /usr/bin/${NFPM_BIN}
file_info: { mode: 0755 }
- src: ${STAGE}/usr/bin/${NFPM_CLI}
dst: /usr/bin/${NFPM_CLI}
file_info: { mode: 0755 }
# Named one by one rather than as a tree of /usr/share: a tree would also own shared directories
# such as /usr/share/mime, which openSUSE's filesystem package owns with other modes, and RPM
# refuses to install a package that conflicts with it. ${NFPM_DESK_ID} and ${NFPM_NAME} are filled
# in by package.sh (a Nightly renames them), which also drops the mime entry when none is staged.
- src: ${STAGE}/usr/share/applications/${NFPM_DESK_ID}.desktop
dst: /usr/share/applications/${NFPM_DESK_ID}.desktop
- src: ${STAGE}/usr/share/mime/packages/ai.storyteller.deckcraft.xml
dst: /usr/share/mime/packages/ai.storyteller.deckcraft.xml
- src: ${STAGE}/usr/share/metainfo/${NFPM_DESK_ID}.metainfo.xml
dst: /usr/share/metainfo/${NFPM_DESK_ID}.metainfo.xml
- src: ${STAGE}/usr/share/icons/hicolor/
dst: /usr/share/icons/hicolor/
type: tree
- src: ${STAGE}/usr/lib/
dst: /usr/lib/
type: tree
- src: ${STAGE}/usr/share/doc/${NFPM_NAME}/
dst: /usr/share/doc/${NFPM_NAME}/
type: tree
scripts:
postinstall: packaging/linux/postinst.sh
postremove: packaging/linux/postinst.sh