packit-prepare-sources - Man Page

Prepare sources for a new SRPM build using...

Synopsis

packit prepare-sources [Options] [PATH_OR_URL]

Description

Prepare sources for a new SRPM build using content of the upstream repository. Determine version, create an archive or download upstream and create patches for sourcegit, fix/update the specfile to use the right archive, download the remote sources. Behaviour can be customized by specifying actions (post-upstream-clone, get-current-version, create-archive, create-patches, fix-spec-file) in the configuration.

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

Options

--result-dir DIR

Copy the sources into DIR. By default, `prepare_sources_result` directory in the current working directory is created.

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

--merged-ref TEXT

Git ref used to identify correct most recent tag.

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

Specifies whether to update 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}

--default-release-suffix

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

--job-config-index INTEGER

Internal option to override package config found in the repository with job config with given index (needed for packit service).

--ref TEXT

Git reference to checkout.

--pr-id TEXT

Specifies PR to checkout.

--merge-pr / --no-merge-pr

Specifies whether to merge PR into the base branch in case pr-id is specified.

--target-branch TEXT

Specifies target branch which PR should be merged into.

--create-symlinks / --no-create-symlinks

Specifies whether Packit should create symlinks or copy the files (e.g. archive outside specfile dir).

-p, --package TEXT

Package to prepare, if more than one available, like in a monorepo configuration. Use it multiple times to select multiple packages.Defaults to all the packages listed inside the config.

Referenced By

packit(1).

2024-11-15 0.104.0 packit prepare-sources Manual