summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/meshbay-node.spec
blob: 2bebb2614a8d63eb86b5cdc57fc92b33c2936c93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Name:           meshbay-node
Version:        __VERSION__
Release:        1%{?dist}
Summary:        MeshBay Node — local file host, streaming server, and group daemon
License:        AGPLv3+
URL:            https://meshbay.org

AutoReqProv:    no
BuildArch:      noarch

Requires:       meshbay-common = %{version}
Recommends:     ffmpeg

%description
MeshBay Node indexes local directories and serves encrypted files to
authenticated group members over WebRTC. Includes video streaming (fMP4
remux via ffmpeg), group chat, and a token-gated loopback control API
on 127.0.0.1:18000 for the CLI and the desktop client.

Installs node code into the shared venv at /opt/meshbay-common/venv/.
Ships a default TMDB API token for the Videos app.
Runs as a systemd user service.

%install
cp -a %{_staging_root}/* %{buildroot}/

%post
if [ -d /run/systemd/system ]; then
    systemctl daemon-reload || true
fi

%preun
if [ -d /run/systemd/system ]; then
    systemctl daemon-reload || true
fi

%files
/opt/meshbay-node
/opt/meshbay-common/venv/lib/python*/site-packages/meshbay_node/
/opt/meshbay-common/venv/lib/python*/site-packages/meshbay_node-*.dist-info/
/opt/meshbay-common/venv/bin/meshbay-node
/usr/bin/meshbay-node
%{_unitdir}/meshbay-node@.service
%{_userunitdir}/meshbay-node.service
/etc/ufw/applications.d/meshbay

%changelog
* Sun Aug 31 2026 MeshBay Team <team@meshbay.org> - %{version}-1
- Packaging overhaul: installs into shared venv under /opt