Make cockpit-starter-kit.spec.in rpmspec compliant

Use `%{VERSION}` as version macro instead of `@VERSION@`, so that the
.spec.in file is syntactically a correct spec file that can be parsed
with `rpmspec`.
This commit is contained in:
Martin Pitt 2020-03-10 10:34:35 +01:00 committed by Martin Pitt
parent b0bf8afa48
commit 38bd17faef
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ dist/po.%.js: po/%.po $(NODE_MODULES_TEST)
#
%.spec: %.spec.in
sed -e 's/@VERSION@/$(VERSION)/g' $< > $@
sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@
$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(shell find src/ -type f) package.json webpack.config.js $(patsubst %,dist/po.%.js,$(LINGUAS))
NODE_ENV=$(NODE_ENV) npm run build

View file

@ -1,5 +1,5 @@
Name: cockpit-starter-kit
Version: @VERSION@
Version: %{VERSION}
Release: 1%{?dist}
Summary: Cockpit Starter Kit Example Module
License: LGPLv2+