It would be nice if an RPM could be built when building a package, just as "buildpkg" can be set as a FEATURE to build a binary package. Thanks !
RPMDIR = [path] Defines the location where created RPM packages will be stored. Defaults to ${PORTDIR}/rpm. Somehow I can't get that to work, but it should suffice if it did work.
I know "ebuild xxxx.ebuild rpm" works and makes the RPM package. But that means building the package again. I'd like to just add ... FEATURES="buildpkg rpm" and then do ... emerge xxxxx and it auto-generates the RPM (from the rpm FEATURE), and also the TAR.GZ (from the buildpkg FEATURE). I already use the latter.
Since 2.2.0 we have a PORTAGE_BINPKG_FORMAT variable that you can set in make.conf, and also emerge --pkg-format http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=73a972e0cac5d7e5f59a58c11e998793fe2b1a2d