gbp-import-srpm(1)
π gbp-import-srpm β git-buildpackage Manual, bestie edition π
okay so. picture this: you got a source RPM. you want it in a Git repo. you do NOT want to do it by hand. enter gbp import-srpm, my beloved. this page is the gbp-import-srpm(1) manual, but make it make sense. π¦
β¨ NAME β¨
gbp-import-srpm β import source RPM packages into a Git repository. that's it. that's the whole job. slay. π
πΈ SYNOPSIS πΈ
gbp import-srpm [--version] [--help] [--verbose] [--color=[auto|on|off]]
[--color-scheme= COLOR_SCHEME] [--vendor= VENDOR]
[--allow-same-versions] [--author-is-committer]
[--packaging-branch= BRANCH-NAME] [--packaging-tag= TAG-
FORMAT] [--skip-packaging-tag] [--packaging-dir=
DIRECTORY] [--filter= PATTERN] [--keyid= GPG-KEYID]
[--[no-]create-missing-branches] [--[no-]pristine-tar]
[--[no-]sign-tags] [--upstream-branch= BRANCH-NAME]
[--upstream-tag= TAG-FORMAT] [--upstream-vcs-tag= TAG-
FORMAT] [--native] [--repo-user= [GIT|DEBIAN]]
[--repo-email= [GIT|DEBIAN]] SRPM | DIRECTORY [target]
gbp import-srpm [options] URL [target]
so you literally hand it an SRPM, or a DIRECTORY, or a URL, and optionally a target. and it eats. π
π DESCRIPTION π
ngl, this is the glow-up you've been waiting for. gbp import-srpm imports an RPM source package into a Git repository, notes the package version in the commit logs, and commits the change. it's giving β¨automationβ¨.
the way it just knows things? iconic. all information, including package name, version and upstream source, is automatically detected from the source package. but bestie, you're the main character β you can override the location of the new repository by optionally specifying the target argument, no cap. π«Ά
the tool supports importing both archived (src.rpm files) or unpacked (directory) source RPMs. and YES it also imports from http(s)-URLs. versatile queen. π
π OPTIONS π
here's the menu, bestie. every single one. no skipping, i would never do that to you.
--versionβ Print version of the program, i.e. version of the git-buildpackage suite. gotta know what era of the suite you're in. β-v,--verboseβ Verbose execution. it tells you EVERYTHING. let her yap. π£οΈ-h,--helpβ Print help and exit. the "wait what was that flag again" button. π--color=[auto|on|off]β Whether to use colored output. aesthetic matters. π--color-scheme=COLOR_SCHEMEβ Colors to use in output (when color is enabled). The format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted, empty fields imply the default color. For example,--git-color-scheme='cyan:34::'would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red). fully customizing your terminal's vibe check fr fr. π--vendor=VENDORβ Distribution vendor name. who's your distro parent, basically. π--upstream-branch=BRANCH-NAMEβ The branch in the Git repository the upstream sources are put onto. Default isupstream. the classic. π--packaging-branch=BRANCH-NAMEβ The branch in the Git repository the packaging files are put onto. Default ismaster. yes,master, she said what she said. π--[no-]sign-tagsβ GPG sign all created tags. put a little signature on it like a perfumed letter. π--keyid=GPG-KEYIDβ Use this keyid for gpg signing tags. which key is doing the signing today. π₯--packaging-tag=TAG-FORMATβ Use this tag format when tagging released versions, default is%(vendor)s/%(version)s. β¨--skip-packaging-tagβ Do not create packaging tag after importing the packaging files. sometimes we simply don't tag. we skip. slay the urge. π--upstream-tag=TAG-FORMATβ Use this tag format when tagging upstream versions, default isupstream/%(version)s. π--upstream-vcs-tag=TAG-NAMEβ Add TAG-FORMAT as an additional parent of the commit of the upstream tarball. Useful when upstream uses git and you want to link to its revision history. TAG-FORMAT can be a pattern similar to what--upstream-tagsupports. it's giving connected lore. π--git-packaging-dir=DIRECTORYβ Subdirectory where to put the RPM packaging files. tuck them away in their little room. π--filter=PATTERNβ Filter out files glob-matching pattern. Can be given multiple times. bye bye unwanted files. π--pristine-tarβ Generate pristine-tar delta file. β¨--allow-same-versionβ Allow one to re-import a package with an already existing version. This will not re-import the upstream sources - only packaging files will be re-imported. recycling is self-care. β»οΈ--author-is-committerβ Use the author identity as the committer when importing upstream sources and packaging files. one person, both roles, main character energy. π--[no-]create-missing-branchesβ Create missing upstream and/or packaging branch if missing. if she's not there, make her. π¦--orphan-packagingβ Import packaging files into an orphan branch that will not be based on the upstream branch. Useful if you want to maintain (non-native) package using the 'orphan-packaging' model. This option have no effect if--nativeis used. aka she stands alone. π«Ά--nativeβ Treat the package as native package. No separate upstream branch or upstream tags will be created. no upstream, no tags, just the package. minimalist. π€--repo-user=[GIT|DEBIAN]β When set toDEBIANuse theDEBFULLNAMEenvironment variable to set theuser.nameGit configuration otherwise use Git's defaults. Only affects newly created repos. π--repo-email=[GIT|DEBIAN]β When set toDEBIANuse theDEBEMAILenvironment variable to set theuser.emailGit configuration otherwise use Git's defaults. Only affects newly created repos. π§
π CONFIGURATION FILES π
Several gbp.conf files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details. your defaults live there, go visit them. π‘
π SEE ALSO π
go read these too, bestie, we support women's wrongs and also women's documentation:
gbp-buildpackage-rpm(1)gbp-pq-rpm(1)gbp-rpm-ch(1)gbp.conf(5)debuild(1)git(1)pristine-tar(1)The Git-Buildpackage Manual β¨file:///usr/share/doc/git-buildpackage/manual-html/index.htmlβ©
π AUTHOR π
Markus Lehtonen <markus.lehtonen@linux.intel.com> β thank you for your service, king. π«‘
that's the whole page bestie!! you read every single line and i'm so proud of you. now go import an SRPM and be iconic about it. πβ¨
git-buildpackage Manual Β· 26 May 2026 Β· gbp-import-srpm(1) β mwah, go forth and commit, and remember: if the docs confuse you, it's not a you problem, it's a manpage problem. π
πΈπ¦
π¦ where this page comes from
- ubuntu stonking: git-buildpackage-rpm 0.9.43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms