This document describes how to make a new release of the trafix project, including versioning, tagging, and RPM packaging for Fedora. Ensure you have the following installed:
- rpm-build
- rpmdevtools
- gcc, make
- git
- libpcap-devel, ncurses-devel, lm_sensors
- A proper ~/rpmbuild structure:
rpmdev-setuptree- License check
licensecheck -r .- Make Code Changes: Make your changes in the source code.
nano src/main.c
git add src/main.c
git commit -m "Fix: correct packet stats rendering"- Bump the Version: Update the VERSION file and changelog automatically.
make bump patch/minor/major- Create a Git Tag: Tag the release using the version from the VERSION file.
make tag- Copy the Spec File: Copy trafix.spec into the correct RPM build directory.
make copy-spec- Build the RPM: Build both the binary and source RPM packages.
make rpmNote: Source tarball creation is no longer needed - GitHub automatically generates archives from git tags.
- Make Code Changes: Make your changes in the source code.
nano src/main.c
git add src/main.c
git commit -m "Fix: correct packet stats rendering"- Bump the Version: Update the VERSION file and changelog automatically.
make bump- One-Command Full Release: Creates tag, copies spec, and builds RPM all in one go.
make release