packaging: Declare bundled NPM dependencies in spec file
See https://bugzilla.redhat.com/show_bug.cgi?id=2180520 Turn the pattern make rule into an explicit one, as pattern rules don't support dependencies. We only need it for our single spec file anyway.
This commit is contained in:
parent
aeb81718e7
commit
8817969d16
2 changed files with 5 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -77,8 +77,9 @@ po/LINGUAS:
|
|||
# Build/Install/dist
|
||||
#
|
||||
|
||||
%.spec: packaging/%.spec.in
|
||||
sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@
|
||||
$(SPEC): packaging/$(SPEC).in $(NODE_MODULES_TEST)
|
||||
provides=$$(npm ls --omit dev --package-lock-only --depth=Infinity | grep -Eo '[^[:space:]]+@[^[:space:]]+' | sort -u | sed 's/^/Provides: bundled(npm(/; s/\(.*\)@/\1)) = /'); \
|
||||
awk -v p="$$provides" '{gsub(/%{VERSION}/, "$(VERSION)"); gsub(/%{NPM_PROVIDES}/, p)}1' $< > $@
|
||||
|
||||
$(DIST_TEST): $(NODE_MODULES_TEST) $(COCKPIT_REPO_STAMP) $(shell find src/ -type f) package.json webpack.config.js
|
||||
NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue