diff --git a/README.md b/README.md index 2734e44..8bea27d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ # Description The tools that are used to display a custom composable motd on login in SCITAS clusters. # Build RPM Recipe to build the RPM, the tag with the version number must exist! ```bash export VERSION=0.1 -mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} -git archive --prefix=scitas-motd-scripts-$VERSION/ -o ~/rpmbuild/SOURCES/scitas-motd-scripts-$VERSION.tar.gz $VERSION -cp scitas-motd-scripts.spec ~/rpmbuild/SPECS/ -rpmbuild -bb ~/rpmbuild/SPECS/scitas-motd-scripts.spec +export TOPDIR="$(pwd)/rpmbuild" +mkdir -p $TOPDIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} +git archive --prefix=scitas-motd-scripts-$VERSION/ -o $TOPDIR/SOURCES/scitas-motd-scripts-$VERSION.tar.gz $VERSION +cp scitas-motd-scripts.spec $TOPDIR/SPECS/ +rpmbuild --define "_topdir $TOPDIR" -bb $TOPDIR/SPECS/scitas-motd-scripts.spec ```