On Thu, Sep 3, 2020 at 9:28 AM Tom Hughes <tom(a)compton.nu> wrote:
On 03/09/2020 16:41, Troy Dawson wrote:
> Any changes and/or improvements that people think should be made?
Well macros for all that boilerplate in the spec is an
obvious one.
Also making the script fetch the actual version being packaged
rather than the latest version would be good. Something like:
VERSION="$(rpmspec --srpm --queryformat=%{VERSION} -q nodejs-${PACKAGE}.spec)"
and then:
npm pack ${PACKAGE}@${VERSION}
Tom
Good point. I guess I had sorta hard coded both the name and the version.
So if they provide a version, use it, and if not, use the latest.
Troy