Skip to content

Commit

Permalink
RPM package for testing (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Oct 9, 2019
1 parent eca9d3b commit 23827eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rpm-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package: rpm-test
version: "1.0"
---
# A really empty package to test RPM creation

# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0
# Our environment
prepend-path LD_LIBRARY_PATH \$::env(BASEDIR)/$PKGNAME/\$version/lib
EoF

0 comments on commit 23827eb

Please sign in to comment.