1 |
< |
### RPM external onlinesystemtools 2.1 |
1 |
> |
### RPM external onlinesystemtools 2.2 |
2 |
|
Source: none |
3 |
|
|
4 |
|
# Here we are assuming that online release always uses system compiler: |
5 |
< |
%define compilertools ccompiler cxxcompiler f77compiler jcompiler |
5 |
> |
%define compilertools jcompiler |
6 |
|
|
7 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
8 |
< |
#%define onlinetools curl libpng libtiff libungif mimetic mysql openssl oracle python elementtree qt xdaq xerces zlib |
9 |
< |
%define onlinetools zlib curl oracle openssl xerces-c xdaq mimetic |
7 |
> |
%define onlinetools zlib curl openssl xerces-c xdaq xdaqheader mimetic |
8 |
|
# Define variables used in non-scram-managed tools, that would be |
9 |
|
# normally defined in package's init.sh/csh scrips. |
10 |
|
# Set all versions as currently found on the system. |
13 |
– |
%define compiler_version 3.4.6 |
14 |
– |
## INITENV SET CXXCOMPILER_VERSION %compiler_version |
15 |
– |
## INITENV SET CCOMPILER_VERSION %compiler_version |
16 |
– |
## INITENV SET F77COMPILER_VERSION %compiler_version |
11 |
|
%define curl_version 7.12.1 |
12 |
|
## INITENV SET CURL_VERSION %curl_version |
13 |
|
%define zlib_version 1.2.1.2 |
14 |
|
## INITENV SET ZLIB_VERSION %zlib_version |
15 |
< |
%define oracle_version 10.2.1 |
22 |
< |
## INITENV SET ORACLE_VERSION %oracle_version |
23 |
< |
## INITENV SET ORACLE_ROOT /opt/xdaq |
24 |
< |
%define openssl_version 0.9.7a |
15 |
> |
%define openssl_version 0.9.7e |
16 |
|
## INITENV SET OPENSSL_VERSION %openssl_version |
17 |
|
%define xerces_version 2.7.0 |
18 |
|
## INITENV SET XERCES_C_VERSION %xerces_version |
19 |
|
## INITENV SET XERCES_C_ROOT /opt/xdaq |
20 |
< |
%define xdaq_version 3.16.1 |
20 |
> |
%define xdaq_version 3.28.0 |
21 |
|
## INITENV SET XDAQ_VERSION %xdaq_version |
22 |
|
## INITENV SET XDAQ_ROOT /opt/xdaq |
23 |
|
%define mimetic_version 0.9.1 |
24 |
|
## INITENV SET MIMETIC_VERSION %mimetic_version |
34 |
– |
%else |
35 |
– |
%define onlinetools %{nil} |
36 |
– |
%endif |
25 |
|
|
26 |
|
%define systemtools sockets opengl x11 %compilertools %onlinetools |
27 |
|
%define sockets_version 1.0 |
48 |
|
<Tool name=Sockets version=%sockets_version> |
49 |
|
EOF_TOOLFILE |
50 |
|
case %cmsplatf in |
51 |
< |
slc3_* | slc4_* | slc4onl_* ) |
51 |
> |
slc3_* | slc4_* | slc4onl_* | slc5onl_* ) |
52 |
|
cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets |
53 |
|
<lib name=nsl> |
54 |
|
<lib name=crypt> |
130 |
|
</Tool> |
131 |
|
EOF_TOOLFILE |
132 |
|
|
145 |
– |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
146 |
– |
#cxxcompiler |
147 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler |
148 |
– |
<doc type=BuildSystem::ToolDoc version=1.1> |
149 |
– |
<tool name=cxxcompiler version=%compiler_version type=compiler> |
150 |
– |
<client> |
151 |
– |
<Environment name=GCC_BASE default="/usr"></Environment> |
152 |
– |
<Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> |
153 |
– |
<Environment name=CXX value="$GCCBINDIR/c++"></Environment> |
154 |
– |
</client> |
155 |
– |
<Flags SCRAM_COMPILER_NAME="gcc345"> |
156 |
– |
<Flags CCcompiler="gcc3"> |
157 |
– |
<Flags MODULEFLAGS="-shared"> |
158 |
– |
<Flags CXXDEBUGFLAG="-g"> |
159 |
– |
<Flags CPPDEFINES="GNU_GCC"> |
160 |
– |
<Flags CPPDEFINES="_GNU_SOURCE"> |
161 |
– |
<Flags CXXSHAREDOBJECTFLAGS="-fPIC"> |
162 |
– |
<Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> |
163 |
– |
<Flags CXXFLAGS="-O2"> |
164 |
– |
<Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> |
165 |
– |
<Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> |
166 |
– |
<Flags LDFLAGS="-Wl,-E"> |
167 |
– |
<Flags CXXSHAREDFLAGS="-Wl,-E"> |
168 |
– |
<Flags SHAREDSUFFIX="so"> |
169 |
– |
<Flags SCRAM_LANGUAGE_TYPE="C++"> |
170 |
– |
<Runtime name=GCC_EXEC_PREFIX default="$GCC_BASE/lib/gcc-lib/"> |
171 |
– |
</tool> |
172 |
– |
EOF_TOOLFILE |
173 |
– |
#ccompiler |
174 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler |
175 |
– |
<doc type=BuildSystem::ToolDoc version=1.1> |
176 |
– |
<tool name=ccompiler version=%compiler_version type=compiler> |
177 |
– |
<client> |
178 |
– |
<Environment name=GCC_BASE default="/usr"></Environment> |
179 |
– |
<Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> |
180 |
– |
<Environment name=CC value="$GCCBINDIR/gcc"></Environment> |
181 |
– |
</client> |
182 |
– |
<Flags CDEBUGFLAG="-g"> |
183 |
– |
<Flags CSHAREDOBJECTFLAGS="-fPIC"> |
184 |
– |
<Flags CFLAGS="-pthread"> |
185 |
– |
<Flags CFLAGS="-O2"> |
186 |
– |
<Flags LDFLAGS="-Wl,-E"> |
187 |
– |
<Flags CSHAREDFLAGS="-Wl,-E"> |
188 |
– |
<Flags SCRAM_COMPILER_NAME="gcc345"> |
189 |
– |
<Flags SCRAM_LANGUAGE_TYPE="C"> |
190 |
– |
</tool> |
191 |
– |
EOF_TOOLFILE |
192 |
– |
|
193 |
– |
#f77compiler |
194 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler |
195 |
– |
<doc type=BuildSystem::ToolDoc version=1.1> |
196 |
– |
<tool name=f77compiler version=%compiler_version type=compiler> |
197 |
– |
<lib name=g2c> |
198 |
– |
<lib name=m> |
199 |
– |
<client> |
200 |
– |
<Environment name=G77_BASE default="/usr"></Environment> |
201 |
– |
<Environment name=FC default="$G77_BASE/bin/g77"></Environment> |
202 |
– |
</client> |
203 |
– |
<Flags SCRAM_COMPILER_NAME="gcc345"> |
204 |
– |
<Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> |
205 |
– |
<Flags FCO2Flag="-O2"> |
206 |
– |
<Flags FCOPTIMISED="-O2"> |
207 |
– |
<Flags FCDEBUGFLAG="-g"> |
208 |
– |
<Flags FCSHAREDFCOBJECTFLAGS="-fPIC"> |
209 |
– |
<Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> |
210 |
– |
</tool> |
211 |
– |
EOF_TOOLFILE |
212 |
– |
|
133 |
|
# curl |
134 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/curl |
135 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
138 |
|
<client> |
139 |
|
<Environment name=CURL_BASE default="/usr/"></Environment> |
140 |
|
<Environment name=INCLUDE default="$CURL_BASE/include"></Environment> |
221 |
– |
<Environment name=LIBDIR default="$CURL_BASE/lib"></Environment> |
141 |
|
</client> |
223 |
– |
<Runtime name=PATH value="$CURL_BASE/bin" type=path> |
142 |
|
</Tool> |
143 |
|
EOF_TOOLFILE |
144 |
|
|
150 |
|
<client> |
151 |
|
<Environment name=ZLIB_BASE default="/usr"></Environment> |
152 |
|
<Environment name=INCLUDE default="$ZLIB_BASE/include"></Environment> |
235 |
– |
<Environment name=LIBDIR default="$ZLIB_BASE/lib"></Environment> |
153 |
|
</client> |
154 |
|
</Tool> |
155 |
|
EOF_TOOLFILE |
156 |
|
|
240 |
– |
#oracle |
241 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/oracle |
242 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
243 |
– |
<Tool name=oracle version=%oracle_version> |
244 |
– |
<lib name=clntsh> |
245 |
– |
<lib name=occi> |
246 |
– |
<lib name=nnz10> |
247 |
– |
<Client> |
248 |
– |
<Environment name=ORACLE_BASE default="/opt/xdaq"></Environment> |
249 |
– |
<Environment name=ORACLE_ADMINDIR default="."> </Environment> |
250 |
– |
<Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment> |
251 |
– |
<Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment> |
252 |
– |
<Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment> |
253 |
– |
</Client> |
254 |
– |
<use name=sockets> |
255 |
– |
<Runtime name=PATH value="$BINDIR" type=path> |
256 |
– |
<Runtime name=NLS_LANG value="american_america.WE8ISO8859P9"> |
257 |
– |
<Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY"> |
258 |
– |
<Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data"> |
259 |
– |
<Runtime name=ORACLE_HOME default="$ORACLE_BASE"> |
260 |
– |
<Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR"> |
261 |
– |
</Tool> |
262 |
– |
EOF_TOOLFILE |
157 |
|
|
158 |
|
#openssl |
159 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/openssl |
164 |
|
<client> |
165 |
|
<Environment name=OPENSSL_BASE default="/usr"></Environment> |
166 |
|
<Environment name=INCLUDE default="$OPENSSL_BASE/include"></Environment> |
273 |
– |
<Environment name=LIBDIR default="$OPENSSL_BASE/lib"></Environment> |
167 |
|
</client> |
168 |
|
</Tool> |
169 |
|
EOF_TOOLFILE |
251 |
|
</Tool> |
252 |
|
EOF_TOOLFILE |
253 |
|
|
361 |
– |
%endif |
362 |
– |
|
254 |
|
%post |
255 |
< |
%{relocateConfig}etc/scram.d/sockets |
256 |
< |
%{relocateConfig}etc/scram.d/opengl |
257 |
< |
%{relocateConfig}etc/scram.d/x11 |
367 |
< |
%{relocateConfig}etc/scram.d/jcompiler |
368 |
< |
|
369 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
370 |
< |
%{relocateConfig}etc/scram.d/cxxcompiler |
371 |
< |
%{relocateConfig}etc/scram.d/ccompiler |
372 |
< |
%{relocateConfig}etc/scram.d/f77compiler |
373 |
< |
%{relocateConfig}etc/scram.d/curl |
374 |
< |
%{relocateConfig}etc/scram.d/zlib |
375 |
< |
%{relocateConfig}etc/scram.d/oracle |
376 |
< |
%{relocateConfig}etc/scram.d/openssl |
377 |
< |
%{relocateConfig}etc/scram.d/xerces-c |
378 |
< |
%{relocateConfig}etc/scram.d/xdaq |
379 |
< |
%{relocateConfig}etc/scram.d/xdaqheader |
380 |
< |
%{relocateConfig}etc/scram.d/mimetic |
381 |
< |
|
382 |
< |
%endif |
383 |
< |
|
255 |
> |
cd $RPM_INSTALL_PREFIX/%pkgrel |
256 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
257 |
> |
|