Rebuild webpack during RPM build
This is necessary to comply with Fedora's packaging policy: https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/ Include the node cache in the source rpm, unpack it into the main source dir, and force a webpack rebuild in `%build`.
This commit is contained in:
parent
4ca75f143c
commit
9574611768
3 changed files with 18 additions and 5 deletions
|
|
@ -4,7 +4,12 @@
|
|||
|
||||
specfile_path: cockpit-starter-kit.spec
|
||||
actions:
|
||||
post-upstream-clone: make cockpit-starter-kit.spec
|
||||
post-upstream-clone:
|
||||
post-upstream-clone:
|
||||
- make cockpit-starter-kit.spec
|
||||
# replace Source1 manually, as create-archive: can't handle multiple tarballs
|
||||
- make node-cache
|
||||
- sh -c 'sed -i "/^Source1:/ s/https:.*/$(ls *-node*.tar.xz)/" cockpit-*.spec'
|
||||
# build in development mode; production mode uses too much memory for limited
|
||||
# sandcastle containers; also reduce memory consumption of webpack
|
||||
# https://github.com/packit/sandcastle/pull/92
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue