From 6a36618cc31540695383e45442e6b65c4b3a3910 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 3 Jun 2024 09:09:44 +0200 Subject: [PATCH] added missing tool files --- scram/tool-conf.file | 18 ++++++++++++++++++ scram/toolfile.file | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 scram/tool-conf.file create mode 100644 scram/toolfile.file diff --git a/scram/tool-conf.file b/scram/tool-conf.file new file mode 100644 index 00000000000..62d91126f7d --- /dev/null +++ b/scram/tool-conf.file @@ -0,0 +1,18 @@ +## NOCOMPILER +%define auto_dependencies no +%define uctool %(echo %{n} | tr '[a-z-]' '[A-Z_]') +%prep +%build +%install +mkdir -p %{i}/tools/selected %{i}/tools/available +if [ -d %{cmsroot}/%{cmsplatf}/%{directpkgreqs}/lib ] ; then + cp -r %{cmsroot}/%{cmsplatf}/%{directpkgreqs}/lib %{i}/lib +fi +%{expand:%(cat %{cmsroot}/%{cmsplatf}/%{directpkgreqs}/tools/selected.tmpl)} +%{expand:%(cat %{cmsroot}/%{cmsplatf}/%{directpkgreqs}/tools/available.tmpl)} + +%post +echo "%{uctool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh +echo "set %{uctool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh +[ -d $RPM_INSTALL_PREFIX/%{pkgrel}/tools ] && %{relocateCmsFiles} $(find $RPM_INSTALL_PREFIX/%{pkgrel}/tools -type f) +[ -d $RPM_INSTALL_PREFIX/%{pkgrel}/lib ] && %{relocateCmsFiles} $(find $RPM_INSTALL_PREFIX/%{pkgrel}/lib -type f) diff --git a/scram/toolfile.file b/scram/toolfile.file new file mode 100644 index 00000000000..bd23cb36c69 --- /dev/null +++ b/scram/toolfile.file @@ -0,0 +1,13 @@ +## NOCOMPILER +%define auto_dependencies no +%define uctool %(echo %{n} | tr '[a-z-]' '[A-Z_]') +%prep +%build +%install +mkdir -p %{i}/etc/scram.d +%{expand:%(cat %{cmsroot}/%{cmsplatf}/%{buildpkgreqs}/tools.tmpl)} + +%post +echo "%{uctool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh +echo "set %{uctool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh +%{relocateCmsFiles} $(find $RPM_INSTALL_PREFIX/%{pkgrel}/etc/scram.d -type f)