gbp-import-srpm

&rpm-mansection;

gbp-import-srpm

Import source RPM packages into a Git repository

          &gbp-import-srpm;
          &man.common.options.synopsis;
          --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

&man.common.options.description;

`--vendor`=`VENDOR`

- Distribution vendor name.

`--upstream-branch`=`BRANCH-NAME`

- The branch in the &git; repository the upstream sources are put onto. Default is `upstream`.

`--packaging-branch`=`BRANCH-NAME`

- The branch in the &git; repository the packaging files are put onto. Default is `master`.

`--[no-]sign-tags`

- GPG sign all created tags.

`--keyid=``GPG-KEYID`

- Use this keyid for gpg signing tags.

`--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.

`--upstream-tag=``TAG-FORMAT`

- Use this tag format when tagging upstream versions, default is `upstream/%(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-tag` supports.

`--git-packaging-dir=``DIRECTORY`

- Subdirectory where to put the RPM packaging files.

`--filter=``PATTERN`

- Filter out files glob-matching pattern. Can be given multiple times.

`--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.

`--author-is-committer`

- Use the author identity as the committer when importing upstream sources and packaging files.

`--[no-]create-missing-branches`

- Create missing upstream and/or packaging branch if missing.

`--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 `--native` is used.

`--native`

- Treat the package as native package. No separate upstream branch or upstream tags will be created.

`--repo-user=``[GIT|DEBIAN]`

- When set to `DEBIAN` use the `DEBUSER` environment variable to set the user.name &git; configuration otherwise use &git;'s defaults. Only affects newly created repos.

`--repo-email=``[GIT|DEBIAN]`

- When set to `DEBIAN` use the `DEBEMAIL` environment variable to set the user.email &git; configuration otherwise use &git;'s defaults. Only affects newly created repos.

&man.gbp.config-files;

## SEE ALSO

man.gbp.buildpackage.rpm, man.gbp.pq.rpm, man.gbp.rpm.ch, man.gbp.conf, &man.seealso.common;

## AUTHOR

&rpm-username; &rpm-email;