/rpm-packaging:rpm-packagingfrom rpm-packaging
Guides writing RPM spec files and building packages with rpmbuild, mock, and koji. Covers macros, scriptlets, dependencies, and packaging Python, Go, and Rust projects.
Ships in rpm-packaging. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
RPM packages are built from spec files containing a Preamble (metadata: Name, Version, Release, License) and a Body (build phases: %prep, %build, %install, %check). The Name-Version-Release (NVR) triple forms the package filename.
rpmdev-setuptree # Create ~/rpmbuild tree
rpmbuild -ba package.spec # Build binary + source RPM
rpmbuild -bb package.spec # Binary RPM only
rpmbuild -bs package.spec # Source RPM only
rpmbuild --rebuild package.src.rpm # Rebuild from SRPM
mock -r fedora-40-x86_64 --rebuild pkg.src.rpm # Isolated chroot build
rpmlint package.spec *.rpm # Lint check (run on SRPM for best coverage)
rpm --addsign package.rpm # Sign a package
| Macro | Value | Macro | Value |
|---|---|---|---|
%{_bindir} | /usr/bin | %{_libdir} | /usr/lib64 |
%{_sysconfdir} | /etc | %{_datadir} | /usr/share |
%{_unitdir} | systemd unit dir | %{_mandir} | /usr/share/man |
%{name} | Package name | %{version} | Package version |
| Scriptlet | $1=1 | $1=0 | Upgrade |
|---|---|---|---|
| %pre/%post | install | n/a | $1=2 |
| %preun/%postun | upgrade remains | removal | n/a |
Use if [ $1 -gt 1 ] not -eq 2 (parallel-installable packages).
%pretrans requires Lua (-p <lua>), not shell|| : for fallible commands%define = no expansion at definition time; %global = expand once immediately# comments — use %dnl for true comments%config(noreplace) for config files users may editSee @rpm-packaging-guide.md for the complete guide covering:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub redhat-community-ai-tools/claude-plugins --plugin rpm-packagingOther plugins' skills for the same job