1 |
< |
### RPM external onlinesystemtools 2.0 |
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.15.0 |
20 |
> |
%define xdaq_version 3.24.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> |
157 |
|
</Tool> |
158 |
|
EOF_TOOLFILE |
159 |
|
|
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 |
160 |
|
|
161 |
|
#openssl |
162 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/openssl |
230 |
|
</Tool> |
231 |
|
EOF_TOOLFILE |
232 |
|
|
233 |
+ |
#xdaqheader |
234 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/xdaqheader |
235 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
236 |
+ |
<Tool name=XDAQHEADER version=%xdaq_version> |
237 |
+ |
<info url=http://home.cern.ch/xdaq></info> |
238 |
+ |
<Client> |
239 |
+ |
<Environment name=XDAQHEADER_BASE default="/opt/xdaq"></Environment> |
240 |
+ |
<Environment name=INCLUDE default="$XDAQHEADER_BASE/include"></Environment> |
241 |
+ |
</Client> |
242 |
+ |
</Tool> |
243 |
+ |
EOF_TOOLFILE |
244 |
+ |
|
245 |
|
#mimetic |
246 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/mimetic |
247 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
255 |
|
</Tool> |
256 |
|
EOF_TOOLFILE |
257 |
|
|
349 |
– |
%endif |
350 |
– |
|
258 |
|
%post |
259 |
< |
%{relocateConfig}etc/scram.d/sockets |
260 |
< |
%{relocateConfig}etc/scram.d/opengl |
261 |
< |
%{relocateConfig}etc/scram.d/x11 |
355 |
< |
%{relocateConfig}etc/scram.d/jcompiler |
356 |
< |
|
357 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
358 |
< |
%{relocateConfig}etc/scram.d/cxxcompiler |
359 |
< |
%{relocateConfig}etc/scram.d/ccompiler |
360 |
< |
%{relocateConfig}etc/scram.d/f77compiler |
361 |
< |
%{relocateConfig}etc/scram.d/curl |
362 |
< |
%{relocateConfig}etc/scram.d/zlib |
363 |
< |
%{relocateConfig}etc/scram.d/oracle |
364 |
< |
%{relocateConfig}etc/scram.d/openssl |
365 |
< |
%{relocateConfig}etc/scram.d/xerces-c |
366 |
< |
%{relocateConfig}etc/scram.d/xdaq |
367 |
< |
%{relocateConfig}etc/scram.d/mimetic |
368 |
< |
|
369 |
< |
%endif |
370 |
< |
|
259 |
> |
cd $RPM_INSTALL_PREFIX/%pkgrel |
260 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
261 |
> |
|