Skip to content

Fedora Packaging Guide

Endi S. Dewata edited this page Feb 7, 2023 · 4 revisions

Checking Current Version

$ rpm -qa nss
nss-3.75.0-1.fc35.x86_64

Getting Upstream Source

$ git clone https://github.com/dogtagpki/nss.git
$ cd nss
$ git checkout NSS_3_75_BRANCH

Committing Upstream Changes

$ git commit -a -m "..."

Generating Patch File

$ git format-patch -1

Getting Project Source

$ fedpkg clone nss
$ cd nss
$ git checkout f35

Updating Spec File

Move the patch into the dist-git folder.

Increment the Release: in nss.spec, for example:

Release:          %{nss_release}.1%{?dist}

Add the patch file into nss.spec:

Patch<n>:          <patch file>

Committing Project Changes

$ git commit -a -m "..."

Creating Local Build

$ fedpkg local --without tests

Creating COPR Build

$ fedpkg copr-build <repo>

See Also