Building RPMs

August 8, 2026 ยท View on GitHub

You must enable the following repositories to be able to install all the build dependencies:
DistributionsDependencyInstallationNotes
RHEL and clonesEPELdnf install epel-releaseuse epel-next-release on CentOS stream
RHEL and clonesPower Toolsdnf config-manager --set-enabled powertoolsalso known as PowerTools on some variants / versions
RHEL 9 and clonesCRBdnf config-manager --set-enabled crb
Allrpmfusionconfiguration
The spec file can be found here: https://github.com/Xpra-org/xpra/tree/master/packaging/rpm/xpra.spec
dnf builddep xpra.spec

You may also refer to the more generic list of dependencies

Alternatively, if you want to install a more limited set of build dependencies, you can use the dev-env build subcommand which will honour setup arguments. ie:

./setup.py dev-env --minimal --with-openh264

(available in xpra v6.1 onwards)

```shell python3 ./setup.py install ```

RPM

The quick and easy way: ```shell mkdir -p ~/rpmbuild/SOURCES/ >& /dev/null git clone https://github.com/Xpra-org/xpra cd xpra python3 ./setup.py sdist --formats=xz cp dist/*xz patches/* ~/rpmbuild/SOURCES/ rpmbuild -ba ./packaging/rpm/xpra.spec ls -s ~/rpmbuild/RPMS/*/ ``` This builds fresh packages from git master. \ You can also use other branches, tags or download a [source release](https://xpra.org/src/) instead.