PACKIT-SRPM(1)

πŸ“¦
version 1.16.3 Β· 5 versions
, in fedora 43, fedora 44

πŸ’… PACKIT-SRPM β€” the manual, but make it cute πŸŽ€

okay bestie, welcome to packit-srpm(1), from the packit srpm manual. yes this is the one that makes you a shiny little SRPM. sit down, hydrate, let's go ✨


🌸 NAME 🌸

packit-srpm β€” Create new SRPM (.src.rpm file) using… (yes the original description literally trails off like that, it's giving mysterious, we keep it πŸ’€)


πŸ¦‹ SYNOPSIS πŸ¦‹

packit srpm [OPTIONS] [PATH_OR_URL]

✨ DESCRIPTION ✨

So basically: this command creates a brand new SRPM (.src.rpm file) using the content of the upstream repository. that's it, that's the job. iconic behaviour fr fr πŸ’–

The PATH_OR_URL argument is either a local path or a URL pointing at the upstream git repository. and if you're feeling lazy (no judgement, it's a vibe), it defaults to the current working directory. lowkey convenient.


πŸ‘‘ OPTIONS πŸ‘‘

  • --output FILE β€” write the SRPM to FILE instead of dropping it in the current dir. like, put it somewhere specific, main character energy.
  • --upstream-ref TEXT β€” the git ref of the last upstream commit in the current branch, and it's the one packit should generate patches from. heads up bestie: this option implies the repository is source-git. no take-backs 🫢
  • --update-release / --no-update-release β€” says whether to update Release or not. it defaults to whatever value is set in the configuration, and that config defaults to yes. so yes unless told otherwise ✨
  • --preserve-spec β€” do not update the spec file while creating the SRPM (and yes, it implies --no-update-release). by default, the spec file is updated. so only use this if you want the spec left exactly as it is πŸ™ˆ
  • --bump / --no-bump β€” deprecated. like, retired. please use --[no-]update-release instead. we don't do that anymore πŸ’€
  • --release-suffix TEXT β€” sets the release suffix. this lets you override the default, which is generated:{current_time}.{sanitized_current_branch}{git_desc_suffix}. yes that's the whole template, character for character, go off πŸŽ€
  • --default-release-suffix β€” lets you use the default packit-generated release suffix when some release_suffix is specified in the configuration. so you can be like "no actually, do the default one" πŸ’…
  • -p, --package TEXT β€” the package to source build, in case there's more than one available (monorepo configuration, we see you). use it multiple times to select multiple packages. defaults to all the packages listed inside the config. collect them all 🌈

🌟 SEE ALSO 🌟

(no SEE ALSO section in the original, bestie β€” nothing to reference, so nothing to link. we stay honest in this group chat 😭)


heads up: --bump / --no-bump is deprecated, so don't build your whole personality around it. use --[no-]update-release. and remember --preserve-spec quietly drags --no-update-release along with it, iykyk.

okay that's the whole page!! you're gonna slay this SRPM build, I just know it πŸ¦‹πŸ’–

signing off with all the love: this was packit srpm manual, version 1.16.3, dated 2026-09-04. mwah, go build something cute πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from