23bb814bac
Roadmap #3 (install on other devices). Bazzite already ships gamescope + PipeWire + the NVIDIA stack, so the host slots in with minimal new deps (ffmpeg-libs from RPM Fusion + opus + libei). - packaging/rpm/punktfunk.spec — builds punktfunk-host from source (cargo), installs the binary + udev rule + systemd user unit + headless helpers; Requires/Recommends mapped from the Ubuntu bootstrap deps to Fedora. - packaging/bootc/Containerfile — layer punktfunk into a bazzite-nvidia bootc image for atomic, image-based installs. - packaging/bazzite/host.env — gamescope-default appliance config (spawned per session). - packaging/copr/ + packaging/README.md — COPR build-from-SCM settings + install docs (rpm-ostree and bootc paths), and why not Flatpak. - LICENSE-MIT + LICENSE-APACHE — materialize the declared `MIT OR Apache-2.0` (was unfiled); the RPM ships them. Not buildable on the Ubuntu dev box (no rpm tooling) — the COPR/Fedora build is operator-run; all spec-referenced files verified present and the cargo build is green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.6 KiB
Markdown
36 lines
1.6 KiB
Markdown
# COPR build-from-SCM settings
|
|
|
|
COPR builds the RPM from this git repo (no manual SRPM upload). Configure the project
|
|
once in the COPR web UI (or with `copr-cli`):
|
|
|
|
**Project → New Build → SCM**
|
|
- Clone URL: `https://git.unom.io/unom/punktfunk`
|
|
- Committish: `main` (or a release tag)
|
|
- Subdirectory: *(repo root)*
|
|
- Spec File: `packaging/rpm/punktfunk.spec`
|
|
- Source build method: `rpkg` (or `make_srpm`)
|
|
|
|
**Project settings**
|
|
- Chroots: `fedora-41-x86_64`, `fedora-42-x86_64` (match your Bazzite Fedora base;
|
|
`rpm -E %fedora` on the host tells you which). Add `aarch64` if needed.
|
|
- External repositories (so `ffmpeg-devel` resolves at build time):
|
|
`https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$releasever.noarch.rpm`
|
|
and the matching `-free-` repo.
|
|
- Enable network during build (cargo fetches crates from crates.io) — COPR allows this by
|
|
default.
|
|
|
|
`copr-cli` equivalent:
|
|
|
|
```sh
|
|
copr-cli create punktfunk --chroot fedora-42-x86_64 \
|
|
--repo 'https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$releasever.noarch.rpm' \
|
|
--repo 'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$releasever.noarch.rpm'
|
|
copr-cli buildscm punktfunk \
|
|
--clone-url https://git.unom.io/unom/punktfunk \
|
|
--commit main --spec packaging/rpm/punktfunk.spec --method rpkg
|
|
```
|
|
|
|
Note: COPR caps build time/RAM; a full `cargo build --release` of the host (FFmpeg/PipeWire
|
|
sys-crates + aws-lc-rs) is heavy but within the default COPR limits. If a chroot OOMs, lower
|
|
parallelism with `CARGO_BUILD_JOBS` in the spec's `%build`.
|