Skip to main content

Copr Builder

A simple program for building RPM packages from Git repositories in Copr.

Usage

usage: copr-builder [-h] [-v] [-p [PROJECTS [PROJECTS ...]]] [-c CONFIG]

Copr builder

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print debug messages
  -p [PROJECTS [PROJECTS ...]], --projects [PROJECTS [PROJECTS ...]]
                        projects to build; if not given, all projects from
                        config will be built
  -c CONFIG, --config CONFIG
                        config file location

Config file structure

[project_name]
copr_user = username
copr_repo = reponame
package = mypackage
git_url = https://github.com/<user>/mypackage
pre_archive_cmd = ./autogen.sh && ./configure
archive_cmd = make local
git_branch = 1.1-devel
git_merge_branch = 1.1-release

[another_project_name]
copr_user =
...
  • project_name – some unique name for project/package

  • copr_user – FAS username or groupname

  • copr_repo – name of the Copr repository (without the username!)

  • package – name of the package that will be built

    • a spec file must be in the repo

  • pre_archive_cmd – (optional) command which will be run before the spec file is read. This can be used to generate or download spec file.

  • archive_cmd – command for creating archive from the source (e.g. “make local” or “git archive HEAD –prefix=package/ -o package.tar.gz”)

    • this command must create a single archive (.tar.[gz|bz|bz2|xz]) in the current directory

  • git_url – URL of the Git repo (will be used for “git clone”)

  • git_branch – branch to use from the Git repo (e.g. “master”)

  • git_merge_branch – optional; if you need to merge another branch into git_branch before running the archive_cmd

Release files for copr-builder 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for copr-builder 1.1
File Size Uploaded
copr-builder-1.1.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for copr-builder 1.1
File Interpreter ABI Platform
copr_builder-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.9 kB

Release files / copr-builder-1.1.tar.gz

Download URL copr-builder-1.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0c5357c2faf7014cde93b226b3da4c6f1e7e8332042f14abf5ff4e1a61225f53
BLAKE2b-256 checksum
How to use checksums
eb2e9d9dfb96ec3b43907b70472a5ebceebc430b5800a951a8d2fa8b3c84adb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 CPython/3.10.5

Release files / copr_builder-1.1-py3-none-any.whl

Download URL copr_builder-1.1-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
528b149ee03d19b347d282b4df7910cf1c43d290d5b540d26690795b1fc45914
BLAKE2b-256 checksum
How to use checksums
301ac0d6a1ce51bb3e5dc594b274267483da58de2112fd828fcc22e02cc8f6f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page