Skip to content

Commit

Permalink
added missing tool files
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jun 3, 2024
1 parent 8c74431 commit 6a36618
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scram/tool-conf.file
Original file line number Diff line number Diff line change
@@ -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)
13 changes: 13 additions & 0 deletions scram/toolfile.file
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 6a36618

Please sign in to comment.