How do I get an RPM .spec file from FPM (Effing Package Management)?

0

1

I have made a package with Effing Package Management on CentOS 6, and sent people the fpm... stuff to generate it. It looks like some of these people I trust would like to see a .spec file, too.

I searched through FPM's GitHub and the most recent advice I found about doing this was at this link (RPM: support for just generating the RPM spec file #689). Good advice, but it ended up not really doing the trick.

Also, as far as I know, .rpm files don't usually contain a .spec file so nice and neat, normally.

How do I get fpm to spit me out a good old .spec file if I need one?

Nathan Basanese

Posted 2015-09-15T22:00:01.337

Reputation: 658

Answers

1

You can leverage FPM's ability to edit SPEC files (-e) to get it to dump the generated one to a file by setting the FPM_EDITOR env variable:

FPM_EDITOR="cat >spec_file " fpm -e -s dir -t rpm -n test test_dir

Stuart Gillibrand

Posted 2015-09-15T22:00:01.337

Reputation: 11

// , Isn't that just a dummy spec file, though? It looks like it's just a bunch of noops. – Nathan Basanese – 2015-09-30T17:54:12.720