Skip to content

Build Process

Florian Festi edited this page May 14, 2020 · 2 revisions
  • Unpack srpm/tar (optional)
  • Parse spec - see also build/parse*.c
    • If buildarch detected parse spec multiple times - once for each arch with _target_cpu macro set
    • Build will iterate over all the spec variants and build multiple versions
  • Check static build requires
  • Execute build scripts (see doScript()
    • %prep
    • %generate_buildrequires if present
      • re-check build requires - stop build on errors
    • %build
    • %install
    • %check - if present
  • Process files
    • Turn %files lines into actual files (evaluate globs)
      • Read from -f param
    • Run file classifiers
    • Generate automatic dependencies
    • Check packaged files against install root
  • Create packages
  • %clean
  • Clean up
Clone this wiki locally