Use image-customize --build to build/install distribution packages

This centralizes/factorizes the rpm package builds, and builds
RPM packages in the VM instead of on the host, which is cleaner. It also
paves the way for supporting Debian and arch builds.

Drop the `make srpm` rule, as it's not very useful. Keep the `make rpm`
rule, as sometimes developers do this manually. This might be replaced
later on with another image-customize feature which copies the built rpm
out of the VM.
This commit is contained in:
Martin Pitt 2022-02-04 06:57:26 +01:00 committed by Martin Pitt
parent 799d8f5cc9
commit b2662eeebd
2 changed files with 10 additions and 18 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# image-customize script to enable cockpit in test VMs
# The application RPM will be installed separately
# image-customize script to prepare a bots VM for testing this application
# The application package will be installed separately
set -eu
# don't force https:// (self-signed cert)