Spec file with fpm tool for creating rpms

rpm

How to create a Spec File with fpm tool for rpm packages? (or) all files installed through rpm are root-owned and is there a way that i can set the ownership to some other user?

i can use %files (or) %defattr, but i am not sure how to add these directives with fpm tool.

Best Answer

There's no src.rpm created. The author of FPM has stated it won't ever be done since its hard to do.

That said you can edit the spec file before building the rpm by adding the -e flag. So for example

fpm -s python -t rpm -e requests
Related Topic