From 1cb47a505f76707f24145e880dfb2bb8a348e6e5 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 21 Jul 2022 13:55:46 +0200 Subject: [PATCH] slsDetectorPackage: new module added --- DetectorSoftware/slsDetectorPackage/build | 12 ++++++++++++ .../slsDetectorPackage/files/fname-fix.patch | 13 +++++++++++++ .../slsDetectorPackage/files/variants.yaml | 3 +++ DetectorSoftware/slsDetectorPackage/modulefile | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100755 DetectorSoftware/slsDetectorPackage/build create mode 100644 DetectorSoftware/slsDetectorPackage/files/fname-fix.patch create mode 100644 DetectorSoftware/slsDetectorPackage/files/variants.yaml create mode 100644 DetectorSoftware/slsDetectorPackage/modulefile diff --git a/DetectorSoftware/slsDetectorPackage/build b/DetectorSoftware/slsDetectorPackage/build new file mode 100755 index 0000000..0a741ce --- /dev/null +++ b/DetectorSoftware/slsDetectorPackage/build @@ -0,0 +1,12 @@ +#!/usr/bin/env modbuild + +pbuild::set_download_url "https://github.com/slsdetectorgroup/$P/archive/refs/tags/${V_PKG}.tar.gz" + +pbuild::add_to_group 'DetectorSoftware' +pbuild::add_patch 'files/fname-fix.patch' + +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: diff --git a/DetectorSoftware/slsDetectorPackage/files/fname-fix.patch b/DetectorSoftware/slsDetectorPackage/files/fname-fix.patch new file mode 100644 index 0000000..f773eb9 --- /dev/null +++ b/DetectorSoftware/slsDetectorPackage/files/fname-fix.patch @@ -0,0 +1,13 @@ +diff --git a/slsSupportLib/CMakeLists.txt b/slsSupportLib/CMakeLists.txt +index efa8010..e842b3d 100755 +--- a/slsSupportLib/CMakeLists.txt ++++ b/slsSupportLib/CMakeLists.txt +@@ -46,7 +46,7 @@ if(SLS_DEVEL_HEADERS) + include/sls/versionAPI.h + include/sls/ZmqSocket.h + include/sls/bit_utils.h +- include/sls/mdf5.h ++ include/sls/md5.h + include/sls/md5_helper.h + ) + endif() diff --git a/DetectorSoftware/slsDetectorPackage/files/variants.yaml b/DetectorSoftware/slsDetectorPackage/files/variants.yaml new file mode 100644 index 0000000..8725ca7 --- /dev/null +++ b/DetectorSoftware/slsDetectorPackage/files/variants.yaml @@ -0,0 +1,3 @@ +slsDetectorPackage/6.1.1: + - relstage: unstable + build_requires: cmake/3.15.5 zeromq/4.3.4 diff --git a/DetectorSoftware/slsDetectorPackage/modulefile b/DetectorSoftware/slsDetectorPackage/modulefile new file mode 100644 index 0000000..0008cc8 --- /dev/null +++ b/DetectorSoftware/slsDetectorPackage/modulefile @@ -0,0 +1,9 @@ +#%Module1.0 + +module-whatis "SLS detector package" +module-url "https://www.psi.ch/en/lxn/software-releases" +module-license "GNU LGPL 3.0" +module-maintainer "Lars Erik Froejdh " + +module-help " +"