[CentOS] how to build rpm

Fri Jul 29 06:08:31 UTC 2016
Peter <peter at pajamian.dhs.org>

On 29/07/16 16:12, qw wrote:
> For software development, projects are built through makefile. After
> building, I can run binary program. rpm is more convenient. Is there
> some tool that can build rpm?

You need to learn how to write a spec file, as another person suggested,
grabbign one from a similar rpm to use as a template makes this much easier.

Other than that I highly recommend mock, which you can get from the EPEL
repository.  Google for "fedora mock" for more info about mock.