1 |
< |
### RPM cms seal-tool-conf CMS_148b |
2 |
< |
# DO NOT MODIFY. This spec file is automatically generated by executing src/createConfSpecs.sh in the |
3 |
< |
# main directory. Modify src/toolConfiguration.xsl if needed. |
4 |
< |
|
5 |
< |
# We set a special variable TOOLCONF_VERSION which is then used by scram-build.file and scramv1-build.file to |
6 |
< |
# check out the correct toolbox. Notice that all the *-tool-conf.spec set the same variable so this is |
7 |
< |
# relevant only for build time and not for runtime. |
8 |
< |
## INITENV SET TOOLCONF_VERSION %{v} |
9 |
< |
Source0: none |
1 |
> |
### RPM cms seal-tool-conf CMS_152 |
2 |
> |
%if "%{?use_system_gcc:set}" != "set" |
3 |
> |
Requires: gcc-toolfile |
4 |
> |
Requires: gmake |
5 |
> |
%endif |
6 |
|
|
7 |
< |
Requires: gcc |
7 |
> |
%if "%{?online_release:set}" != "set" |
8 |
> |
Requires: zlib |
9 |
> |
Requires: expat |
10 |
> |
Requires: openssl |
11 |
> |
Requires: db4 |
12 |
> |
Requires: gdbm |
13 |
> |
Requires: qt |
14 |
> |
Requires: castor |
15 |
> |
Requires: mysql |
16 |
> |
Requires: libpng |
17 |
> |
Requires: libjpg |
18 |
> |
Requires: dcap |
19 |
> |
Requires: oracle |
20 |
> |
Requires: oracle-env |
21 |
> |
Requires: libungif |
22 |
> |
Requires: libtiff |
23 |
> |
Requires: cppunit |
24 |
> |
Requires: systemtools |
25 |
> |
%else |
26 |
> |
Requires: onlinesystemtools |
27 |
> |
%define onlinesystemtoolsroot ${ONLINESYSTEMTOOLS_ROOT} |
28 |
> |
%endif |
29 |
|
|
30 |
+ |
Requires: python |
31 |
|
Requires: pcre |
14 |
– |
Requires: zlib |
32 |
|
Requires: bz2lib |
33 |
|
Requires: uuid |
17 |
– |
Requires: python |
34 |
|
Requires: gccxml |
35 |
|
Requires: boost |
36 |
|
Requires: gsl |
37 |
|
Requires: clhep |
38 |
|
Requires: root |
23 |
– |
Requires: cppunit |
24 |
– |
%prep |
25 |
– |
%build |
26 |
– |
(echo "ARCHITECTURE:%{cmsplatf}" |
27 |
– |
echo "SCRAM_BASEPATH:%{instroot}/external" |
28 |
– |
|
29 |
– |
%if "%{?use_system_gcc:set}" == "set" |
30 |
– |
echo "TOOL:cxxcompiler:" |
31 |
– |
echo " +GCC_BASE:/none" |
32 |
– |
echo " +CC:$(which gcc)" |
33 |
– |
echo " +CXX:$(which c++)" |
34 |
– |
echo " +PATH:/none" # useless, toolbox says value="" |
35 |
– |
echo " +LD_LIBRARY_PATH:/none" # useless, toolbox says value="" |
36 |
– |
echo "TOOL:g77gcc3:" |
37 |
– |
echo " +FC:$(which g77 | grep -v 'no g77')" |
38 |
– |
%endif |
39 |
– |
%if "%{?use_system_gcc:set}-%{?use_ccache:set}" == "-set" |
40 |
– |
echo "TOOL:cxxcompiler:" |
41 |
– |
echo " +GCC_BASE:$CCACHE_ROOT" |
42 |
– |
eval "echo \" +CC:$CCACHE_ROOT/bin/gcc\"" |
43 |
– |
eval "echo \" +CXX:$CCACHE_ROOT/bin/c++\"" |
44 |
– |
echo "TOOL:g77gcc3:" |
45 |
– |
echo " +FC:$GCC_ROOT/bin/g77" |
46 |
– |
%endif |
47 |
– |
%if "%{?use_system_gcc:set}-%{?use_ccache:set}" == "-" |
48 |
– |
echo "TOOL:cxxcompiler:" |
49 |
– |
echo " +GCC_BASE:$GCC_ROOT" |
50 |
– |
echo "TOOL:g77gcc3:" |
51 |
– |
echo " +FC:$GCC_ROOT/bin/g77" |
52 |
– |
%endif |
53 |
– |
|
54 |
– |
%if "%{?use_system_gcc:set}" == "set" |
55 |
– |
echo "TOOL:ccompiler:" |
56 |
– |
echo " +GCC_BASE:/none" |
57 |
– |
echo " +CC:$(which gcc)" |
58 |
– |
echo " +CXX:$(which c++)" |
59 |
– |
echo " +PATH:/none" # useless, toolbox says value="" |
60 |
– |
echo " +LD_LIBRARY_PATH:/none" # useless, toolbox says value="" |
61 |
– |
echo "TOOL:g77gcc3:" |
62 |
– |
echo " +FC:$(which g77 | grep -v 'no g77')" |
63 |
– |
%endif |
64 |
– |
%if "%{?use_system_gcc:set}-%{?use_ccache:set}" == "-set" |
65 |
– |
echo "TOOL:ccompiler:" |
66 |
– |
echo " +GCC_BASE:$CCACHE_ROOT" |
67 |
– |
eval "echo \" +CC:$CCACHE_ROOT/bin/gcc\"" |
68 |
– |
eval "echo \" +CXX:$CCACHE_ROOT/bin/c++\"" |
69 |
– |
echo "TOOL:g77gcc3:" |
70 |
– |
echo " +FC:$GCC_ROOT/bin/g77" |
71 |
– |
%endif |
72 |
– |
%if "%{?use_system_gcc:set}-%{?use_ccache:set}" == "-" |
73 |
– |
echo "TOOL:ccompiler:" |
74 |
– |
echo " +GCC_BASE:$GCC_ROOT" |
75 |
– |
echo "TOOL:g77gcc3:" |
76 |
– |
echo " +FC:$GCC_ROOT/bin/g77" |
77 |
– |
%endif |
78 |
– |
|
79 |
– |
echo "TOOL:pcre:" |
80 |
– |
eval "echo \" +PCRE_BASE:\${PCRE_ROOT}\"" |
81 |
– |
eval "echo \" +PATH:\${PCRE_ROOT}/bin\"" |
82 |
– |
eval "echo \" +LIBDIR:\${PCRE_ROOT}/lib\"" |
83 |
– |
eval "echo \" +INCLUDE:\${PCRE_ROOT}/include\"" |
84 |
– |
|
85 |
– |
|
86 |
– |
echo "TOOL:zlib:" |
87 |
– |
eval "echo \" +ZLIB_BASE:\${ZLIB_ROOT}\"" |
88 |
– |
eval "echo \" +PATH:\${ZLIB_ROOT}/bin\"" |
89 |
– |
eval "echo \" +LIBDIR:\${ZLIB_ROOT}/lib\"" |
90 |
– |
eval "echo \" +INCLUDE:\${ZLIB_ROOT}/include\"" |
91 |
– |
|
92 |
– |
|
93 |
– |
echo "TOOL:bz2lib:" |
94 |
– |
eval "echo \" +BZ2LIB_BASE:\${BZ2LIB_ROOT}\"" |
95 |
– |
eval "echo \" +PATH:\${BZ2LIB_ROOT}/bin\"" |
96 |
– |
eval "echo \" +LIBDIR:\${BZ2LIB_ROOT}/lib\"" |
97 |
– |
eval "echo \" +INCLUDE:\${BZ2LIB_ROOT}/include\"" |
98 |
– |
|
99 |
– |
|
100 |
– |
echo "TOOL:uuid:" |
101 |
– |
eval "echo \" +UUID_BASE:\${UUID_ROOT}\"" |
102 |
– |
eval "echo \" +PATH:\${UUID_ROOT}/bin\"" |
103 |
– |
eval "echo \" +LIBDIR:\${UUID_ROOT}/lib\"" |
104 |
– |
eval "echo \" +INCLUDE:\${UUID_ROOT}/include\"" |
105 |
– |
|
106 |
– |
PYTHON_MAJOR=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*$//') |
107 |
– |
echo "TOOL:python:" |
108 |
– |
echo " +PYTHON_BASE:$PYTHON_ROOT" |
109 |
– |
echo " +LIBDIR:$PYTHON_ROOT/lib" |
110 |
– |
echo " +INCLUDE:$PYTHON_ROOT/include/python$PYTHON_MAJOR" |
111 |
– |
echo " +PATH:$PYTHON_ROOT/bin" |
112 |
– |
|
113 |
– |
|
114 |
– |
echo "TOOL:gccxml:" |
115 |
– |
eval "echo \" +GCCXML_BASE:\${GCCXML_ROOT}\"" |
116 |
– |
eval "echo \" +PATH:\${GCCXML_ROOT}/bin\"" |
117 |
– |
eval "echo \" +LIBDIR:\${GCCXML_ROOT}/lib\"" |
118 |
– |
eval "echo \" +INCLUDE:\${GCCXML_ROOT}/include\"" |
119 |
– |
|
120 |
– |
|
121 |
– |
echo "TOOL:boost:" |
122 |
– |
eval "echo \" +BOOST_BASE:\${BOOST_ROOT}\"" |
123 |
– |
eval "echo \" +PATH:\${BOOST_ROOT}/bin\"" |
124 |
– |
eval "echo \" +LIBDIR:\${BOOST_ROOT}/lib\"" |
125 |
– |
eval "echo \" +INCLUDE:\${BOOST_ROOT}/include\"" |
126 |
– |
|
127 |
– |
|
128 |
– |
echo "TOOL:gsl:" |
129 |
– |
eval "echo \" +GSL_BASE:\${GSL_ROOT}\"" |
130 |
– |
eval "echo \" +PATH:\${GSL_ROOT}/bin\"" |
131 |
– |
eval "echo \" +LIBDIR:\${GSL_ROOT}/lib\"" |
132 |
– |
eval "echo \" +INCLUDE:\${GSL_ROOT}/include\"" |
133 |
– |
|
134 |
– |
|
135 |
– |
echo "TOOL:clhep:" |
136 |
– |
eval "echo \" +CLHEP_BASE:\${CLHEP_ROOT}\"" |
137 |
– |
eval "echo \" +PATH:\${CLHEP_ROOT}/bin\"" |
138 |
– |
eval "echo \" +LIBDIR:\${CLHEP_ROOT}/lib\"" |
139 |
– |
eval "echo \" +INCLUDE:\${CLHEP_ROOT}/include\"" |
140 |
– |
|
141 |
– |
echo "TOOL:root:" |
142 |
– |
echo " +ROOT_BASE:$ROOT_ROOT" |
143 |
– |
echo " +ROOTSYS:$ROOT_ROOT/root" |
144 |
– |
|
145 |
– |
echo "TOOL:rootcore:" |
146 |
– |
echo " +ROOTCORE_BASE:$ROOT_ROOT" |
147 |
– |
echo " +ROOTSYS:$ROOT_ROOT/root" |
148 |
– |
|
149 |
– |
echo "TOOL:rootrflx:" |
150 |
– |
echo " +ROOTRFLX_BASE:$ROOT_ROOT" |
151 |
– |
echo " +ROOTSYS:$ROOT_ROOT/root" |
152 |
– |
echo " +GENREFLEX=$ROOT_ROOT/root/bin/genreflex" |
153 |
– |
|
39 |
|
|
40 |
< |
echo "TOOL:cppunit:" |
41 |
< |
eval "echo \" +CPPUNIT_BASE:\${CPPUNIT_ROOT}\"" |
157 |
< |
eval "echo \" +PATH:\${CPPUNIT_ROOT}/bin\"" |
158 |
< |
eval "echo \" +LIBDIR:\${CPPUNIT_ROOT}/lib\"" |
159 |
< |
eval "echo \" +INCLUDE:\${CPPUNIT_ROOT}/include\"" |
40 |
> |
%define skipreqtools %{nil} |
41 |
> |
%define skipreqtools jcompiler |
42 |
|
|
43 |
< |
) > tools.conf |
162 |
< |
%install |
163 |
< |
mkdir %i/configurations/ |
164 |
< |
cp tools.conf %i/configurations/tools-STANDALONE.conf |
165 |
< |
%post |
166 |
< |
%{relocateConfig}configurations/tools-STANDALONE.conf |
43 |
> |
## IMPORT scramv1-tool-conf |