gbp-import-srpm(1)

NAME
gbp-import-srpm - Import source RPM packages into a Git repository

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]

DESCRIPTION
gbp import-srpm imports an RPM source package into a Git repository, notes the package version in the commit logs, and commits the change. All information, including package name, version and upstream source is automatically detected from the source package but you can override the location of the new repository by optionally specifying the target argument. The tool supports importing both archived (src.rpm files) or unpacked (directory) source RPMs. It also imports from http(s)-URLs.

OPTIONS

\FC--version\F[]
    Print version of the program, i.e. version of the git-buildpackage suite

\FC-v\F[], \FC--verbose\F[]
    Verbose execution

\FC-h\F[], \FC--help\F[]
    Print help and exit

\FC--color=\F[][auto|on|off]
    Whether to use colored output.

\FC--color-scheme=\F[]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, \FC--git-color-scheme=\F[]\FC'cyan:34::'\F[] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

\FC--vendor\F[]=VENDOR
    Distribution vendor name.

\FC--upstream-branch\F[]=BRANCH-NAME
    The branch in the Git repository the upstream sources are put onto. Default is upstream.

\FC--packaging-branch\F[]=BRANCH-NAME
    The branch in the Git repository the packaging files are put onto. Default is master.

\FC--[no-]sign-tags\F[]
    GPG sign all created tags.

\FC--keyid=\F[]GPG-KEYID
    Use this keyid for gpg signing tags.

\FC--packaging-tag=\F[]TAG-FORMAT
    Use this tag format when tagging released versions, default is %(vendor)s/%(version)s.

\FC--skip-packaging-tag\F[]
    Do not create packaging tag after importing the packaging files.

\FC--upstream-tag=\F[]TAG-FORMAT
    Use this tag format when tagging upstream versions, default is upstream/%(version)s.

\FC--upstream-vcs-tag\F[]=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 \FC--upstream-tag\F[] supports.

\FC--git-packaging-dir=\F[]DIRECTORY
    Subdirectory where to put the RPM packaging files.

\FC--filter=\F[]PATTERN
    Filter out files glob-matching pattern. Can be given multiple times.

\FC--pristine-tar\F[]
    Generate pristine-tar delta file.

\FC--allow-same-version\F[]
    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.

\FC--author-is-committer\F[]
    Use the author identity as the committer when importing upstream sources and packaging files.

\FC--[no-]create-missing-branches\F[]
    Create missing upstream and/or packaging branch if missing.

\FC--orphan-packaging\F[]
    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 \FC--native\F[] is used.

\FC--native\F[]
    Treat the package as native package. No separate upstream branch or upstream tags will be created.

\FC--repo-user=\F[]\FC[GIT|DEBIAN]\F[]
    When set to \FCDEBIAN\F[] use the DEBUSER environment variable to set the user.name Git configuration otherwise use Git's defaults. Only affects newly created repos.

\FC--repo-email=\F[]\FC[GIT|DEBIAN]\F[]
    When set to \FCDEBIAN\F[] use the DEBEMAIL environment variable to set the user.email Git configuration otherwise use Git's defaults. Only affects newly created repos.

CONFIGURATION FILES
Several \FCgbp.conf\F[] files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.

SEE ALSO
gbp-buildpackage-rpm(1), gbp-pq-rpm(1), gbp-rpm-ch(1), gbp.conf(5), debuild(1), git(1), pristine-tar(1),

AUTHOR
Markus Lehtonen <\FCmarkus.lehtonen@linux.intel.com\F[]>