BlueGit

ict rusty-teams

Files

rusty-teams / packaging / linux / nfpm.yaml

nfpm.yaml

nfpm.yaml 4.1 KiB Download Raw
1# .deb, .rpm and Arch packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
2# the file tree, substitutes its path for ${STAGE} and the binary's glibc floor for ${GLIBC_MIN}
3# (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH and
4# RUSTY_TEAMS_MAINTAINER. nfpm maps NFPM_ARCH (amd64) to the pacman name (x86_64).
5#
6# packaging/linux/package.sh --formats "deb rpm archlinux"
7name: rusty-teams
8arch: ${NFPM_ARCH}
9platform: linux
10version: ${VERSION}
11# semver: 0.5.0-rc.1 becomes 0.5.0~rc.1 in deb/rpm, so pre-releases sort before the release.
12version_schema: semver
13release: 1
14section: net
15priority: optional
16maintainer: ${RUSTY_TEAMS_MAINTAINER}
17homepage: https://github.com/danieldaeschle/rusty-teams
18license: MIT
19description: |-
20 A fast, native Microsoft Teams chat client.
21 Chats, channels, meetings and calls with video and screen sharing, desktop
22 notifications and a tray icon. Signs in through a Teams web page in a
23 Chromium- or Firefox-based browser and never sees the password.
24
25# Microsoft's discontinued Linux client (package `teams`) also installed /usr/bin/teams.
26conflicts:
27 - teams
28
29# Linked directly (ELF NEEDED): glibc, libstdc++, libgcc_s, glib/gio/gobject, ALSA, fontconfig,
30# freetype, xcb, xkbcommon, xkbcommon-x11, libpulse and libpulse-simple. Call tones link Pulse
31# at build time, so a host without those sonames cannot start the binary. Loaded at runtime
32# with dlopen, so the package tools can't see them: Wayland (libwayland-client) and X11
33# (libX11) for the window, Vulkan or EGL for wgpu. libwebrtc dlopens the rest only for calls
34# (PipeWire for Wayland screen sharing, VA-API/GBM/DRM for hardware video, the X11 extensions
35# for X11 screen capture), so those stay recommended. The Teams session runs in the user's
36# own browser, suggested below.
37overrides:
38 deb:
39 depends:
40 - libc6 (>= ${GLIBC_MIN})
41 - libgcc-s1
42 - libstdc++6
43 - libglib2.0-0
44 - libasound2
45 - libfontconfig1
46 - libfreetype6
47 - libxcb1
48 - libxkbcommon0
49 - libxkbcommon-x11-0
50 - libwayland-client0
51 - libx11-6
52 - libvulkan1 | libegl1
53 - libpulse0
54 recommends:
55 - mesa-vulkan-drivers
56 - libegl1
57 - libwayland-egl1
58 - libpipewire-0.3-0
59 - libva2
60 - libva-drm2
61 - libdrm2
62 - libgbm1
63 - libxcomposite1
64 - libxdamage1
65 - libxext6
66 - libxfixes3
67 - libxrandr2
68 - xdg-desktop-portal
69 suggests:
70 - chromium | google-chrome-stable | firefox | firefox-esr
71 rpm:
72 # Soname provides rather than package names, so the same requirements resolve on Fedora/RHEL
73 # (libxkbcommon-x11, libX11, ...) and openSUSE (libxkbcommon-x11-0, libX11-6, ...).
74 depends:
75 - libc.so.6(GLIBC_${GLIBC_MIN})(64bit)
76 - libstdc++.so.6()(64bit)
77 - libglib-2.0.so.0()(64bit)
78 - libgio-2.0.so.0()(64bit)
79 - libgobject-2.0.so.0()(64bit)
80 - libasound.so.2()(64bit)
81 - libfontconfig.so.1()(64bit)
82 - libfreetype.so.6()(64bit)
83 - libxcb.so.1()(64bit)
84 - libxkbcommon.so.0()(64bit)
85 - libxkbcommon-x11.so.0()(64bit)
86 - libwayland-client.so.0()(64bit)
87 - libX11.so.6()(64bit)
88 - (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit))
89 - libpulse.so.0()(64bit)
90 - libpulse-simple.so.0()(64bit)
91 recommends:
92 - mesa-vulkan-drivers
93 - libpipewire-0.3.so.0()(64bit)
94 - libva.so.2()(64bit)
95 - libgbm.so.1()(64bit)
96 - xdg-desktop-portal
97 archlinux:
98 depends:
99 - glibc>=${GLIBC_MIN}
100 - gcc-libs
101 - glib2
102 - alsa-lib
103 - fontconfig
104 - freetype2
105 - libxcb
106 - libxkbcommon
107 - wayland
108 - libx11
109 - vulkan-icd-loader
110 - libglvnd
111 - libpulse
112 recommends:
113 - mesa
114 - pipewire
115 - libva
116 - xdg-desktop-portal
117 - libxcomposite
118 - libxdamage
119 - libxext
120 - libxfixes
121 - libxrandr
122
123contents:
124 - src: ${STAGE}/usr/bin/teams
125 dst: /usr/bin/teams
126 file_info: { mode: 0755 }
127 - src: ${STAGE}/usr/share/
128 dst: /usr/share/
129 type: tree
130
131scripts:
132 postinstall: packaging/linux/postinst.sh
133 postremove: packaging/linux/postinst.sh