Skip to content

RPM packages and a signed dnf repository - #70

Merged
ivankovic merged 2 commits into
mainfrom
rpm
Nov 11, 2026
Merged

ivankovic merged 2 commits into
mainfrom
rpm

Conversation

@ivankovic

Copy link
Copy Markdown
Owner

Adds an RPM for Fedora, RHEL and its rebuilds (8+), alongside the .deb:

  • [package.metadata.generate-rpm] in Cargo.toml: the same static binary, man pages and completions as the .deb; no dependencies or scriptlets; the .deb's recommends/suggests as rich deps.
  • release.yml: builds an .rpm per architecture, checksums and attests it, attaches it to the release. A new dnf job (after apt, so they never push to gh-pages at once, but regardless of its outcome) signs the published copies and the index with the APT key, under rpm/ on gh-pages, plus stop-bots.repo and key.asc.
  • ci.yml: a new rpm job builds it, publishes a candidate and a release to a throwaway repository with a throwaway key via scripts/build-rpm-repo.sh, and runs packaging/rpm/check-install.sh on Fedora 43, Rocky 9 and Rocky 8: install the candidate, upgrade to the release, check the signature, refuse a tampered index.
  • RELEASING.md, the landing page and the changelog updated. The READMEs are not (AGENTS.md).

Tested locally the same way (Ubuntu 24.04 publishing, offline Fedora 43 / Rocky 9 / Rocky 8 installing), including a passphrase-protected key.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FNs394W7GMp53qrHNPrACN

ivankovic and others added 2 commits November 10, 2026 23:17
cargo generate-rpm builds it from the same static binary, man pages and
completions as the .deb, for x86_64 and aarch64, with no dependencies, no
scriptlets, and the .deb's weak dependencies. The release attests it and
attaches it; a new dnf job, after apt, signs the copies it publishes under
rpm/ on gh-pages and signs the index, with the APT key.

CI's rpm job builds it, publishes it to a throwaway repository with a
throwaway key through the same script, and installs and upgrades from it
on Fedora 43, Rocky 9 and Rocky 8, with a tampered index refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNs394W7GMp53qrHNPrACN
It changed into pages/rpm and then back to the relative `pages`, which
the workflows pass; CI's rpm job found it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNs394W7GMp53qrHNPrACN
@ivankovic
ivankovic merged commit 7a532fb into main Nov 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant