ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/boost.spec
(Generate patch)

Comparing COMP/CMSDIST/boost.spec (file contents):
Revision 1.19 by ratnik, Mon Jul 23 19:47:18 2007 UTC vs.
Revision 1.21 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.33.1-CMS3
1 > ### RPM external boost 1.33.1-CMS8
2   # Patches and build fudging by Lassi A. Tuura <lat@iki.fi> (FIXME: contribute to boost)
3   %define boostver _%(echo %realversion | tr . _)
4   Requires: boost-build python bz2lib zlib
# Line 30 | Line 30 | esac
30   %install
31   boost_abi=$(echo %boostver | sed 's/^_//; s/_0$//')
32   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
33 < mkdir -p %i/lib/debug
34 < (cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;)
35 < (cd bin/boost; find libs -path "libs/*/release/*.$so" -exec cp {} %i/lib \;)
33 > #no debug libs...
34 > #mkdir -p %i/lib/debug
35 > mkdir %i/lib
36 > #(cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;)
37 > (cd bin/boost; find libs -path "libs/*/release/*.$so" -exec cp  {} %i/lib/. \;)
38   find boost -name '*.[hi]*' -print |
39    while read f; do
40      mkdir -p %i/include/$(dirname $f)
# Line 50 | Line 52 | find libs -name '*.py' -print |
52  
53   # Do all manipulation with files before creating symbolic links:
54   perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
55 < strip %i/lib/*.$so %i/lib/debug/*.$so
55 > strip %i/lib/*.$so
56  
57   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done)
58   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done)
59 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
60 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
59 > #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
60 > #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
61   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
62  
63 + # SCRAM ToolBox toolfile
64 + mkdir -p %i/etc/scram.d
65 + # boost toolfile
66 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost
67 + <doc type=BuildSystem::ToolDoc version=1.0>
68 + <Tool name=boost version=%v>
69 + <info url="http://www.boost.org"></info>
70 + <lib name=boost_thread-gcc-mt>
71 + <lib name=boost_signals-gcc-mt>
72 + <Client>
73 + <Environment name=BOOST_BASE default="%i"></Environment>
74 + <Environment name=LIBDIR default="$BOOST_BASE/lib"></Environment>
75 + <Environment name=INCLUDE default="$BOOST_BASE/include"></Environment>
76 + </Client>
77 + <use name=sockets>
78 + </Tool>
79 + EOF_TOOLFILE
80 +
81 + # boost_filesystem toolfile
82 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_filesystem
83 + <doc type=BuildSystem::ToolDoc version=1.0>
84 + <Tool name=boost_filesystem version=%v>
85 + <info url="http://www.boost.org"></info>
86 + <lib name=boost_filesystem-gcc-mt>
87 + <use name=boost>
88 + </Tool>
89 + EOF_TOOLFILE
90 +
91 + # boost_program_options toolfile
92 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_program_options
93 + <doc type=BuildSystem::ToolDoc version=1.0>
94 + <Tool name=boost_program_options version=%v>
95 + <info url="http://www.boost.org"></info>
96 + <lib name=boost_program_options-gcc-mt>
97 + <use name=boost>
98 + </Tool>
99 + EOF_TOOLFILE
100 +
101 + # boost_python toolfile
102 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_python
103 + <doc type=BuildSystem::ToolDoc version=1.0>
104 + <Tool name=boost_python version=%v>
105 + <info url="http://www.boost.org"></info>
106 + <lib name=boost_python-gcc-mt>
107 + <Client>
108 + <Environment name=BOOST_PYTHON_BASE default="%i"></Environment>
109 + <Environment name=PYSTE_EXEC default="$BOOST_PYTHON_BASE/lib/python2.4/site-packages/Pyste/pyste.py"></Environment>
110 + <Environment name=LIBDIR default="$BOOST_PYTHON_BASE/lib"></Environment>
111 + <Environment name=INCLUDE default="$BOOST_PYTHON_BASE/include"></Environment>
112 + </Client>
113 + <use name=elementtree>
114 + <use name=gccxml>
115 + <use name=python>
116 + </Tool>
117 + EOF_TOOLFILE
118 +
119 + # boost_regex toolfile
120 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_regex
121 + <doc type=BuildSystem::ToolDoc version=1.0>
122 + <Tool name=boost_regex version=%v>
123 + <info url="http://www.boost.org"></info>
124 + <lib name=boost_regex-gcc-mt>
125 + <use name=boost>
126 + </Tool>
127 + EOF_TOOLFILE
128 +
129 + # boost_signals toolfile
130 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_signals
131 + <doc type=BuildSystem::ToolDoc version=1.0>
132 + <Tool name=boost_signals version=%v>
133 + <info url="http://www.boost.org"></info>
134 + <lib name=boost_signals-gcc-mt>
135 + <use name=boost>
136 + </Tool>
137 + EOF_TOOLFILE
138 +
139 + %post
140 + %{relocateConfig}etc/scram.d/boost
141 + %{relocateConfig}etc/scram.d/boost_filesystem
142 + %{relocateConfig}etc/scram.d/boost_program_options
143 + %{relocateConfig}etc/scram.d/boost_python
144 + %{relocateConfig}etc/scram.d/boost_regex
145 + %{relocateConfig}etc/scram.d/boost_signals

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines