Files
odo/scripts/rpm-local-build.sh
Armel Soro 8c2c633755 Fix rpminspect specname inspection failure (#6241)
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.
2022-11-02 10:40:41 -04:00

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