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

Comparing COMP/CMSDIST/erlang.spec (file contents):
Revision 1.4 by valya, Fri Mar 13 14:35:50 2009 UTC vs.
Revision 1.23 by lat, Wed Sep 14 15:19:31 2011 UTC

# Line 1 | Line 1
1 < ### RPM external erlang R12B-5
2 < Source: http://erlang.org/download/otp_src_R12B-5.tar.gz
3 < Requires: gcc openssl
1 > ### RPM external erlang R14B03
2 > Source: http://erlang.org/download/otp_src_%{realversion}.tar.gz
3 > Patch0: erlang-ssl-connection
4 > Patch1: erlang-ssl-session-cache
5 > Requires: openssl
6 >
7 > # 32-bit
8 > Provides: libc.so.6(GLIBC_PRIVATE)
9 > # 64-bit
10 > Provides: libc.so.6(GLIBC_PRIVATE)(64bit)
11  
12   %prep
13   %setup -n otp_src_%{realversion}
14 + %patch0 -p0
15 + %patch1 -p0
16 + find . -name configure | xargs perl -p -i -e 's/-no-cpp-precomp//'
17  
18   %build
19 < LANG=C; export LANG
10 < ./configure
19 > ./configure --prefix=%i
20   make
21  
22   %install
23   make install
15 # SCRAM ToolBox toolfile
16 mkdir -p %i/etc/scram.d
17 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
18 <doc type=BuildSystem::ToolDoc version=1.0>
19 <Tool name=Erlang version=%v>
20 <lib name=erlang>
21 <client>
22 <Environment name=ERLANG_BASE default="%i"></Environment>
23 <Environment name=INCLUDE default="$ERLANG_BASE/include"></Environment>
24 <Environment name=LIBDIR  default="$ERLANG_BASE/lib"></Environment>
25 </client>
26 <Runtime name=PATH value="$ERLANG_BASE/bin" type=path>
27 </Tool>
28 EOF_TOOLFILE
24  
25 < %post
26 < %{relocateConfig}etc/scram.d/%n
25 > # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment.
26 > mkdir -p %i/etc/profile.d
27 > : > %i/etc/profile.d/dependencies-setup.sh
28 > : > %i/etc/profile.d/dependencies-setup.csh
29 > for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do
30 >  root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root
31 >  if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then
32 >    echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
33 >    echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
34 >  fi
35 > done
36  
37 + %post
38 + %{relocateConfig}etc/profile.d/dependencies-setup.*sh
39 + %{relocateConfig}lib/erlang/bin/{erl,start}
40 + %{relocateConfig}lib/erlang/erts-*/bin/{erl,start}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines