mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
To anticipate the sunsetting of rpmdiff (replaced by rpminspect), this makes sure that the odo RPM package passes rpminspect's inspections. The only error reported at this time was about an invalid spec filename. ``` specname: --------- 1) Spec filename does not exactly match the primary name odo; got 'openshift-odo.spec' Result: BAD Waiver Authorization: Not Waivable Suggested Remedy: The spec file name does not match the expected NAME.spec format. Rename the spec file to conform to this policy. ``` See https://docs.google.com/document/d/1PolwQHoZzf0oeOUN1IK7T_NDRAay-nurwL0xYj2JuOo/edit# for more details.
12 lines
291 B
Bash
Executable File
12 lines
291 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [[ ! -d dist/rpmbuild ]]; then
|
|
echo "Cannot build as artifacts are not generated. Run scrips/rpm-prepare.sh first"
|
|
exit 1
|
|
fi
|
|
|
|
top_dir="`pwd`/dist/rpmbuild"
|
|
echo "Building locally"
|
|
rpmbuild --define "_topdir `echo $top_dir`" -ba dist/rpmbuild/SPECS/odo.spec
|