name: fedora-packaging
description: Fedora and EPEL packaging and maintenance specialist. Enforces Fedora Packaging Guidelines (SPDX licenses, unbundling, %autorelease/%autochangelog), clean chroot builds with mock, dist-git workflow (fedpkg), Koji build system integration, Bodhi update lifecycle, and EPEL enterprise compatibility.
license: Apache-2.0
compatibility: Requires Linux environment, fedpkg, mock, and koji.
metadata:
author: Eshan Roy
version: "0.1.0"
Fedora Packaging Specialist
The fedora-packaging skill guides AI agents through Fedora and Extra Packages for Enterprise Linux (EPEL) package maintenance, adhering to official Fedora Packaging Guidelines, Koji build infrastructure, and Bodhi release updates.
1. Fedora Packaging Lifecycle Workflow
flowchart TD
SPEC["1. Author Fedora-Compliant Spec\n(SPDX License, %autorelease, %autochangelog)"] --> UNBUNDLE["2. Audit Unbundling Policy\n(Strictly unbundle vendored libraries)"]
UNBUNDLE --> MOCK["3. Clean Chroot Build with Mock\n(mock -r fedora-40-x86_64 *.src.rpm)"]
MOCK --> REVIEW["4. Quality Check with fedora-review\n(fedora-review -b *.src.rpm)"]
REVIEW --> DISTGIT["5. Commit & Push to Fedora dist-git\n(fedpkg clone -> commit -> push)"]
DISTGIT --> KOJI["6. Submit Official Koji Build\n(fedpkg build)"]
KOJI --> BODHI["7. File Bodhi Update\n(Submit to updates-testing pocket)"]
BODHI --> KARMA["8. Collect Karma & Automated Testing\n(Promote to stable repository)"]
The 8-Step Fedora Packaging Discipline:
- Adhere to Fedora Guidelines: Use valid SPDX license identifiers, enforce
%autorelease and %autochangelog, and use approved directory macros.
- Strictly Unbundle Dependencies: Fedora policy strictly prohibits bundling third-party static libraries. Unbundle all vendored libraries and link dynamically against Fedora system packages.
- Execute Clean Mock Builds: Always build the package using
mock -r fedora-<version>-x86_64 to verify missing BuildRequires in an isolated chroot.
- Audit with
fedora-review: Run fedora-review to check license files, compiler hardening flags, directory ownership, and macro usage.
- Manage dist-git via
fedpkg: Track package branches (rawhide, f40, f39, epel9) using fedpkg.
- Submit Official Koji Builds: Build packages on the official Koji build farm (
fedpkg build).
- File Bodhi Updates: Submit successful Koji builds to Bodhi for distribution to
updates-testing.
- EPEL Compatibility Auditing: When targeting Enterprise Linux / EPEL, verify older toolchain constraints (CMake/GCC versions, Python runtimes) and missing dependencies.
2. Fedora vs Standard RPM Distinctions
| Feature / Convention |
Standard Generic RPM |
Fedora Packaging Policy |
| Release Field |
1%{?dist} |
%autorelease (managed by rpmautospec) |
| Changelog Section |
Manual changelog entries |
%autochangelog (generated from git log) |
| Licensing |
Free-form license strings |
Strict SPDX License Identifiers Only |
| Bundled Libraries |
Permitted if packaged cleanly |
STRICTLY PROHIBITED (must unbundle) |
| Isolated Build Tool |
Raw rpmbuild in user directory |
mock isolated chroot |
| Official Build Farm |
N/A |
Koji (koji.fedoraproject.org) |
| Update Management |
Direct repository upload |
Bodhi karma & testing gating system |
3. Operational Safety Boundaries
- Tier 0 (Diagnostics): Querying Koji build status (
koji buildinfo), checking Bodhi updates, running fedora-review, and inspecting dist-git is fully autonomous.
- Tier 1 (Workspace Builds): Generating SRPMs and building inside local
mock chroots runs autonomously.
- Tier 3 (Host Mutating / Privileged): Submitting official Koji builds (
fedpkg build), pushing to Fedora dist-git, creating Bodhi updates, or modifying host /etc/yum.repos.d/ strictly requires explicit human authorization.
4. Reference Library
- fedora-policy.md — Fedora Packaging Guidelines, SPDX licensing, and unbundling mandates.
- fedora-spec-conventions.md —
%autorelease, %autochangelog, and rpmautospec.
- mock.md — Isolated clean-chroot building with
mock.
- fedpkg.md — Working with Fedora dist-git, sources, and branches.
- koji.md — Koji build system, side tags, and build troubleshooting.
- bodhi.md — Bodhi update creation, karma thresholds, and gating tests.
- epel.md — Packaging for Extra Packages for Enterprise Linux (EPEL 8/9/10).
1---2name: fedora-packaging3description: Fedora and EPEL packaging and maintenance specialist. Enforces Fedora Packaging Guidelines (SPDX licenses, unbundling, %autorelease/%autochangelog), clean chroo4---5---6name: fedora-packaging7description: Fedora and EPEL packaging and maintenance specialist. Enforces Fedora Packaging Guidelines (SPDX licenses, unbundling, %autorelease/%autochangelog), clean chroot builds with mock, dist-git workflow (fedpkg), Koji build system integration, Bodhi update lifecycle, and EPEL enterprise compatibility.8license: Apache-2.09compatibility: Requires Linux environment, fedpkg, mock, and koji.10metadata:11 author: Eshan Roy12 version: "0.1.0"13---1415# Fedora Packaging Specialist1617The `fedora-packaging` skill guides AI agents through Fedora and Extra Packages for Enterprise Linux (EPEL) package maintenance, adhering to official Fedora Packaging Guidelines, Koji build infrastructure, and Bodhi release updates.1819---2021## 1. Fedora Packaging Lifecycle Workflow2223```mermaid24flowchart TD25 SPEC["1. Author Fedora-Compliant Spec\n(SPDX License, %autorelease, %autochangelog)"] --> UNBUNDLE["2. Audit Unbundling Policy\n(Strictly unbundle vendored libraries)"]26 UNBUNDLE --> MOCK["3. Clean Chroot Build with Mock\n(mock -r fedora-40-x86_64 *.src.rpm)"]27 MOCK --> REVIEW["4. Quality Check with fedora-review\n(fedora-review -b *.src.rpm)"]28 REVIEW --> DISTGIT["5. Commit & Push to Fedora dist-git\n(fedpkg clone -> commit -> push)"]29 DISTGIT --> KOJI["6. Submit Official Koji Build\n(fedpkg build)"]30 KOJI --> BODHI["7. File Bodhi Update\n(Submit to updates-testing pocket)"]31 BODHI --> KARMA["8. Collect Karma & Automated Testing\n(Promote to stable repository)"]32```3334### The 8-Step Fedora Packaging Discipline:351. **Adhere to Fedora Guidelines**: Use valid SPDX license identifiers, enforce `%autorelease` and `%autochangelog`, and use approved directory macros.362. **Strictly Unbundle Dependencies**: Fedora policy strictly prohibits bundling third-party static libraries. Unbundle all vendored libraries and link dynamically against Fedora system packages.373. **Execute Clean Mock Builds**: Always build the package using `mock -r fedora-<version>-x86_64` to verify missing `BuildRequires` in an isolated chroot.384. **Audit with `fedora-review`**: Run `fedora-review` to check license files, compiler hardening flags, directory ownership, and macro usage.395. **Manage dist-git via `fedpkg`**: Track package branches (`rawhide`, `f40`, `f39`, `epel9`) using `fedpkg`.406. **Submit Official Koji Builds**: Build packages on the official Koji build farm (`fedpkg build`).417. **File Bodhi Updates**: Submit successful Koji builds to Bodhi for distribution to `updates-testing`.428. **EPEL Compatibility Auditing**: When targeting Enterprise Linux / EPEL, verify older toolchain constraints (CMake/GCC versions, Python runtimes) and missing dependencies.4344---4546## 2. Fedora vs Standard RPM Distinctions4748| Feature / Convention | Standard Generic RPM | Fedora Packaging Policy |49|---|---|---|50| **Release Field** | `1%{?dist}` | `%autorelease` (managed by rpmautospec) |51| **Changelog Section** | Manual changelog entries | `%autochangelog` (generated from git log) |52| **Licensing** | Free-form license strings | **Strict SPDX License Identifiers Only** |53| **Bundled Libraries** | Permitted if packaged cleanly | **STRICTLY PROHIBITED** (must unbundle) |54| **Isolated Build Tool** | Raw `rpmbuild` in user directory | `mock` isolated chroot |55| **Official Build Farm** | N/A | Koji (`koji.fedoraproject.org`) |56| **Update Management** | Direct repository upload | Bodhi karma & testing gating system |5758---5960## 3. Operational Safety Boundaries6162- **Tier 0 (Diagnostics)**: Querying Koji build status (`koji buildinfo`), checking Bodhi updates, running `fedora-review`, and inspecting dist-git is fully autonomous.63- **Tier 1 (Workspace Builds)**: Generating SRPMs and building inside local `mock` chroots runs autonomously.64- **Tier 3 (Host Mutating / Privileged)**: Submitting official Koji builds (`fedpkg build`), pushing to Fedora dist-git, creating Bodhi updates, or modifying host `/etc/yum.repos.d/` strictly requires explicit human authorization.6566---6768## 4. Reference Library6970- [fedora-policy.md](references/fedora-policy.md) — Fedora Packaging Guidelines, SPDX licensing, and unbundling mandates.71- [fedora-spec-conventions.md](references/fedora-spec-conventions.md) — `%autorelease`, `%autochangelog`, and rpmautospec.72- [mock.md](references/mock.md) — Isolated clean-chroot building with `mock`.73- [fedpkg.md](references/fedpkg.md) — Working with Fedora dist-git, sources, and branches.74- [koji.md](references/koji.md) — Koji build system, side tags, and build troubleshooting.75- [bodhi.md](references/bodhi.md) — Bodhi update creation, karma thresholds, and gating tests.76- [epel.md](references/epel.md) — Packaging for Extra Packages for Enterprise Linux (EPEL 8/9/10).