3.14. Building source RPMs
The following procedure describes how to build a source RPM.
Conditions préalables
- A SPEC file for the program that we want to package must already exist.
Procédure
Run the
rpmbuild
command with the specified SPEC file:rpmbuild -bs SPECFILE
$ rpmbuild -bs SPECFILE
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Substitute SPECFILE with the SPEC file. The
-bs
option stands for the build source.
The following example shows building source RPMs for the bello
, pello
, and cello
projects.
Building source RPMs for bello, pello, and cello.
Verification steps
-
Make sure that the
rpmbuild/SRPMS
directory includes the resulting source RPMs. The directory is a part of the structure expected byrpmbuild
.