- Shell 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| packages | ||
| scripts | ||
| .gitignore | ||
| README.md | ||
| RPM-GPG-KEY-x27 | ||
| x27-packages.repo | ||
X27-Linux-Packages
RPM packages for Fedora that aren't in the official repos, published to the Forgejo RPM registry on git.xlabsx27.com. Built for Fedora 44 and 45, on x86_64 and aarch64.
| Package | Upstream | Notes |
|---|---|---|
finamp |
finamp-app/finamp | Jellyfin music player. Repackages upstream's prebuilt Linux bundle. Upstream tags 1.0.1-beta become version 1.0.1~beta |
linux-headphones-manager |
X27-Apps/Headphones-Controller | Settings for Nothing / CMF, Sony and HyperX headphones. Built from upstream's source, a Python (PySide6) app. Also installs the hpctl command-line tool and a udev rule for HyperX USB dongles. Replaces headphone-controller, its name up to 0.1.0 |
lm-studio |
lmstudio.ai | Local LLM app. Its license forbids redistribution, so the RPM holds only an installer: on install and update it downloads the pinned AppImage from lmstudio.ai (about 1 GB), checks its sha256 and unpacks it into /usr/lib64/lm-studio/app. If that fails, run sudo /usr/libexec/lm-studio-install. Doesn't work with rpm-ostree install, whose scriptlets have no network; a BlueBuild image build is fine. Upstream 0.4.26-4 becomes version 0.4.26.4 |
papirus-icon-theme-latest |
PapirusDevelopmentTeam/papirus-icon-theme | Upstream's newest Papirus icon theme. Built only for Fedora releases whose own papirus-icon-theme is older, so it may be missing from some. It replaces Fedora's papirus-icon-theme, -dark and -light, so install it with sudo dnf install --allowerasing papirus-icon-theme-latest, and go back with sudo dnf swap papirus-icon-theme-latest papirus-icon-theme |
tutanota-desktop |
tutao/tutanota | Tuta mail, calendar and drive client. Run it with tutanota-desktop. Repackages upstream's AppImage, x86_64 only. The built-in updater is removed, so dnf handles updates |
zen-browser |
zen-browser/desktop | Firefox-based browser. Run it with zen-browser. The built-in updater is removed and turned off by policy, so dnf handles updates |
zed |
zed-industries/zed | Code editor. Stable releases only, no -pre. The built-in updater is turned off by the launcher, so dnf handles updates |
The apps repackage upstream's prebuilt Linux builds, except lm-studio, which
downloads it on install. Each one installs under /usr/lib64/<name>, with a launcher in /usr/bin.
papirus-icon-theme-latest is built from upstream's source tarball into /usr/share/icons, and
linux-headphones-manager from its source into Fedora's Python site-packages.
Install
sudo dnf config-manager addrepo \
--from-repofile=https://git.xlabsx27.com/X27/X27-Linux-Packages/raw/branch/main/x27-packages.repo
sudo dnf install finamp linux-headphones-manager lm-studio tutanota-desktop zen-browser zed
Use x27-packages.repo, not the .repo that Forgejo generates.
Forgejo's file only trusts the registry key, which signs the repo index, so dnf rejects
the packages as unsigned. Packages are signed with RPM-GPG-KEY-x27
(fingerprint DD7B E061 9639 FAF9 14BD A11C D606 0113 B5C3 B4F7). dnf asks you to
import both keys on the first install.
dnf saves the repo as /etc/yum.repos.d/x27-packages.repo. dnf names the file after the
URL's file name, not the repo ID.
If you added Forgejo's .repo before, remove it first. It's saved as
/etc/yum.repos.d/fedora-<release>.repo (e.g. fedora-44.repo), and its repo ID is
gitea-x27-fedora-44. Check the file before deleting it, so you don't remove one of
Fedora's own repos:
grep -l gitea-x27 /etc/yum.repos.d/*.repo # should print only fedora-44.repo
sudo rm /etc/yum.repos.d/fedora-44.repo
In a BlueBuild recipe (X27-Linux), add the same .repo URL under dnf.repos.files.
How it works
packages/<name>/<name>.spec: one folder per package. Files next to the spec, like patches or configs, are copied intoSOURCES.packages/<name>/update.sh(optional): checks upstream and bumps the spec (Version,Release,%changelog) when there's a new release. For GitHub releases it's a single call toscripts/bump-github.sh <spec> <owner/repo> <asset-suffix> [--pre] [--tag-prefix <prefix>]. Pass""as the asset suffix for projects whose releases have no assets. For a repo that tags several apps,--tag-prefixkeeps only the tags starting with that prefix and drops it from the version. For a project on a Forgejo server, pass its URL (e.g.https://git.xlabsx27.com/X27-Apps/Headphones-Controller) instead ofowner/repo.%global fedora_package <name>in a spec (optional): the package is a newer build of something Fedora already ships. CI builds it for a Fedora release only while itsVersionis newer than Fedora's<name>there.scripts/newer-than-fedora.sh <name>: printstrueorfalse, whether to build the package on this Fedora release. Alwaystruewithoutfedora_package.scripts/build.sh <name> [arch...]: builds intoout/. With no arch given, it builds every arch in the spec'sExclusiveArch, or the host's if there's none.scripts/sign.sh: signsout/*.rpmwith the key inRPM_SIGNING_KEY, then checks them againstRPM-GPG-KEY-x27.scripts/publish.sh <group>: uploadsout/*.rpmto the registry group, e.g.fedora-44. If that exact version is already there, it's skipped, never replaced.scripts/prune.sh <group>: deletes every other version of the packages inout/from the group, so the registry only keeps the newest version of each program.scripts/check-bumps.sh <base>: fails if a package changed sincebasebut itsVersionandReleasedidn't. CI runs it before building.scripts/changed-packages.sh [base]: lists the packages that changed sincebase. If anything shared changed (scripts, workflows, the key), it lists every package.scripts/update-all.sh: runs everyupdate.sh.
Forgejo Actions:
.forgejo/workflows/update.ymlruns daily. It runsupdate-all.shand pushes any spec bumps tomain..forgejo/workflows/build.ymlruns on pushes tomain. Aplanjob picks the packages to build, then each package gets its own job per Fedora release, e.g.zed (fedora 44), in afedora:<release>container. Each job checksnewer-than-fedora.sh(and skips the rest if it saysfalse), builds the package, checks it installs, signs it, publishes it, and deletes its older versions. A push rebuilds only the packages it changed; a manual run rebuilds all of them. PRs build without signing or publishing.
The workflows need these repo secrets:
| Secret | Value |
|---|---|
PACKAGES_USER |
X27 |
PACKAGES_TOKEN |
Forgejo access token for X27 with write:package and write:repository |
RPM_SIGNING_KEY |
Armored private key for RPM-GPG-KEY-x27, without a passphrase (build only) |
The runner needs the docker label.
Build locally
podman run --rm -v "$PWD:/src:Z" -w /src fedora:44 bash -c '
dnf -y install rpm-build rpmdevtools dnf-plugins-core &&
dnf -y builddep packages/finamp/finamp.spec &&
scripts/build.sh finamp'
Add a package
- Create
packages/<name>/<name>.spec. If it repackages prebuilt binaries, setdebug_package %{nil}and__strip /bin/true, asfinamp.specdoes, so other arches can be built on an x86_64 runner. - Optionally add an
update.sh. For GitHub releases, copypackages/zed/update.sh; the spec needs a%global upstream_versionline. - Build it locally, then push to
main.
Versions: a package's version is the program's version, and Release starts at 1
for each one (update.sh resets it). If you change a package without a new program
version, bump Release, or CI fails. A published version is never replaced: dnf caches
the repo index, so a different file under the same name fails dnf's checksum check
until that cache expires.