Skip to content

rsturla/syft-copr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syft RPM Package

This package follows the same approach as the Fedora gh package.

Prerequisites

  • podman installed
  • That's it! All builds run in containers.

Building

Create source archives

make sources

This will:

  1. Download the upstream source tarball
  2. Create a vendor archive with all Go dependencies

Verify licenses

make license-report

Build with mock

# Build RPM (default: fedora-rawhide-x86_64)
make mock

# Or specify a different mock config
make mock MOCK_CONFIG=fedora-42-x86_64

Build SRPM only

make srpm

Manual commands

If 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

Updating the package

  1. Update the Version: in syft.spec
  2. Run make sources to create new archives
  3. Run make license-report to verify licenses still match
  4. If licenses changed, update go-vendor-tools.toml and the License: field in the spec
  5. Build and test with make mock

Files

  • syft.spec - RPM spec file
  • go-vendor-tools.toml - License configuration for go-vendor-tools
  • .packit.yaml - Packit automation configuration
  • sources - SHA512 checksums for dist-git lookaside cache

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published