-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added suport to build indiviual toolfiles
- Loading branch information
Showing
8 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
### RPM cms coral-tool-conf 10.0 | ||
## NOCOMPILER | ||
|
||
Requires: pcre | ||
Requires: python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def packages(virtual_packages, *args): | ||
from os.path import dirname, join, basename | ||
from glob import glob | ||
tools_dir = join(dirname(__file__), "tools") | ||
for tool in [basename(t) for t in glob(tools_dir+"/*")]: | ||
spec = "%s-toolfile" % tool | ||
virtual_packages[spec] = 'echo -e "### RPM cms %s 1.0\nRequires: %s\n## INCLUDE scram-tools.file/toolfile"' % (spec, tool) | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## INCLUDE compilation_flags | ||
## INCLUDE cuda-flags | ||
|
||
export ROOT_CXXMODULES="0" | ||
%if "%{?package_vectorization}" != "" | ||
export PKG_VECTORIZATION=`echo %package_vectorization` | ||
%endif | ||
export CMSDIST_DIR=%cmsdist_directory | ||
|
||
%ifarch x86_64 | ||
export COMPILER_CXXFLAGS="$(%{cmsdist_directory}/vectorization/cmsdist_packages.py)" | ||
%endif | ||
%ifarch ppc64le | ||
export COMPILER_CXXFLAGS="%{ppc64le_build_flags}" | ||
%endif | ||
export ORACLE_ENV_ROOT="" | ||
export CUDA_FLAGS="%{nvcc_cuda_flags}" | ||
export CUDA_HOST_CXXFLAGS="%{nvcc_stdcxx}" | ||
if [ $(echo ' %requiredtools ' | grep ' python3 ' |wc -l) -gt 0 ] ; then export PYTHON3_LIB_SITE_PACKAGES ; fi | ||
if [ $(echo ' %requiredtools ' | grep ' python ' |wc -l) -gt 0 ] ; then export PYTHON_LIB_SITE_PACKAGES ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## NOCOMPILER | ||
## NO_AUTO_RUNPATH | ||
## NO_AUTO_DEPENDENCY | ||
Source: none | ||
%define tool %(echo %{n} | sed 's|-toolfile$||') | ||
%define uctool %(echo %{tool} | tr '[a-z-]' '[A-Z_]') | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
## INCLUDE scram-tools.file/tool-env | ||
%{cmsdist_directory}/scram-tools.file/bin/get_tools "${%{uctool}_ROOT}" "${%{uctool}_VERSION}" %i "%{tool}" | ||
mkdir %{i}/etc | ||
mv %{i}/tools/selected %{i}/etc/scram.d | ||
rm -rf %{i}/tools | ||
|
||
%post | ||
if [ "X$CMS_INSTALL_PREFIX" = "X" ] ; then CMS_INSTALL_PREFIX=$RPM_INSTALL_PREFIX; export CMS_INSTALL_PREFIX; fi | ||
%{relocateConfig}etc/scram.d/*.xml | ||
echo "%{uctool}_TOOLFILE_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh | ||
echo "set %{uctool}_TOOLFILE_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh |