packit-srpm - Man Page

Create new SRPM (.src.rpm file) using...


packit srpm [Options] [PATH_OR_URL]


   Create new SRPM (.src.rpm file) using content of the upstream repository.

   PATH_OR_URL argument is a local path or a URL to the upstream git repository,
   it defaults to the current working directory


--output FILE

Write the SRPM to FILE instead of current dir.

--upstream-ref TEXT

Git ref of the last upstream commit in the current branch from which packit should generate patches (this option implies the repository is source-git).

--update-release / --no-update-release

Specifies whether to update Version and Release. Defaults to value set in configuration, which defaults to yes.

--bump / --no-bump

Deprecated. Use --[no-]update-release instead.

--release-suffix TEXT

Specifies release suffix. Allows to override default generated:{current_time}.{sanitized_current_branch}{git_desc_suffix}


Allows to use default, packit-generated, release suffix when some release_suffix is specified in the configuration.

Referenced By


2023-01-20 packit srpm Manual