Skip to main content

RPM packaging automation tool

Project description

# rdopkg

rdopkg is an RPM packaging automation tool. It provides automation for package maintenance including git-based patches management and automagic rebases to new upstream versions with nice .spec changes, changelogs and commit messages for both CLI and CI usage. It also contains various functionality we needed for [RDO]( packaging, such as advanced requirements.txt management for python projects and [rdoinfo]( integration.

Generic [distgit](—where-the-spec-file-lives) and patches management functionality and conventions provided by rdopkg proved to be efficient way of packaging fast-moving upstream projects with minimal human effort but without losing control over individual packages.

rdopkg is now considered stable. It was originally developed to serve the needs of the mighty [RDO]( packager-warriors and their weapons such as [DLRN](, but it can help with any RPM package. For example, see [how you can manage your RPMs with rdopkg](

rdopkg uses [software factory]( for CI and every commit goes through automatic unit, feature, and integration testing as well as human reviews.

See [open rdopkg reviews](

## Installation

rdopkg is currently compatible with both python 3 only.

### from Fedora/EPEL repos (default)

rdopkg is available on Fedora 37 and newer:

dnf install rdopkg

On CentOS Stream/RHEL 8/9, rdopkg is available from [EPEL](

On CentOS Stream 8:

dnf config-manager –set-enabled powertools dnf install epel-release dnf install rdopkg

On CentOS Stream 9:

dnf config-manager –set-enabled crb dnf install epel-release dnf install rdopkg

### from source

If you want to hack rdopkg or just have the latest fixes without waiting for next release, I suggest using the git repo directly:

git clone pip install -e rdopkg

You may set the preference over rdopkg RPM by correctly positioning ~/.local/bin/rdopkg in your $PATH.

Or you can use virtualenv to avoid conflicts with RPM:

git clone cd rdopkg virtualenv –system-site-packages ~/rdopkg-venv source ~/rdopkg-venv/bin/activate pip install -e . ln which rdopkg ~/bin/rdopkg-dev

rdopkg-dev –version

Required python modules are listed in [requirements.txt](requirements.txt) and also in [rdopkg.spec]( as RPM Requires.

### from PyPI

For your convenience, rdopkg is also available from the Cheese Shop. This should come in handy especially if you want to reuse rdopkg as a module.

pip install rdopkg

Note that you need to have python3-rpm package installed in order for RPM macro related features to work as it isn’t available from PyPI.

## The Manual

Exhaustive rdopkg manual is available, you can:

You might also be interested in [RDO packaging intro]( which contains some examples of rdopkg usage and more.

## Bugs

Please use the [github Issues]( to report bugs. I usually fix critical bugs within days.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdopkg-1.8.0.tar.gz (146.8 kB view hashes)

Uploaded Source

Built Distribution

rdopkg-1.8.0-py3-none-any.whl (79.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page