As I'm implementing this, I'm realizing that it probably only makes
sense to have the default version of Node.js on each Fedora release
provide the unversioned-command. Otherwise it becomes really hard to
ensure that the RPM macros like %{nodejs_sitelib} refer to the correct
location. So I think I'll stick with "if you're packaging for Fedora,
it has to work on the default Node release *or* you must deal with
everything yourself if you need to run on a different runtime".
On Wed, Sep 14, 2022 at 3:38 PM Stephen Gallagher <sgallagh(a)redhat.com> wrote:
I've updated
https://fedoraproject.org/wiki/Changes/NodejsRepackaging
with the results of this discussion. I'll go the
`nodejs-$MAJOR-unversioned-command` route.