RPM

Packaging

Download sources of SPEC file

spectool -g -R my-package.spec

Install dependencies of SPEC file

Ensure dnf-plugins-core is installed

dnf builddep my-package.spec

Build package of SPEC file

rpmbuild -ba my-package.spec