Package Build Process

  • 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