Building Packages in COPR Repository - dogtagpki/pki GitHub Wiki

Overview

This page describes the process to build packages in a COPR repository (e.g. @pki/master).

Package Source Notes

apache-parent

edewata/rawhide

The maintainer is unwilling to merge PR #12. The package cannot be built on CentOS 9.

apache-logging-parent

fedora/rawhide

The package cannot be built on CentOS 9.

jboss-parent

fedora/rawhide

The package cannot be built on CentOS 9.

jdeparser

fedora/rawhide

The package cannot be built on CentOS 9.

jboss-logging

fedora/rawhide

The package cannot be built on CentOS 9.

jboss-logging-tools

fedora/rawhide

The package cannot be built on CentOS 9.

jboss-jaxrs-2.0-api

fedora/rawhide

The package cannot be built on CentOS 9.

replacer

edewata/rawhide

The maintainer is unwilling to merge PR #8. The package cannot be built on CentOS 9.

fasterxml-oss-parent

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-parent

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-bom

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-annotations

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-core

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-databind

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-modules-base

fedora/rawhide

The package cannot be built on CentOS 9.

jackson-jaxrs-providers

fedora/rawhide

The package cannot be built on CentOS 9.

resteasy

fedora/rawhide

The package cannot be built on CentOS 9. The package also cannot be built on Fedora 44 or later due to unavailability of Java 21 and incompatibility with Java 25.

jss

upstream/master

ldapjdk

upstream/master

pki

upstream/master

Installing COPR CLI

$ dnf install -y copr-cli

Configuring COPR Authentication

Obtain a COPR API token and store it in ~/.config/copr:

[copr-cli]
login = ...
username = ...
token = ...
copr_url = https://copr.fedorainfracloud.org
# expiration date: ...

Creating Packages in COPR

Creating Upstream Git Packages

To create a COPR package:

$ copr add-package-scm <repo> --name <package> --type git --clone-url <URL> --method make_srpm

By default it will use the upstream’s default branch (i.e. master or main). To use a different branch, specify --commit <branch>.

Creating Fedora DistGit Packages

To create a COPR package:

$ copr add-package-distgit <repo> --name <package> --distgit fedora

By default it will use Fedora’s official DistGit branch. To use a forked DistGit branch, specify --namespace forks/<username>.

Building Packages in COPR

Note: Currently it’s not possible to build for CentOS 9 in COPR, so execute the copr build-package commands with --exclude-chroot centos-stream-9-* option.

Building Dependencies

$ copr build-package <repo> --name apache-parent
$ copr build-package <repo> --name apache-logging-parent
$ copr build-package <repo> --name jboss-parent
$ copr build-package <repo> --name jdeparser
$ copr build-package <repo> --name jboss-logging
$ copr build-package <repo> --name jboss-logging-tools
$ copr build-package <repo> --name jboss-jaxrs-2.0-api
$ copr build-package <repo> --name replacer

Building Jackson Packages

$ copr build-package <repo> --name fasterxml-oss-parent
$ copr build-package <repo> --name jackson-parent
$ copr build-package <repo> --name jackson-bom
$ copr build-package <repo> --name jackson-annotations
$ copr build-package <repo> --name jackson-core
$ copr build-package <repo> --name jackson-databind
$ copr build-package <repo> --name jackson-modules-base
$ copr build-package <repo> --name jackson-jaxrs-providers

Building RESTEasy Packages

$ copr build-package <repo> --name resteasy

Building PKI Packages

$ copr build-package <repo> --name jss
$ copr build-package <repo> --name ldapjdk
$ copr build-package <repo> --name pki

See Also

⚠️ **GitHub.com Fallback** ⚠️