Revision: | 1.61 |
Committed: | Sun Mar 6 23:29:45 2011 UTC (14 years, 1 month ago) by elmer |
Branch: | MAIN |
CVS Tags: | TW20110627a, TW20110623b, TW20110623a, HG1106e, builder_2011-06-17_14-52-14_cmsweb, builder_2011-06-16_19-08-24_wmagent, builder_2011-06-16_16-09-02_wmagent, builder_2011-06-15_16-54-18_wmagent, builder_2011-06-10_23-58-54_cmsweb, HG1106d, builder_2011-06-08_17-25-21_workqueue, builder_2011-06-07_22-07-15_reqmgr, builder_2011-06-04_17-45-11_dbs3, builder_2011-06-04_17-44-57_dbs3-client, builder_2011-05-31_01-23-03_cmsweb, builder_2011-05-31_00-51-28_cmsweb, HG1106c, TW20110530a, TW20110527b, TW20110527a, builder_2011-05-25_15-26-47_crab-server3, TW20110525a, TW20110524b, TW20110524a, builder_2011-05-24_10-10-21_cmsweb, HG1106b, builder_2011-05-23_17-26-34_crab-server3, builder_2011-05-20_10-32-01_sitereadiness, builder_2011-05-19_15-09-56_wmagent, builder_2011-05-16_15-13-08_cmsweb, HG1106a, builder_2011-05-13_17-08-55_wmagent, builder_2011-05-11_13-24-46_dbs3-client, builder_2011-05-09_14-05-53_dqmgui, builder_2011-05-05_16-10-12_py2-sqlobject, builder_2011-05-05_13-16-07_dqmgui, builder_2011-05-02_19-33-26_cmsweb, builder_2011-05-02_18-58-25_cmsweb, HG1105c, builder_2011-04-27_19-30-26_cmsweb, builder_2011-04-26_15-14-44_cmsweb, HG1105b, TW20110421b, TW20110421a, builder_2011-04-19_17-22-40_T0PromptSkim, TW20110419c, TW20110419b, TW20110419a, TW20110418a, builder_2011-04-16_00-43-59_reqmgr, TW20110415a, builder_2011-04-15_14-49-10_wmagent, TW20110414c, TW20110414b, TW20110414a, builder_2011-04-12_17-09-48_cmsweb, HG1105a, builder_2011-04-11_19-04-03_workqueue, builder_2011-04-08_17-08-57_cmsweb, HG1104e, builder_2011-04-08_12-05-32_calendar-shift, builder_2011-04-08_11-26-43_wmagent, ge20110407-igprof-book, builder_2011-04-07_19-51-01_calendar-shift, builder_2011-04-07_17-11-58_calendar-shift, builder_2011-04-07_16-23-25_calendar-shift, builder_2011-04-07_15-45-05_calendar-shift, TW20110407a, HG1104d, TW20110331c, TW20110331b, TW20110331a, TW20110330a, builder_2011-03-29_10-01-40_cmsweb, HG1104c, TW20110328a, builder_2011-03-25_15-38-34_cmsweb, builder_2011-03-25_12-48-58_cmsweb, builder_2011-03-24_17-23-46_reqmgr, builder_2011-03-23_16-16-18_cmsweb, builder_2011-03-23_16-04-32_cmsweb, builder_2011-03-23_11-32-11_cmsweb, builder_2011-03-23_10-48-54_cmsweb, HG1104b, builder_2011-03-23_09-32-23_cmsweb, TW20110322e, TW20110322d, TW20110322c, builder_2011-03-21_16-11-33_calendar-shift, builder_2011-03-21_16-08-10_calendar-shift, builder_2011-03-21_15-53-32_calendar-shift, builder_2011-03-18_17-21-58_cmsweb, HG1104a |
Changes since 1.60: | +1 -1 lines |
Log Message: | Update to version 1.46.0 |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.61 | ### RPM external boost 1.46.0 |
2 | elmer | 1.17 | %define boostver _%(echo %realversion | tr . _) |
3 | elmer | 1.58 | Source: http://switch.dl.sourceforge.net/project/%{n}/%{n}/%{v}/%{n}%{boostver}.tar.gz |
4 | muzaffar | 1.46 | %define closingbrace ) |
5 | elmer | 1.47 | %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac) |
6 | argiro | 1.1 | |
7 | ratnik | 1.25 | Requires: boost-build python bz2lib |
8 | muzaffar | 1.45 | %if "%online" != "true" |
9 | ratnik | 1.25 | Requires: zlib |
10 | %endif | ||
11 | |||
12 | argiro | 1.1 | %prep |
13 | %setup -n %{n}%{boostver} | ||
14 | |||
15 | %build | ||
16 | ratnik | 1.25 | PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*-.*$//')" |
17 | argiro | 1.1 | PR="PYTHON_ROOT=$PYTHON_ROOT" |
18 | ratnik | 1.25 | |
19 | elmer | 1.17 | # The following line assumes a version of the form x.y.z-XXXX, where the |
20 | # "-XXXX" part represents some CMS rebuild of version x.y.z | ||
21 | BZ2LIBR="BZIP2_LIBPATH=$BZ2LIB_ROOT/lib" | ||
22 | ratnik | 1.25 | BZ2LIBI="BZIP2_INCLUDE=$BZ2LIB_ROOT/include" |
23 | |||
24 | muzaffar | 1.45 | %if "%online" != "true" |
25 | eulisse | 1.8 | ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib" |
26 | ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include" | ||
27 | |||
28 | argiro | 1.1 | case $(uname) in |
29 | dsr | 1.51 | Darwin ) bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR toolset=darwin stage;; |
30 | * ) bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR toolset=gcc stage;; | ||
31 | argiro | 1.1 | esac |
32 | ratnik | 1.25 | %else |
33 | dsr | 1.51 | bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$BZ2LIBI toolset=gcc stage |
34 | ratnik | 1.25 | %endif |
35 | argiro | 1.1 | |
36 | %install | ||
37 | case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac | ||
38 | eulisse | 1.52 | mkdir -p %i/lib %i/include |
39 | # copy files around in their final location. | ||
40 | # We use tar to reduce the number of processes required | ||
41 | # and because we need to build the build hierarchy for | ||
42 | # the files that we are copying. | ||
43 | pushd stage/lib | ||
44 | find . -name "*.$so*" -type f | tar cf - -T - | (cd %i/lib; tar xfp -) | ||
45 | popd | ||
46 | find boost -name '*.[hi]*' | tar cf - -T - | ( cd %i/include; tar xfp -) | ||
47 | ratnik | 1.19 | |
48 | eulisse | 1.42 | for l in `find %i/lib -name "*.$so.*"` |
49 | do | ||
50 | ln -s `basename $l` `echo $l | sed -e "s|[.]$so[.].*|.$so|"` | ||
51 | done | ||
52 | ratnik | 1.31 | |
53 | eulisse | 1.52 | pushd libs/python/pyste/install |
54 | python setup.py install --prefix=%i | ||
55 | popd | ||
56 | |||
57 | # Do all manipulation with files before creating symbolic links: | ||
58 | perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin -type f) | ||
59 | ratnik | 1.16 | |
60 | diego | 1.59 | # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment. |
61 | diego | 1.54 | mkdir -p %i/etc/profile.d |
62 | diego | 1.59 | : > %i/etc/profile.d/dependencies-setup.sh |
63 | : > %i/etc/profile.d/dependencies-setup.csh | ||
64 | for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do | ||
65 | root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root | ||
66 | if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then | ||
67 | echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh | ||
68 | echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh | ||
69 | fi | ||
70 | diego | 1.54 | done |
71 | diego | 1.53 | |
72 | muzaffar | 1.21 | %post |
73 | diego | 1.59 | %{relocateConfig}etc/profile.d/dependencies-setup.*sh |