The `RELEASE` already logs the `SPARK_HADOOP_VERSION`. This might suffice the general use case.
```
echo "Spark $VERSION built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
```