This package follows the same approach as the Fedora gh package.
podmaninstalled- That's it! All builds run in containers.
make sourcesThis will:
- Download the upstream source tarball
- Create a vendor archive with all Go dependencies
make license-report# Build RPM (default: fedora-rawhide-x86_64)
make mock
# Or specify a different mock config
make mock MOCK_CONFIG=fedora-42-x86_64make srpmIf you prefer to run commands manually:
# Download source
spectool -g syft.spec
# Create vendor archive
export GOTOOLCHAIN=auto
go_vendor_archive create --config go-vendor-tools.toml syft.spec
# Verify licenses
go_vendor_license --config go-vendor-tools.toml --path syft.spec report --verify-spec
# Build with mock
mock -r fedora-rawhide-x86_64 --spec syft.spec --sources . --resultdir ./results- Update the
Version:insyft.spec - Run
make sourcesto create new archives - Run
make license-reportto verify licenses still match - If licenses changed, update
go-vendor-tools.tomland theLicense:field in the spec - Build and test with
make mock
syft.spec- RPM spec filego-vendor-tools.toml- License configuration for go-vendor-tools.packit.yaml- Packit automation configurationsources- SHA512 checksums for dist-git lookaside cache
- Fedora Go Packaging Guidelines
- go-vendor-tools documentation
- Fedora gh package - Reference implementation