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.
This commit is contained in:
Armel Soro
2022-11-02 15:40:41 +01:00
committed by GitHub
parent 918a4e97fb
commit 8c2c633755
3 changed files with 3 additions and 3 deletions

View File

@@ -8,4 +8,4 @@ fi
top_dir="`pwd`/dist/rpmbuild"
echo "Building locally"
rpmbuild --define "_topdir `echo $top_dir`" -ba dist/rpmbuild/SPECS/openshift-odo.spec
rpmbuild --define "_topdir `echo $top_dir`" -ba dist/rpmbuild/SPECS/odo.spec

View File

@@ -48,8 +48,8 @@ mkdir -p "$SPEC_DIR"
mkdir -p $SOURCES_DIR/$NAME
mkdir -p "$FINAL_OUT_DIR"
echo "Generating spec file $SPEC_DIR/openshift-odo.spec"
envsubst <rpms/openshift-odo.spec > $SPEC_DIR/openshift-odo.spec
echo "Generating spec file $SPEC_DIR/odo.spec"
envsubst <rpms/odo.spec > $SPEC_DIR/odo.spec
echo "Generating tarball $SOURCES_DIR/$NAME.tar.gz"
# Copy code for manipulation