New Package Process for New Contributors
- Check if the package already exists
- Make a Package
- Upload Your Package
- Create Your Review Request
- Inform Upstream
- Watch for Feedback
- Get Sponsored
- Add Package to Source Code Management (SCM) system and Set Owner
- Check out the module
- Test Your Package
- Import, commit, and build your package
- Update Your Branches (if desired)
- Make the package available in "comps" files
This is a long version of the New Package Process, containing more details so new contributors can follow it more easily. Also the mandatory sponsoring step is included.
If some useful software is not included in Fedora already, you can submit it as a new package. The package you are submitting can be of any Free and Open Source project.
Before creating your package, make sure that the software is not already in the Fedora repository:
Check if the package already exists by searching in Fedora Packages.
Search in the Review Tracker for packages under review.
Be aware of forbidden items.
If you don’t know how to create an RPM package, see the How to create an RPM package.
Be aware of the Package Review Guidelines (they will be used during the package review).
Make sure your package builds. This is surprisingly important because a significant number of submissions don’t.
Upload your SRPM and SPEC files onto the Internet somewhere so that others can retrieve them. This can be anywhere accessible by a URL, but it is important that the files be directly accessible, not hidden behind some service that makes people wait to download things or redirects through advertising pages.
If you want to make ad-hoc builds available for users while you are getting the package into the official repositories, consider using Copr. It is a lightweight automated build system that can create repositories using the SRPM you upload. You can use this Copr space to point reviewers to your src.rpm and spec.
Fill out Bugzilla Fedora review form.
Before submitting your request, be sure there’s not a previous request for the same package. There is a convenient search box on the package review status page.
Make sure that you put the name of the package (excluding version and release numbers) in the
Review Summaryfield, along with a very brief summary of what the package is.
Put a description of your package (usually, this can be the same thing as what you put in the spec
%description) in the
Review Descriptionfield. Include the URLs to your SRPM and SPEC files.
Explain in the ticket that this is your first package and you need a sponsor. Also, include any information that may help prospective sponsors. If you’ve been active in other review work, include links. If you’re the upstream maintainer, be sure to say so.
For bonus points, include a link to a successful koji build so that everyone knows you did all of your homework.
The review process is described in detail on the Package Review Process page.
The Fedora Project prefers Staying Close to Upstream Projects. Inform the developers that you are packaging the software. You can do that by sending them an email introducing yourself and pointing out the review request. This sets up the stage for future conversations. They will usually advertise the fact that their software is now part of Fedora or might want to inform you of important bugs in the existing release, future roadmaps etc.
Watch the Bugzilla report for your first package. You should get notifications of changes by email. Fix any blockers that the reviewer(s) point out.
When the package is APPROVED by the reviewer, you must separately obtain member sponsorship in order to check in and build your package. Sponsorship is not automatic and may require that you further participate in other ways in order to demonstrate your understanding of the packaging guidelines. The key to becoming sponsored is to convince an existing sponsor-level member that you understand and follow the project’s guidelines and processes.
See How to Get Sponsored into the Packager Group for more information on the process of becoming sponsored.
Your sponsor can add you to the packager group. You should receive an email confirmation of your sponsorship.
Before proceeding, please sync your account by login on Fedora Package Sources using your FAS credentials.
If you are becoming a maintainer for a new package,
instead of being a co-maintainer,
to request a new git repository for your package.
The sub-command is
which includes help text for setting up the Pagure API token
the command requires.
When creating your API-key
choose toogle-all for the ACLs.
You must specify the repository name and review bug number.
fedpkg request-repo python-prometheus_client 1590452
The request will be reviewed and processed by an admin, usually within 24 hours. Once the ticket is processed, you will have access to commit and build the package.
fedpkg request-repo only creates a branch for Rawhide.
To request branches for other Fedora releases,
fedpkg request-branch --repo python-prometheus_client f34
You will need to run this for each non-rawhide branch.
If you wish, you can also use the
to request branches for all current Fedora releases.
You could check out your module now,
but before doing that,
mkdir ~/fedora-scm ; cd ~/fedora-scm
— that way, all your files are inside a single directory.
so that you won’t have to keep typing in your key password.
Now you are ready to checkout your module from the SCM:
fedpkg clone your-package
Refer to Using Mock to test package builds and xref:Using_the_Koji_Build_System.adoc#scratch_builds for more information on testing your package. Mock uses your local system while Koji command line tool uses the Fedora build system server.
Now that you’ve checked out your (empty) package module with
cd into the module’s main branch:
Run fedpkg to import the contents of the SRPM into the SCM:
fedpkg import PATH_TO_SRPM
# Review Changes, press 'q' to stop; Revert with: git reset --hard HEAD git commit -m "Initial import (#XXXXXX)." git push fedpkg build
PATH_TO_SRPM with the full path
to your approved SRPM,
XXXXXX with the package review bug number.
This imports into, commits, and builds only the main (Rawhide) branch.
If the push fails with this kind of message:
W access for why DENIED to YOUR_ACCOUNT fatal: The remote end hung up unexpectedly Could not push: Command '['git', 'push']' returned non-zero exit status 128
Then you don’t have the necessary rights to modify that package branch.
https://src.fedoraproject.org/rpms/PACKAGE_NAME to request those rights.
For more information on using the Fedora package maintenance system, see the Package maintenance guide.
F- and before that
f is the branch for Fedora.
To switch to a branch first:
fedpkg switch-branch BRANCH
Merge the initial commit from main (Rawhide), creating an identical commit in the branch:
git merge rawhide
Push the changes to the server:
Build the package:
If there is another branch to work with repeat To switch to a branch and import and commit to each branch.
If everything goes well, it should queue up your branch for building, the package will cleanly build, and you’re done!
If it fails to build, the build system will send you an email to report the failure and show you to the logs. Commit any needed changes to git, bump the SPEC release number, and request a new build.
The Fedora update system called Bodhi is used for pushing updates, classifying packages etc. Do not submit Rawhide (main branch) builds via Bodhi.
You can push an update using Bodhi via the command line using this in each branch:
See the Package Update Guide for more details.
If appropriate for the package, make it available in "comps" files so that it can be selected during installation and included in dnf package group operations. See How to use and edit comps.xml for package groups for more info.
Fedora has the infrastructure available for monitoring new upstream releases of the software you are packaging. Refer to Upstream Release Monitoring for more details.